@@ -1,13 +1,12 @@
-# Dotfiles -__walpappers: [Dropbox](https://www.dropbox.com/s/yx7tsplowtyih7f/walpapper.zip?dl=0) [Google Drive](https://drive.google.com/file/d/1PX76sgLygXfo9qhsdN3cCsFuFuNKpM1y/view?usp=sharing)__ +<h1 align="center">~ dotfiles ~</h1> + +I use **rcm** for managment dotfiles **Preparing for installation** ~~~bash git clone https://github.com/Smirnov-O/dotfiles -make install -sudo pacman -S i3-wm bspwm polybar dunst rofi picom feh nitrogen redshift task \ -kitty ranger htop bash zsh git vim neofetch scrot clipboard yay bash zsh python-tldextract \ +sudo pacman -S dunst rofi picom nitrogen redshift task kitty ranger htop zsh git neovim neofetch scrot yay zsh \ ttf-font-awesome ttf-jetbrains-mono ttf-hack yay -S ttf-weather-icons ~~~@@ -15,21 +14,19 @@
### Packages | Name | Description | | ------------------------------------------------------------------------ | ----------------- | -| `i3-wm`, `qtile` | Window Manager | -| `polybar` | Panel | | `dunst` | Notify manager | | `rofi` | Program loncher | | `picom` | Compositor | | `qutebrowser` | Browser | -| `feh`, `nitrogen` | Setting wallpaper | +| `nitrogen` | Setting wallpaper | | `kitty` | Terminal | | `ranger` | File manager | | `htop` | System motitor | | `yay` | AUR helper | | `redshift` | Night light | -| `zsh`, `bash` | Shell | +| `zsh` | Shell | | `task` | Task manager | -| `ttf-font-awesome`, `ttf-jetbrains-mono`, `ttf-weather-icons` `ttf-hack` | Font | +| `ttf-font-awesome` `ttf-jetbrains-mono` `ttf-weather-icons` `ttf-hack` | Font | | `arc-gtk-theme` | GTK theme | | `papirus-icon-theme` | Icon theme | | `scrot` | Screenshot tool |
@@ -3,7 +3,6 @@ PS1='\e[36m\w\e[39m '
export EDITOR='nvim' export VISUAL='emacsclient -c -a emacs' -export TERM='kitty' alias cls='clear' alias ls='ls --color=auto'
@@ -1,16 +1,40 @@
# [Berry](https://berrywm.org)  +------------------------- ---- +Install `sxhkd` +~~~bash +sudo pacman -S sxhkd +~~~ + +Install `berry` from source +~~~bash +sudo pacman -S libx11 libxft libxinerama +git clone https://github.com/JLErvin/berry +cd berry +make && sudo make install +~~~ + +Add berry in lightdm +~~~bash +sudo cat <<EOF > /usr/share/xsessions/berry.desktop +[Desktop Entry] +Encoding=UTF-8 +Name=berry +Comment=berry - a small window manager +Exec=berry +Type=XSession +EOF +~~~ ### Autostart ~~~bash +setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" sxhkd -c ~/.config/berry/sxhkdrc & -picom -b & ~/.config/berry/polybar/bar.sh & nitrogen --restore & -setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" +picom -b & ~~~ ### Keybindings
@@ -1,24 +1,32 @@
#!/bin/bash + +# ------ Autostart ------ # +setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & sxhkd -c ~/.config/berry/sxhkdrc & -picom -b & -/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & ~/.config/berry/polybar/bar.sh & nitrogen --restore & +picom -b & +conky & -berryc border_width 1 -berryc inner_border_width 1 + +# ------ Berry ------ # +# Set decoration geometry +berryc border_width 0 +berryc inner_border_width 1 berryc title_height 0 -berryc top_gap 0 +berryc top_gap 0 +# Set decoration colors berryc focus_color 073642 berryc unfocus_color 002b36 berryc inner_focus_color 268bd2 berryc inner_unfocus_color 002b36 berryc text_focus_color ffffff -berryc text_unfocus_color efefef +berryc text_unfocus_color eeeeee +# Other options berryc smart_place "true" berryc draw_text "true" -berryc edge_lock "true" -berryc set_font "Jetbrains Mono" +berryc edge_lock "false" +berryc set_font "Dina-9"
@@ -32,7 +32,7 @@ font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 background = ${colors.background} foreground = ${colors.foreground} -modules-center = t +modules-left = t tray-position = center [module/backlight]
@@ -1,22 +0,0 @@
-#source ~/.env -set PATH $PATH ~/.local/bin -set fish_greeting - -### VARIABLES ### -export EDITOR="nvim" -export VISUAL="nvim" -export TERM="kitty" - -### ALIASES ### -alias cls='clear' -alias :q='exit' - -alias ..='cd ..' -alias ...='cd ../..' -alias .3='cd ../../..' -alias .4='cd ../../../..' -alias .5='cd ../../../../..' - -alias tobash="chsh -s /bin/bash && echo 'Now log out.'" -alias tozsh="chsh -s /bin/zsh && echo 'Now log out.'" -alias tofish="chsh -s /bin/fish && echo 'Now log out.'"
@@ -1,1 +0,0 @@
-/home/sasha/.config//omf/themes/scyanm/fish_prompt.fish
@@ -1,7 +1,7 @@
# Beware! This file is rewritten by htop when settings are changed in the interface. # The parser is also very primitive, and not human-friendly. fields=0 48 17 18 38 39 40 2 46 47 49 1 -sort_key=46 +sort_key=38 sort_direction=1 hide_threads=0 hide_kernel_threads=1
@@ -1,8 +1,13 @@
# [i3](https://i3wm.org)  +---- ----- +### Install +----------- +~~~bash +sudo pacman -S i3-gaps polybar +~~~ **Mod key:** `super(win)` **Font:** `monospace 10`, `JetBrains Mono 10`@@ -10,12 +15,12 @@
### Auttostart -------------- ~~~bash -picom -b nmcli radio wifi on; nmcli device wifi connect <wifi_name> password <wifi_pass> name net -redshift-gtk -nitrogen --restore setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" org.telegram.desktop +nitrogen --restore +redshift-gtk +picom -b ~~~ ### Variables@@ -23,8 +28,8 @@ -------------
~~~i3 set $terminal kitty set $browser qutebwoser +set $filemanager pcmanfm ~~~ - ### Keybindings ---------------
@@ -17,11 +17,12 @@ hide_edge_borders smart
############ Variables ########### set $terminal kitty -set $browser qutebrowser +set $browser firefox +set $filemanager pcmanfm ############ Autostart ############ exec --no-startup-id exec picom -b -exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect <wifi_name> password <wifi_password> name net +exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net exec --no-startup-id exec redshift-gtk exec --no-startup-id exec nitrogen --restore exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"@@ -42,8 +43,6 @@ # Focus the parent container
bindsym $mod+a focus parent # Floating window bindsym $mod+Shift+space floating toggle -# Fullscreen mode -bindsym $mod+F11 fullscreen toggle # Splits bindsym $mod+b split h bindsym $mod+v split v@@ -55,7 +54,6 @@ # Scratchpad
bindsym $mod+Shift+grave move scratchpad bindsym $mod+grave scratchpad show, floating disable - ### Launchers bindsym $mod+p exec "dmenu_run -h 24 -p Run" bindsym $mod+Shift+Return exec "rofi -show drun -drun-display-format '{name}'"@@ -63,13 +61,15 @@ bindsym $mod+Escape exec "~/.script/dmenu/dmenu-power.sh"
bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh bindsym $mod+Control+i exec passmenu -h 24 -p Passwords bindsym $alt+Tab exec "rofi -show window -show-icons" +bindsym $mod+$alt+t exec $terminal nvim .todo ### Applications bindsym $mod+Return exec $terminal bindsym $mod+F2 exec $browser +bindsym $mod+F3 exec gnvim +bindsym $mod+F4 exec $filemanager bindsym --release $mod+Shift+Escape exec xkill -bindsym $mod+$alt+t exec $terminal -e "nvim ~/.todo" ### Sceenshot
@@ -1,6 +1,5 @@
-#: MOD -#kitty_mod ctrl+shift -clear_all_shortcuts no +# MOD +clear_all_shortcuts yes # Font font_family Jetbrains Mono@@ -41,7 +40,6 @@ # Mouse
mouse_hide_wait 2.5 url_color #4ecdc4 url_style curly - open_url_modifiers kitty_mod open_url_with default url_prefixes http https file ftp@@ -66,62 +64,11 @@ initial_window_width 640
initial_window_height 480 enabled_layouts * -window_resize_step_cells 2 -window_resize_step_lines 2 -window_border_width 1.0 -draw_minimal_borders no -window_margin_width 0.0 -single_window_margin_width -1000.0 -window_padding_width 0.0 - -placement_strategy center -active_border_color #073642 -inactive_border_color #292f36 -bell_border_color #ff5a00 -inactive_text_alpha 1.0 -hide_window_decorations no -resize_debounce_time 0.1 -resize_draw_strategy static -resize_in_steps no - -# Tabs -tab_bar_edge bottom -tab_bar_margin_width 0.0 -tab_bar_style powerline -tab_bar_min_tabs 2 -tab_switch_strategy previous -tab_fade 0.25 0.5 0.75 1 -tab_separator "┇" -tab_title_template "{title}" -tab_bar_background none -active_tab_title_template none - -active_tab_foreground #dfdfdf -active_tab_background #073642 -active_tab_font_style bold-italic -inactive_tab_foreground #dfdfdf -inactive_tab_background #292f36 -inactive_tab_font_style normal - -# Theming -foreground #dfdfdf -#background_opacity 0.85 -background_opacity 1 -background_image none -background_image_layout tiled -background_image_linear no -dynamic_background_opacity no -background_tint 0.0 -dim_opacity 0.75 -selection_foreground #edebd7 -selection_background #073642 - # Keyboard Shortcuts -map ctrl+shift+c copy_to_clipboard -map ctrl+shift+v paste_from_clipboard -map shift+insert paste_from_selection -map kitty_mod+o pass_selection_to_program - +map ctrl+shift+c copy_to_clipboard +map ctrl+shift+v paste_from_clipboard +map shift+insert paste_from_selection +map ctrl+shift+u kitten unicode_input map shift+up scroll_line_up map shift+down scroll_line_down map shift+page_up scroll_page_up@@ -129,38 +76,28 @@ map shift+page_down scroll_page_down
map shift+home scroll_home map shift+end scroll_end map ctrl+shift+h show_scrollback -map alt+r start_resizing_window - -map ctrl+shift+l next_tab -map ctrl+shift+h previous_tab -map ctrl+shift+t new_tab -map alt+q close_tab -map ctrl+alt+. set_tab_title -map alt+1 first_window -map alt+2 second_window -map alt+3 third_window -map alt+4 fourth_window -map alt+5 fifth_window -map alt+6 sixth_window -map alt+7 seventh_window -map alt+8 eighth_window -map alt+9 ninth_window -map alt+0 tenth_window - -# Font Size +map ctrl+shift+. set_tab_title map alt+equal change_font_size all +2.0 map alt+minus change_font_size all -2.0 map alt+ctrl+backspace change_font_size all 0 -# Other -map f11 toggle_fullscreen -map ctrl+shift+f10 toggle_maximized -map ctrl+shift+u kitten unicode_input -map ctrl+shift+f2 edit_config_file -background #002B36 -foreground #d2dae2 -selection_background #002731 +# Theming +foreground #dfdfdf +background_opacity 0.85 +#background_opacity 1 +background_image none +background_image_layout tiled +background_image_linear no +dynamic_background_opacity no +background_tint 0.0 +dim_opacity 0.75 +selection_foreground #edebd7 +selection_background #073642 +background #262a3b +foreground #ffffff +cursorColor #d2dae2 +selection_background #262a3b selection_foreground #edebd7 color0 #002731 color8 #001e26@@ -174,7 +111,7 @@ color4 #2075c7
color12 #708183 color5 #c61b6e color13 #5856b9 -color6 #259185 -color14 #81908f +color6 #0fbcf9 +color14 #4bcffa color7 #e9e2cb color15 #fcf4dc
@@ -1,5 +1,6 @@
call plug#begin('~/.vim/plugged') Plug 'overcache/NeoSolarized' + Plug 'ericbn/vim-solarized' Plug 'ryanoasis/vim-devicons' Plug 'itchyny/lightline.vim' Plug 'iamcco/markdown-preview.nvim'@@ -16,12 +17,15 @@ Plug 'easymotion/vim-easymotion'
" Language support Plug 'pangloss/vim-javascript', { 'for': 'javascript' } - Plug 'PotatoesMaster/i3-vim-syntax' - Plug 'kovetskiy/sxhkd-vim' + Plug 'pearofducks/ansible-vim', { 'for': 'ansible' } + Plug 'PotatoesMaster/i3-vim-syntax', { 'for': 'i3' } + Plug 'kovetskiy/sxhkd-vim', { 'for': 'sxhkd' } Plug 'vim-python/python-syntax', { 'for': 'python' } Plug 'mattn/emmet-vim', { 'on': 'Emmet' } Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' } Plug 'dag/vim-fish', { 'for': 'fish' } + Plug 'ocaml/vim-ocaml', { 'for': 'ocaml' } + Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } Plug 'ap/vim-css-color' call plug#end()@@ -101,7 +105,12 @@ inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" """"""""""""""""""""""""""" -"""""""" Easymotion """"""" +""""""""" Markdown """""""" +let g:vim_markdown_folding_disabled = 1 +""""""""""""""""""""""""" + + +"""""" Easymotion """"""""" let g:EasyMotion_do_mapping = 0 let g:EasyMotion_smartcase = 1 nmap f <Plug>(easymotion-s)@@ -110,9 +119,7 @@ nmap F <Plug>(easymotion-overwin-line)
nmap s <Plug>(easymotion-overwin-f2) """"""""""""""""""""""""""" -"""" MarkDown Previw """""" -let g:mkdp_path_to_chrome = "/usr/bin/qutebrowser" -""""""""""""""""""""""""""" + " ============ " == Maping ==@@ -144,3 +151,6 @@ noremap <leader>8 :tabn 8<CR>
noremap <leader>9 :tabn 9<CR> noremap <leader>n :bnext<CR> noremap <leader>p :bprev<CR> + +let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" +let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
@@ -0,0 +1,12 @@
+# Openbox + +------------------------ + +### Install openbox, panel and applet(s) +~~~bash +sudo pacman -S openbox obconf volumeicon network-manager-applet xfce4-clipman-plugin +yay -S fbxkb +~~~ + +### Hotkeys +| Key | Aсt |
@@ -0,0 +1,7 @@
+tint2 & +setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net & +picom -b & +nitrogen --restore & +volumeicon &
@@ -0,0 +1,640 @@
+<?xml version="1.0" encoding="UTF-8"?> +<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> + <resistance> + <strength>10</strength> + <screen_edge_strength>20</screen_edge_strength> + </resistance> + <focus> + <focusNew>yes</focusNew> + <followMouse>no</followMouse> + <focusLast>yes</focusLast> + <underMouse>no</underMouse> + <focusDelay>200</focusDelay> + <raiseOnFocus>no</raiseOnFocus> + </focus> + <placement> + <policy>Smart</policy> + <center>yes</center> + <monitor>Primary</monitor> + <primaryMonitor>1</primaryMonitor> + </placement> + <theme> + <name>SolArc-Dark</name> + <titleLayout>CIMLSN</titleLayout> + <keepBorder>yes</keepBorder> + <animateIconify>yes</animateIconify> + <font place="ActiveWindow"> + <name>sans</name> + <size>8</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + <font place="InactiveWindow"> + <name>sans</name> + <size>8</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + <font place="MenuHeader"> + <name>Sans</name> + <size>12</size> + <weight>Bold</weight> + <slant>Normal</slant> + </font> + <font place="MenuItem"> + <name>Sans</name> + <size>10</size> + <weight>Normal</weight> + <slant>Normal</slant> + </font> + <font place="ActiveOnScreenDisplay"> + <name>Sans</name> + <size>8</size> + <weight>Bold</weight> + <slant>Normal</slant> + </font> + <font place="InactiveOnScreenDisplay"> + <name>sans</name> + <size>9</size> + <weight>bold</weight> + <slant>normal</slant> + </font> + </theme> + <desktops> + <number>9</number> + <firstdesk>1</firstdesk> + <names> + <name>1</name> + <name>2</name> + <name>3</name> + <name>4</name> + <name>5</name> + <name>6</name> + <name>7</name> + <name>8</name> + <name>9</name> + </names> + <popupTime>875</popupTime> + </desktops> + <resize> + <drawContents>yes</drawContents> + <popupShow>Nonpixel</popupShow> + <popupPosition>Center</popupPosition> + <popupFixedPosition> + <x>10</x> + <y>10</y> + </popupFixedPosition> + </resize> + <margins> + <top>0</top> + <bottom>26</bottom> + <left>0</left> + <right>0</right> + </margins> + <dock> + <position>TopLeft</position> + <floatingX>0</floatingX> + <floatingY>0</floatingY> + <noStrut>no</noStrut> + <stacking>Above</stacking> + <direction>Vertical</direction> + <autoHide>no</autoHide> + <hideDelay>300</hideDelay> + <showDelay>300</showDelay> + <moveButton>Middle</moveButton> + </dock> + <keyboard> + <chainQuitKey>C-g</chainQuitKey> + <keybind key="C-A-Left"> + <action name="GoToDesktop"> + <to>left</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="C-A-Right"> + <action name="GoToDesktop"> + <to>right</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="C-A-Up"> + <action name="GoToDesktop"> + <to>up</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="C-A-Down"> + <action name="GoToDesktop"> + <to>down</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="S-A-Left"> + <action name="SendToDesktop"> + <to>left</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="S-A-Right"> + <action name="SendToDesktop"> + <to>right</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="S-A-Up"> + <action name="SendToDesktop"> + <to>up</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="S-A-Down"> + <action name="SendToDesktop"> + <to>down</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="W-Right"> + <action name="UnmaximizeFull"/> + <action name="GrowToEdgeEast"/> + </keybind> + <keybind key="W-Left"> + <action name="UnmaximizeFull"/> + <action name="GrowToEdgeWest"/> + </keybind> + <keybind key="W-Down"> + <action name="UnmaximizeFull"/> + <action name="GrowToEdgeSouth"/> + </keybind> + <keybind key="W-Up"> + <action name="UnmaximizeFull"/> + <action name="GrowToEdgeNorth"/> + </keybind> + <!-- Keybindings for switching workspaces --> + <keybind key="W-1"> + <action name="GoToDesktop"> + <to>1</to> + </action> + </keybind> + <keybind key="W-2"> + <action name="GoToDesktop"> + <to>2</to> + </action> + </keybind> + <keybind key="W-3"> + <action name="GoToDesktop"> + <to>3</to> + </action> + </keybind> + <keybind key="W-4"> + <action name="GoToDesktop"> + <to>4</to> + </action> + </keybind> + <keybind key="W-5"> + <action name="GoToDesktop"> + <to>5</to> + </action> + </keybind> + <keybind key="W-6"> + <action name="GoToDesktop"> + <to>6</to> + </action> + </keybind> + <keybind key="W-7"> + <action name="GoToDesktop"> + <to>7</to> + </action> + </keybind> + <keybind key="W-8"> + <action name="GoToDesktop"> + <to>8</to> + </action> + </keybind> + <keybind key="W-9"> + <action name="GoToDesktop"> + <to>9</to> + </action> + </keybind> + <!-- Keybindings for windows --> + <keybind key="W-q"> + <action name="Close"/> + </keybind> + <keybind key="A-F4"> + <action name="Close"/> + </keybind> + <keybind key="A-Down"> + <action name="Iconify"/> + </keybind> + <keybind key="A-Up"> + <action name="ToggleMaximize"/> + </keybind> + <!-- Keybindings for window switching --> + <keybind key="A-Tab"> + <action name="NextWindow"> + <finalactions> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </finalactions> + </action> + </keybind> + <!-- Keybindings for launching terminal --> + <keybind key="W-Return"> + <action name="Execute"> + <command>kitty</command> + </action> + </keybind> + <!-- Keybindings for running applications --> + <keybind key="W-S-space"> + <action name="ShowMenu"> + <menu>root-menu</menu> + </action> + </keybind> + <!-- Keybindings for important applications --> + <keybind key="W-S-apostrophe"> + <action name="Execute"> + <command>dmenu_run -h 26 -b -p Run</command> + </action> + </keybind> + <keybind key="W-S-Return"> + <action name="Execute"> + <command>i3-dmenu-desktop --dmenu="dmenu -h 26 -b"</command> + </action> + </keybind> + + + <keybind key="W-C-i"> + <action name="Execute"> + <command>passmenu -b -h 26 -p Password</command> + </action> + </keybind> + <keybind key="W-C-u"> + <action name="Execute"> + <command>~/.script/dmenu/dmenu-config-edit.sh -h 26 -b</command> + </action> + </keybind> + <keybind key="W-Escape"> + <action name="Execute"> + <command>~/.script/dmenu/dmenu-power.sh -h 26 -b</command> + </action> + </keybind> + <keybind key="W-F2"> + <action name="Execute"> + <command>firefox</command> + </action> + </keybind> + <keybind key="W-F4"> + <action name="Execute"> + <command>pcmanfm</command> + </action> + </keybind> + <keybind key="S-W-Escape"> + <action name="Execute"> + <command>xkill</command> + </action> + </keybind> + <keybind key="W-l"> + <action name="Execute"> + <command>i3lock</command> + </action> + </keybind> + </keyboard> + <mouse> + <dragThreshold>1</dragThreshold> + <doubleClickTime>500</doubleClickTime> + <screenEdgeWarpTime>400</screenEdgeWarpTime> + <screenEdgeWarpMouse>false</screenEdgeWarpMouse> + <context name="Frame"> + <mousebind button="W-Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="W-Left" action="Click"> + <action name="Unshade"/> + </mousebind> + <mousebind button="W-Left" action="Drag"> + <action name="Move"/> + </mousebind> + <mousebind button="W-Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="W-Right" action="Drag"> + <action name="Resize"/> + </mousebind> + <mousebind button="W-Middle" action="Press"> + <action name="Lower"/> + <action name="FocusToBottom"/> + <action name="Unfocus"/> + </mousebind> + <mousebind button="W-Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="W-Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + <mousebind button="C-W-Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="C-W-Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + <mousebind button="W-S-Up" action="Click"> + <action name="SendToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="W-S-Down" action="Click"> + <action name="SendToDesktop"> + <to>next</to> + </action> + </mousebind> + </context> + <context name="Titlebar"> + <mousebind button="Left" action="Drag"> + <action name="Move"/> + </mousebind> + <mousebind button="Left" action="DoubleClick"> + <action name="ToggleMaximize"/> + </mousebind> + <mousebind button="Up" action="Click"> + <action name="if"> + <shaded>no</shaded> + <then> + <action name="Shade"/> + <action name="FocusToBottom"/> + <action name="Unfocus"/> + <action name="Lower"/> + </then> + </action> + </mousebind> + <mousebind button="Down" action="Click"> + <action name="if"> + <shaded>yes</shaded> + <then> + <action name="Unshade"/> + <action name="Raise"/> + </then> + </action> + </mousebind> + </context> + <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Middle" action="Press"> + <action name="Lower"/> + <action name="FocusToBottom"/> + <action name="Unfocus"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + </context> + <context name="Top"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>top</edge> + </action> + </mousebind> + </context> + <context name="Left"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>left</edge> + </action> + </mousebind> + </context> + <context name="Right"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>right</edge> + </action> + </mousebind> + </context> + <context name="Bottom"> + <mousebind button="Left" action="Drag"> + <action name="Resize"> + <edge>bottom</edge> + </action> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + </context> + <context name="TRCorner BRCorner TLCorner BLCorner"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Drag"> + <action name="Resize"/> + </mousebind> + </context> + <context name="Client"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Middle" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + </context> + <context name="Icon"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="ShowMenu"> + <menu>client-menu</menu> + </action> + </mousebind> + </context> + <context name="AllDesktops"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="ToggleOmnipresent"/> + </mousebind> + </context> + <context name="Shade"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="ToggleShade"/> + </mousebind> + </context> + <context name="Iconify"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="Iconify"/> + </mousebind> + </context> + <context name="Maximize"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Middle" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="ToggleMaximize"/> + </mousebind> + <mousebind button="Middle" action="Click"> + <action name="ToggleMaximize"> + <direction>vertical</direction> + </action> + </mousebind> + <mousebind button="Right" action="Click"> + <action name="ToggleMaximize"> + <direction>horizontal</direction> + </action> + </mousebind> + </context> + <context name="Close"> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + <action name="Unshade"/> + </mousebind> + <mousebind button="Left" action="Click"> + <action name="Close"/> + </mousebind> + </context> + <context name="Desktop"> + <mousebind button="Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + <mousebind button="W-Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="W-Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + <mousebind button="C-W-Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="C-W-Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + <mousebind button="Left" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="Focus"/> + <action name="Raise"/> + </mousebind> + </context> + <context name="Root"> + <!-- Menus --> + <mousebind button="Middle" action="Press"> + <action name="ShowMenu"> + <menu>client-list-combined-menu</menu> + </action> + </mousebind> + <mousebind button="Right" action="Press"> + <action name="ShowMenu"> + <menu>root-menu</menu> + </action> + </mousebind> + </context> + <context name="MoveResize"> + <mousebind button="Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + <mousebind button="W-Up" action="Click"> + <action name="GoToDesktop"> + <to>previous</to> + </action> + </mousebind> + <mousebind button="W-Down" action="Click"> + <action name="GoToDesktop"> + <to>next</to> + </action> + </mousebind> + </context> + </mouse> + <menu> + <file>menu.xml</file> + <hideDelay>200</hideDelay> + <middle>no</middle> + <submenuShowDelay>100</submenuShowDelay> + <submenuHideDelay>400</submenuHideDelay> + <showIcons>yes</showIcons> + <manageDesktops>yes</manageDesktops> + </menu> + <applications> + </applications> +</openbox_config>
@@ -3,36 +3,32 @@ dropdown_menu = { shadow = false; };
popup_menu = { shadow = false; }; utility = { shadow = false; }; shadow = true; -shadow-radius = 11; +shadow-radius = 15; shadow-offset-x = -7; shadow-offset-y = -7; shadow-exclude = [ + "override_redirect", "class_g = 'Firefox' && argb", - "name = 'Notification'", "class_g = 'Polybar'" ]; - ############ Fading ########### -fading = true; +fading = false; fade-in-step = 0.03; fade-out-step = 0.03; - ##### Transparency/Opacity #### -#inactive-opacity = 0.8; inactive-opacity = 1; frame-opacity = 0.7; inactive-opacity-override = false; -#inactive-opacity-override = true; focus-exclude = []; -#no-fading-openclose = true +opacity-exclude = [ "class_g = 'openbox'" ]; +opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ]; +no-fading-openclose = true ##### Background-Blurring ##### blur-kern = "3x3box"; -blur-background-exclude = [ - "window_type = 'desktop'" -]; +blur-background-exclude = []; ####### General Settings ######
@@ -3,10 +3,16 @@ pseudo-transparency = true
[colors] ; Solarized ======== -background = #002B36 -foreground = #dfdfdf -secondary = #073642 -alert = #268bd2 +;background = #002B36 +;foreground = #dfdfdf +;secondary = #073642 +;alert = #268bd2 + +; Smirnov-O Sheme == +background = #262A2B +foreground = #ffffff +secondary = #111B1A +alert = #008dcd ; Nord ============= ;background = #2E3440@@ -21,6 +27,7 @@ height = 24
fixed-center = true wm-restack = i3 +;override-redirect = true background = ${colors.background} foreground = ${colors.foreground}@@ -28,6 +35,14 @@
line-size = 3 line-color = #000000 +#padding-left = 2 +#padding-right = 2 + +#radius = 6.0 +#border-left-size = 0.2% +#border-top-size = 0.2% +#border-right-size = 0.2% + module-margin-left = 1 module-margin-right = 1@@ -35,11 +50,14 @@ font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 font-2 = Weather Icons:size=7;2 -modules-left = i3 title -modules-right = keyboard pulseaudio backlight wifi-signal date time +modules-left = i3 +modules-right = keyboard pulseaudio backlight wifi-signal time tray-position = right ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +[settings] +screenchange-reload = true + [module/i3] type = internal/i3 format = <label-state><label-mode>@@ -106,6 +124,16 @@ type = custom/script
label = %output:%% exec = ~/.config/polybar/scripts/wifi-signal.sh interval = 3.0 + + +[module/filesystem] +type = internal/fs +interval = 25 +mount-0 = / +mount-1 = /home +label-mounted = %mountpoint%: %percentage_used%% +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.foreground} [module/pulseaudio]@@ -122,6 +150,21 @@ ramp-volume-3 =
ramp-volume-4 = +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = " " +format-prefix-foreground = ${colors.foreground} +label = CPU %percentage%% + + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = " " +label = MEM %percentage_used%% + + [module/weather] type = custom/script exec = python3 ~/.config/polybar/scripts/weather.py@@ -129,6 +172,13 @@ interval = 60
label-font = 1 +[module/spotify] +type = custom/script +interval = 1 +format = <label> +exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}' +format-underline = ${colors.alert} + [module/updates-pacman] type = custom/script exec = ~/.config/polybar/scripts/updates-pacman-aur.sh@@ -144,6 +194,14 @@
blacklist-0 = num lock blacklist-1 = scroll lock blacklist-2= caps lock + + +[module/microphone] +type = custom/script +label = %output:0:40:...% +exec = ~/.config/polybar/scripts/microphone.sh +click-left = ~/.config/polybar/scripts/microphone.sh --click +interval = 0 [module/sp2]@@ -167,7 +225,13 @@
[module/title] type = internal/xwindow -label = %title% -format-padding = 4 +label = %title:0:50:...% label-empty = label-maxlen = 50 + + +[module/clipmenu] +type = custom/text +content = "" +click-left = "CM_LAUNCHER=rofi clipmenu" +interval = 0
@@ -1,21 +0,0 @@
-#!/bin/bash -MICSYMBOL=$1 -MICMUTEDSYMBOL=$2 - -case "$1" in - --click) - amixer -D pulse sset Capture toggle - ;; - *) - ;; -esac - -STATUS=$(amixer -D pulse get Capture | grep -E "\[on\]|\[off\]" | cut -s -d ' ' -f 8 | uniq) - -if [[ $STATUS = "[on]" ]]; then - echo $MICSYMBOL -elif [[ $STATUS = "[off]" ]]; then - echo $MICMUTEDSYMBOL -else - echo "Not working, check script." -fi
@@ -1,139 +0,0 @@
-#!/usr/bin/env python -# -*- encoding: utf-8 -*- -import sys, dbus, argparse - -parser = argparse.ArgumentParser() -parser.add_argument( - '-t', - '--trunclen', - type=int, - metavar='trunclen' -) -parser.add_argument( - '-f', - '--format', - type=str, - metavar='custom format', - dest='custom_format' -) -parser.add_argument( - '-p', - '--playpause', - type=str, - metavar='play-pause indicator', - dest='play_pause' -) -parser.add_argument( - '--font', - type=str, - metavar='the index of the font to use for the main label', - dest='font' -) -parser.add_argument( - '--playpause-font', - type=str, - metavar='the index of the font to use to display the playpause indicator', - dest='play_pause_font' -) -parser.add_argument( - '-q', - '--quiet', - action='store_true', - help="if set, don't show any output when the current song is paused", - dest='quiet', -) - -args = parser.parse_args() - - -def fix_string(string): - # corrects encoding for the python version used - if sys.version_info.major == 3: - return string - else: - return string.encode('utf-8') - - -def truncate(name, trunclen): - if len(name) > trunclen: - name = name[:trunclen] - name += '...' - if ('(' in name) and (')' not in name): - name += ')' - return name - - - -# Default parameters -output = fix_string(u'{play_pause} {artist}: {song}') -trunclen = 35 -play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused - -label_with_font = '%{{T{font}}}{label}%{{T-}}' -font = args.font -play_pause_font = args.play_pause_font - -quiet = args.quiet - -# parameters can be overwritten by args -if args.trunclen is not None: - trunclen = args.trunclen -if args.custom_format is not None: - output = args.custom_format -if args.play_pause is not None: - play_pause = args.play_pause - -try: - session_bus = dbus.SessionBus() - spotify_bus = session_bus.get_object( - 'org.mpris.MediaPlayer2.spotify', - '/org/mpris/MediaPlayer2' - ) - - spotify_properties = dbus.Interface( - spotify_bus, - 'org.freedesktop.DBus.Properties' - ) - - metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata') - status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus') - - # Handle play/pause label - - play_pause = play_pause.split(',') - - if status == 'Playing': - play_pause = play_pause[0] - elif status == 'Paused': - play_pause = play_pause[1] - else: - play_pause = str() - - if play_pause_font: - play_pause = label_with_font.format(font=play_pause_font, label=play_pause) - - # Handle main label - - artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else '' - song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else '' - album = fix_string(metadata['xesam:album']) if metadata['xesam:album'] else '' - - if (quiet and status == 'Paused') or (not artist and not song and not album): - print('') - else: - if font: - artist = label_with_font.format(font=font, label=artist) - song = label_with_font.format(font=font, label=song) - album = label_with_font.format(font=font, label=album) - - # Add 4 to trunclen to account for status symbol, spaces, and other padding characters - print(truncate(output.format(artist=artist, - song=song, - play_pause=play_pause, - album=album), trunclen + 4)) - -except Exception as e: - if isinstance(e, dbus.exceptions.DBusException): - print('') - else: - print(e)
@@ -2,14 +2,13 @@ #!/usr/bin/env python3
# -*- encoding: utf-8 -*- import requests, os + API_KEY = os.getenv("OWM_POLYBAR") CITY = "Horodnytsya,UA" -try: - JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json() -except Exception as e: - print("No connection ") +try: JSON = requests.get(f"http://api.openweathermap.org/data/2.5/weather?q={CITY}&lang=EN&&units=metric&appid={API_KEY}").json() +except Exception as e: print("No connection ") try: if JSON['weather'][0]['main'] == "Clear": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Thunderstorm": print("", int(JSON["main"]["temp"]),"°С")@@ -26,5 +25,4 @@ elif JSON['weather'][0]['main'] == "Ash": print("", int(JSON["main"]["temp"]),"°С")
elif JSON['weather'][0]['main'] == "Squall": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Tornado": print("", int(JSON["main"]["temp"]),"°С") elif JSON['weather'][0]['main'] == "Clouds": print("", int(JSON["main"]["temp"]),"°С") -except Exception as e: - print(int(JSON["main"]["temp"]),"°С") +except Exception as e: print(int(JSON["main"]["temp"]),"°С")
@@ -1,5 +1,6 @@
#!/bin/sh -setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" +setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" +/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & +nitrogen --restore & picom -b & -nitrogen --restore & -kitty & +kbdd &
@@ -1,147 +1,276 @@
-from typing import List from libqtile import bar, layout, widget, hook from libqtile.config import Click, Drag, Group, Key, Screen from libqtile.lazy import lazy +from typing import List import os -auto_fullscreen = True -focus_on_window_activation = "smart" +mod = "mod4" +alt = "mod1" +terminal = "kitty" +browser = "firefox" +user = "sasha" +color = [ + "#FFFFFF", # 0. Text color + "#CED4DA", # 1. Unfocus color + "#008DCD", # 2. Focus color + "#262A2B", # 3. Panel color + "#51AFEF", # 4. Text color + "#C678DD", # 5. Text color + "#FF6C6B", # 6. Text color + "#ECBE7B", # 7. Text color + "#98BE65", # 8. Text color +] -mod = "mod4" # Set mod key(Super/Win) -terminal = "kitty" # Set terminal - -colors = [["#292d3e", "#292d3e"], # panel background - ["#434758", "#434758"], # background for current screen tab - ["#ffffff", "#ffffff"], # font color for group names - ["#ff5555", "#ff5555"], # border line color for current tab - ["#ff1151", "#ff1151"], # border line color for current tab - ["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets - ["#668bd7", "#668bd7"], # color for the even widgets - ["#e1acff", "#e1acff"]] # window name @hook.subscribe.startup_once def autostart(): os.system("~/.config/qtile/autostart.sh") keys = [ - ## Window control - Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"), - Key([mod], "k", lazy.layout.down(), desc="Move focus down in stack pane"), - Key([mod], "j", lazy.layout.up(), desc="Move focus up in stack pane"), - Key([mod, "control"], "k", lazy.layout.shuffle_down(), desc="Move window down in current stack"), - Key([mod, "control"], "j", lazy.layout.shuffle_up(), desc="Move window up in current stack"), + # Applications + Key([mod], "Return", + lazy.spawn(terminal), + desc="Launch terminal" + ), + Key([mod], "F2", + lazy.spawn(browser), + desc="Launch browser" + ), + Key([mod, alt], "t", + lazy.spawn(f"{terminal} -e \"nvim /home/{user}/.todo\""), + desc="Open ~/.todo file in nvim" + ), + + # Window control + Key([mod], "q", + lazy.window.kill(), + desc="Kill focused window" + ), + Key([mod], "h", + lazy.layout.left(), + desc="Change focus window(left)" + ), + Key([mod], "j", + lazy.layout.down(), + desc="Change focus window(down)" + ), + Key([mod], "k", + lazy.layout.up(), + desc="Change focus window(up)" + ), + Key([mod], "l", + lazy.layout.right(), + desc="Change focus window(right)" + ), + Key([mod, "shift"], "h", + lazy.layout.shuffle_left(), + desc="Move focus window(left)" + ), + Key([mod, "shift"], "j", + lazy.layout.shuffle_down(), + desc="Move focus window(down)" + ), + Key([mod, "shift"], "k", + lazy.layout.shuffle_up(), + desc="Move focus window(up)" + ), + Key([mod, "shift"], "l", + lazy.layout.shuffle_right(), + desc="Move focus window(right)" + ), + Key([mod, "control"], "h", + lazy.layout.grow_left(), + #lazy.layout.grow()), + desc="Resize focus window(left)" + ), + Key([mod, "control"], "j", + lazy.layout.grow_down(), + desc="Resize focus window(down)" + ), + Key([mod, "control"], "k", + lazy.layout.grow_up(), + desc="Resize focus window(up)" + ), + Key([mod, "control"], "l", + lazy.layout.grow_right(), + #lazy.layout.shrink() + desc="Resize focus window(right)" + ), - ## Layout changer - Key([mod], "space", lazy.next_layout(), desc="Toggle between layouts"), - Key([mod, "shift"], "space", lazy.prev_layout(), desc="Toggle between layouts"), - - ## Launch program - Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"), - Key([mod], "F1", lazy.spawn(terminal + " -e ranger"), desc="Launch ranger"), - Key([mod], "F2", lazy.spawn("qutebrowser"), desc="Launch qutebrowser"), + # Layout + Key([mod], "Tab", + lazy.next_layout(), + desc="Toggle between layouts" + ), + Key([mod], "space", + lazy.layout.next(), + desc="Switch window focus to other pane(s) of stack" + ), + Key([mod, "shift"], "space", + lazy.layout.rotate(), + desc="Swap panes of split stack" + ), - ## Program launcher(Dmenu or default) - Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget" ), - Key([mod, "shift"], "Return", lazy.spawn("dmenu_run -h 24 -p Run:"), desc="Demnu program launcher" ), - Key([mod, "control"], "u", lazy.spawn("sh ~/.script/dmenu/dmenu-config-edit.sh"), desc="Dmenu config menu"), - Key([mod, "control"], "i", lazy.spawn("passmenu -h 24"), desc="Dmenu password menu"), + # Volume + Key([mod], "equal", + lazy.spawn("pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%"), + desc="Plus 2% volume" + ), + Key([mod], "minus", + lazy.spawn("pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%"), + desc="Minus 2% volume" + ), + Key([mod, "shift"], "minus", + lazy.spawn("pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"), + desc="Mute volume" + ), - ## Qtile - Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"), - Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"), - - ## Keyboard - Key(["mod1"], "Shift_L", lazy.widget['keyboardlayout'].next_keyboard(), desc="Switch keyboard layout"), + # Menus(dmenu & rofi) + Key([mod, "shift"], "Return", + lazy.spawn("rofi -show drun -drun-display-format \"{name}\""), + desc="(Rofi) Program launcher" + ), + Key([mod],"Escape", + lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-power.sh"), + desc="Power menu" + ), + Key([mod, "control"], "i", + lazy.spawn("passmenu -h 24 -p Password"), + desc="Dmenu password menu" + ), + Key([mod, "control"], "u", + lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-config-edit.sh"), + desc="Config editor" + ), + Key([mod, "control"], "o", + lazy.spawn(f"/home/{user}/.script/dmenu/dmenu-sysmon.sh"), + desc="Choice system monitor" + ), + + # Screenhot + Key([], "Print", + lazy.spawn(f"scrot -s /home/{user}/$(date +%Y-%m-%d-%H-%M-%S).png"), + desc="Create screenhot(scrot -s)" + ), + Key(["shift"], "Print", + lazy.spawn(f"scrot /home/{user}/$(date +%Y-%m-%d-%H-%M-%S).png"), + desc="Create screenhot full screen(scrot)" + ), + + # Qtile + Key([mod, "control"], "r", + lazy.restart(), + desc="Restart qtile" + ), + Key([mod], "r", + lazy.spawncmd(), + desc="Spawn a command using a prompt widget" + ), ] +# Workspaces name, keys group_names = [("term", {'layout': 'monadtall'}), - ("www", {'layout': 'monadtall'}), - ("dev", {'layout': 'monadtall'}), - ("sys", {'layout': 'monadtall'}), - ("note", {'layout': 'monadtall'}), + ("www", {'layout': 'max'}), + ("dev", {'layout': 'monadtall'}), + ("sys", {'layout': 'monadtall'}), + ("doc", {'layout': 'monadtall'}), ("chat", {'layout': 'monadtall'}), ("pass", {'layout': 'monadtall'}), - ("gft", {'layout': 'max'}), - ("flo", {'layout': 'floating'}) + ("mus", {'layout': 'max'}), + ("flo", {'layout': 'monadtall'}) ] groups = [Group(name, **kwargs) for name, kwargs in group_names] for i, (name, kwargs) in enumerate(group_names, 1): keys.append(Key([mod], str(i), lazy.group[name].toscreen())) keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name))) +# Window layout(s) layout_theme = { - "border_width": 2, - "margin": 0, - "border_focus": "e1acff", - "border_normal": "1D2330" + "border_width": 1, + "margin": 3, + "border_focus": color[2], + "border_normal": color[1], + "font": "Jatbrains Mono" } layouts = [ - layout.Max(**layout_theme), - #layout.Stack(num_stacks=2, **layout_theme), - #layout.Bsp(**layout_theme), - layout.MonadTall(**layout_theme), - layout.Floating(**layout_theme) + layout.Max(), + # layout.Stack(num_stacks=2, **layout_theme), + # layout.Bsp(**layout_theme), + layout.Columns(**layout_theme), + # layout.Matrix(), + # layout.MonadTall(**layout_theme), + # layout.Floating(**layout_theme), + # layout.MonadWide(), + # layout.RatioTile(), + # layout.Tile(**layout_theme), + # layout.TreeTab(), + # layout.VerticalTile(), + # layout.Zoomy(), ] +# Panel widget_defaults = dict( - font='sans', + font='Jatbrains Mono', fontsize=12, padding=5, + foreground=color[0], + background=color[3], ) extension_defaults = widget_defaults.copy() - -screens = [ - Screen( - top=bar.Bar([ - widget.GroupBox( - borderwidth = 0, - active = colors[2], - inactive = colors[2], - rounded = False, - highlight_color = colors[1], - highlight_method = "line", - this_current_screen_border = colors[3], - this_screen_border = colors [4], - other_current_screen_border = colors[0], - other_screen_border = colors[0], - foreground = colors[2], - background = colors[0] - ), - widget.Prompt( padding = 10, foreground = colors[3], background = colors[0] ), - widget.WindowName( foreground = colors[6], background = colors[0], padding = 7 ), - widget.Systray( background = colors[0], padding = 3 ), - widget.CurrentLayout(foreground = colors[2], background = colors[0]), - widget.Net( interface = "wlp3s0", format = '{down}↓↑{up}', foreground = colors[2], background = colors[0], padding = 0 ), - widget.TextBox(padding=3, background=colors[0]), - widget.TextBox( text="", foreground = colors[2], background = colors[0], padding=3 ), - widget.Volume( update_interval = 0.2, foreground = colors[2], background = colors[0], padding=0 ), - widget.TextBox(padding=3, background=colors[0]), - widget.TextBox( text="", foreground=colors[2], background=colors[0], padding=0 ), - widget.KeyboardLayout( configured_keyboards=['us','ru', 'ua'], display_map={ 'us': ' us', 'ru': ' ru', 'ua': ' ua' }, update_interval=0.2, foreground=colors[2], background=colors[0], padding=2 ), - widget.TextBox(padding=3, background=colors[0]), - widget.TextBox( text = "", background = colors[0], foreground = colors[2], padding = 0 ), - widget.Clock( format='%H:%M:%S', foreground=colors[2], background=colors[0], padding=2 ) - ], - 22, - ), +screens = [Screen(top=bar.Bar([ + widget.GroupBox( + active=color[0], + inactive=color[1], + rounded=False, + disable_drag=True, + highlight_color=color[2], + highlight_method="block", + this_current_screen_border=color[2], + this_screen_border=color[3], + foreground=color[0], + ), + widget.Prompt(foreground=color[0]), + widget.WindowName(foreground=color[0]), + widget.KeyboardKbdd( + foreground=color[5], + configured_keyboards=['us', 'ru', 'ua'], + update_interval=0, + fmt=" {}", + ), + widget.CurrentLayout( + foreground=color[8] + ), + widget.Volume( + foreground=color[6], + fmt=" {}", + ), + widget.Net( + interface="wlp3s0", + format='{down}↓↑{up}', + foreground=color[7], + ), + widget.Systray(), + widget.Clock( + format=' %H:%M', + foreground=color[4] ), -] + widget.Clock( + format=" %d.%m.%Y", + foreground=color[4] + )], 24 # Panel size +))] -# Drag floating layouts. +# Drag floating layouts mouse = [ - Drag([mod], "Button1", lazy.window.set_position_floating(), - start=lazy.window.get_position()), - Drag([mod], "Button3", lazy.window.set_size_floating(), - start=lazy.window.get_size()), + Drag([mod], "Button1", lazy.window.set_position(), start=lazy.window.get_position()), + Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()), Click([mod], "Button2", lazy.window.bring_to_front()) ] - - dgroups_key_binder = None -dgroups_app_rules = [] # type: List -main = None # WARNING: this is deprecated and will be removed soon +dgroups_app_rules = [] +main = None follow_mouse_focus = True bring_front_click = False cursor_warp = False@@ -154,14 +283,13 @@ {'wmclass': 'file_progress'},
{'wmclass': 'notification'}, {'wmclass': 'splash'}, {'wmclass': 'toolbar'}, - {'wmclass': 'confirmreset'}, # gitk - {'wmclass': 'makebranch'}, # gitk - {'wmclass': 'maketag'}, # gitk - {'wname': 'branchdialog'}, # gitk - {'wname': 'pinentry'}, # GPG key password entry - {'wmclass': 'ssh-askpass'}, # ssh-askpass + {'wmclass': 'confirmreset'}, + {'wmclass': 'makebranch'}, + {'wmclass': 'maketag'}, + {'wname': 'branchdialog'}, + {'wname': 'pinentry'}, + {'wmclass': 'ssh-askpass'}, ]) auto_fullscreen = True focus_on_window_activation = "smart" - wmname = "LG3D"
@@ -1,7 +1,7 @@
# general -c.url.start_pages = ["https://start.duckduckgo.com"] +c.url.start_pages = ["about:blank"] config.set("colors.webpage.darkmode.enabled", True) -c.downloads.location.directory = '/home/sasha/Загрузки' +c.downloads.location.directory = '/home/sasha/Downloads' c.completion.shrink = True config.load_autoconfig()@@ -12,7 +12,7 @@ c.downloads.position = "bottom"
# alias, binds, search c.aliases = {'q':'quit', 'w':'session-save', 'wq':'quit --save', 'e':'open'} -config.bind('<l><p', 'spawn --userscript qute-pass') +config.bind('<Ctrl-T>', 'open -t about:blank') c.url.searchengines = { 'DEFAULT': 'https://www.google.com/search?q={}', 'ddg': 'https://duckduckgo.com/?q={}',@@ -60,9 +60,9 @@ c.colors.downloads.bar.bg = color01
c.colors.downloads.error.bg = color06 c.colors.downloads.start.bg = color03 c.colors.downloads.stop.bg = color04 -#c.colors.messages.info.bg = color01 -#c.colors.messages.info.border = color01 -#c.colors.messages.warning.border = color01 +c.colors.messages.info.bg = color01 +c.colors.messages.info.border = color01 +c.colors.messages.warning.border = color01 c.colors.statusbar.caret.bg = color01 c.colors.statusbar.command.bg = color01 c.colors.statusbar.insert.bg = color01
@@ -8,6 +8,4 @@ Notabug https://notabug.org
Dropbox https://dropbox.com MEGA https://mega.nz MediaFire https://mediafire.com -Pingvinus https://pingvinus.ru/ -Reddit https://www.reddit.com/ -Figma https://www.figma.com/files/recent +Reddit https://reddit.com
@@ -96,3 +96,5 @@ for f in copied_files:
obj = CommandLoader(args=['aunpack'] + make_flags(f.path) + [f.path], descr=descr, read=True) obj.signal_bind('after', refresh) self.fm.loader.add(obj) + +
@@ -3,19 +3,25 @@ from ranger.api.commands import Command
class git(Command): + commands = 'init status clone add rm restore commit remote push'.split() + def execute(self): + # empty if not self.arg(1): return self.fm.notify("For commands check \"git help\"") + # help if self.arg(1) == "help": return self.fm.notify("Not done yet!", bad=True) + # init if self.arg(1) == self.commands[0]: subprocess.run(["git", "init", "--quiet"]) return self.fm.notify("Repository initialized successefully") + # status if self.arg(1) == self.commands[1]: output = subprocess.check_output(["git", "status"]).decode()@@ -24,6 +30,7 @@ out.write(output)
return self.fm.edit_file('/tmp/gitplug-status') + # clone if self.arg(1) == self.commands[2]: if not self.arg(2): return self.fm.notify("Missing url!", bad=True)@@ -32,6 +39,7 @@ if self.arg(2):
subprocess.run(["git", "clone", self.arg(2), "--quiet"]) return self.fm.notify("Repository successfully cloned!") + # add if self.arg(1) == self.commands[3]: if not self.arg(2): return self.fm.notify("Missing arguments! Usage :git add <file>", bad=True)@@ -40,6 +48,7 @@ if self.arg(2):
subprocess.run(["git", "add", self.arg(2)]) return self.fm.notify("Successfully added files to branch!") + #rm if self.arg(1) == self.commands[4]: if not self.arg(2): return self.fm.notify("Missing arguments! Usage :git rm <file>", bad=True)@@ -48,6 +57,7 @@ if self.arg(2):
subprocess.run(["git", "rm", self.arg(2)]) return self.fm.notify("Successfully removed files from branch!") + # restore if self.arg(1) == self.commands[5]: if not self.arg(2): return self.fm.notify("Missing arguments! Usage :git restore <file>", bad=True)@@ -56,6 +66,7 @@ if self.arg(2):
subprocess.run(["git", "restore", "--staged", self.arg(2), "--quiet"]) return self.fm.notify("Successfully restored files!") + # commit if self.arg(1) == self.commands[6]: if not self.rest(2): return self.fm.notify("Missing commit text", bad=True)@@ -64,6 +75,7 @@ if self.rest(2):
subprocess.run(["git", "commit", "-m", self.rest(2), "--quiet"]) return self.fm.notify("Successfully commited!") + # remote if self.arg(1) == self.commands[7]: if not self.arg(2): return self.fm.notify("Missing arguments! Use: git remote add/rm <name> <url>", bad=True)@@ -88,6 +100,7 @@ if self.arg(3):
subprocess.run(["git", "remote", "rm", self.arg(3)]) return self.fm.notify("Remote successfully removed") + # push if self.arg(1) == self.commands[8]: if self.arg(2) == "-u" and self.arg(3) and self.arg(4): subprocess.run(["git", "push", "--quiet", "-u", self.arg(3), self.arg(4)])
@@ -1,6 +1,6 @@
############ ### Options -########### +############ ### Appearance set colorscheme solarized@@ -24,36 +24,25 @@ set vcs_msg_length 30
### Preview set preview_images true -#set preview_images_method w3m -set preview_images_method kitty - +set preview_images_method w3m set w3m_delay 0.02 set w3m_offset 0 -set iterm2_font_width 8 -set iterm2_font_height 11 - set unicode_ellipsis false set bidi_support false set show_hidden_bookmarks true - set preview_files true set preview_directories true set collapse_preview true - set wrap_plaintext_previews false set draw_progress_bar_in_status_bar true set draw_borders none - set dirname_in_tabs false - set mouse_enabled true - set display_size_in_main_column true set display_size_in_status_bar true set display_free_space_in_status_bar false set display_tags_in_all_columns true - set update_title false set update_tmux_title false set shorten_title 3@@ -64,47 +53,31 @@ ### History
set max_history_size 20 set max_console_history_size 50 set save_console_history false - - set scroll_offset 4 set flushinput true set padding_right true - set autosave_bookmarks true set save_backtick_bookmark true - set autoupdate_cumulative_size false set show_cursor false - -# One of: size, natural, basename, atime, ctime, mtime, type, random set sort natural - set sort_reverse false set sort_case_insensitive true set sort_directories_first true set sort_unicode false - set xterm_alt_key false - set cd_bookmarks true set cd_tab_case sensitive set cd_tab_fuzzy false - set preview_max_size 0 - set hint_collapse_threshold 10 - set show_selection_in_titlebar true set idle_delay 2000 - set metadata_deep_search false set clear_filters_on_dir_change false - -# Possible values: false, absolute, relative. set line_numbers false set relative_current_zero false set one_indexed false - set save_tabs_on_exit false set wrap_scroll false set global_inode_type_filter@@ -115,6 +88,14 @@
################################# # Command Aliases in the Console ################################# + +# "a" key +map a rename_append +map a +map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%")) + + + map ex extract map ed extract_to_dirs map ec compress@@ -227,8 +208,6 @@
map E edit map cw console rename%space -map a rename_append -map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%")) map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7) map pp paste
@@ -1,6 +1,7 @@
############# ### Websites ############# +ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" ext x?html?, has firefox, X, flag f = firefox -- "$@" ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" ext x?html?, has chromium, X, flag f = chromium -- "$@"@@ -8,7 +9,6 @@ ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
ext x?html?, has surf, X, flag f = surf -- file://"$1" ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" -ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" ext x?html?, has dwb, X, flag f = dwb -- "$@" ext x?html?, has jumanji, X, flag f = jumanji -- "$@" ext x?html?, has luakit, X, flag f = luakit -- "$@"@@ -126,7 +126,7 @@ ###########
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@" -mime ^image, has pix X, flag f = pix "$@" +mime ^image, has pix X, flag f = pix -- "$@" mime ^image, has ristretto, X, flag f = ristretto "$@" mime ^image, has gpicview, X, flag f = gpicview -- "$@" mime ^image, has gwenview, X, flag f = gwenview -- "$@"
@@ -1,42 +0,0 @@
-* { - background-color: #002b36; - border-color: #606060; - text-color: #c8c8c8; - width: 768px; - height: 512px; -} - -window { - padding: 8px; -} - -inputbar { - padding: 8px; - children: [/* prompt, */ entry]; -} - -prompt { - border: 0 1px 0 0; - padding: 4px 20px 8px 12px; -} - -entry { - padding: 4px 12px 8px 20px; -} - -listview { - cycle: false; -} - -element { - padding: 6px 24px; -} - -element selected { - background-color: #073642; - text-color: #e0e0e0; -} - -element-icon { - size: 20px; -}
@@ -1,9 +0,0 @@
-[ - // Unbind's - { "keys": ["ctrl+b"], "command": null }, - { "keys": ["ctrl+shift+x"],"command": null }, - // Bind's - { "keys": ["ctrl+shift+`"], "command": "ecsstractor", "args": {"bem_nesting": true } }, - { "keys": ["ctrl+`"], "command": "ecsstractor"}, - { "keys": ["ctrl+b"], "command": "toggle_side_bar" } -]
@@ -1,18 +0,0 @@
-{ - "bootstrapped": true, - "in_process_packages": [], - "installed_packages": [ - "A File Icon", - "Agila Theme", - "AutoFileName", - "ayu", - "BracketHighlighter", - "Color Highlight", - "ColorPicker", - "Discord Rich Presence", - "eCSStractor", - "Emmet", - "Package Control", - "Sass" - ] -}
@@ -1,19 +0,0 @@
-{ - "color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme", - "theme": "ayu-mirage.sublime-theme", - "auto_complete": true, - "draw_indent_guides": false, - "draw_white_space": "all", - "file_exclude_patterns": [ "package-lock.json" ], - "folder_exclude_patterns": [ "node_modules" ], - "font_size": 10, - "ignored_packages": [ "Vintage" ], - "margin": 0, - "remeber_open_files": true, - "save_on_focus_lost": true, - "tab_size": 4, - "translate_tabs_to_spaces": true, - "trim_trailing_white_space_on_save": false, - "update_check": false, - "word_wrap": true -}
@@ -0,0 +1,223 @@
+#---- Generated by tint2conf 41e4 ---- +# See https://gitlab.com/o9000/tint2/wikis/Configure for +# full documentation of the configuration options. +#------------------------------------- +# Gradients +#------------------------------------- +# Backgrounds +# Background 1: Active taskbar, Battery, Clock, Launcher, Systray, Tooltip +rounded = 0 +border_width = 0 +border_sides = TBLR +border_content_tint_weight = 0 +background_content_tint_weight = 0 +background_color = #262a2b 100 +border_color = #222222 0 +background_color_hover = #000000 80 +border_color_hover = #000000 0 +background_color_pressed = #000000 80 +border_color_pressed = #000000 0 + +# Background 2: Active task +rounded = 0 +border_width = 0 +border_sides = TBLR +border_content_tint_weight = 0 +background_content_tint_weight = 0 +background_color = #008dcd 100 +border_color = #272727 0 +background_color_hover = #272727 70 +border_color_hover = #272727 0 +background_color_pressed = #272727 70 +border_color_pressed = #272727 0 + +# Background 3: Urgent task +rounded = 0 +border_width = 0 +border_sides = TBLR +border_content_tint_weight = 0 +background_content_tint_weight = 0 +background_color = #ff8066 60 +border_color = #d98282 0 +background_color_hover = #d98282 60 +border_color_hover = #d98282 0 +background_color_pressed = #d98282 60 +border_color_pressed = #d98282 0 + +# Background 4: Default task +rounded = 0 +border_width = 0 +border_sides = TBLR +border_content_tint_weight = 0 +background_content_tint_weight = 0 +background_color = #262a2b 100 +border_color = #242424 0 +background_color_hover = #242424 60 +border_color_hover = #242424 0 +background_color_pressed = #242424 60 +border_color_pressed = #242424 0 + +# Background 5: Iconified task +rounded = 0 +border_width = 0 +border_sides = TBLR +border_content_tint_weight = 0 +background_content_tint_weight = 0 +background_color = #262a2b 60 +border_color = #252525 0 +background_color_hover = #252525 60 +border_color_hover = #252525 0 +background_color_pressed = #252525 60 +border_color_pressed = #252525 0 + +#------------------------------------- +# Panel +panel_items = TSC +panel_size = 100% 26 +panel_margin = 0 0 +panel_padding = 0 0 0 +panel_background_id = 0 +wm_menu = 1 +panel_dock = 0 +panel_pivot_struts = 0 +panel_position = bottom center horizontal +panel_layer = top +panel_monitor = all +panel_shrink = 0 +autohide = 0 +autohide_show_timeout = 0.3 +autohide_hide_timeout = 1.5 +autohide_height = 1 +strut_policy = follow_size +panel_window_name = tint2 +disable_transparency = 0 +mouse_effects = 0 +font_shadow = 0 +mouse_hover_icon_asb = 100 0 10 +mouse_pressed_icon_asb = 100 0 0 +scale_relative_to_dpi = 0 +scale_relative_to_screen_height = 0 + +#------------------------------------- +# Taskbar +taskbar_mode = single_desktop +taskbar_hide_if_empty = 0 +taskbar_padding = 0 0 0 +taskbar_background_id = 0 +taskbar_active_background_id = 1 +taskbar_name = 1 +taskbar_hide_inactive_tasks = 0 +taskbar_hide_different_monitor = 0 +taskbar_hide_different_desktop = 0 +taskbar_always_show_all_desktop_tasks = 0 +taskbar_name_padding = 6 7 +taskbar_name_background_id = 0 +taskbar_name_active_background_id = 0 +taskbar_name_font = Droid Sans Bold 8 +taskbar_name_font_color = #d1d1d1 100 +taskbar_name_active_font_color = #aaaaaa 100 +taskbar_distribute_size = 0 +taskbar_sort_order = none +task_align = left + +#------------------------------------- +# Task +task_text = 1 +task_icon = 0 +task_centered = 1 +urgent_nb_of_blink = 20 +task_maximum_size = 200 0 +task_padding = 8 6 8 +task_font = Droid Sans Bold 8 +task_tooltip = 1 +task_thumbnail = 0 +task_thumbnail_size = 210 +task_font_color = #cccccc 100 +task_active_font_color = #ffffff 100 +task_urgent_font_color = #cccccc 100 +task_iconified_font_color = #cccccc 80 +task_icon_asb = 100 0 0 +task_active_icon_asb = 100 0 0 +task_urgent_icon_asb = 100 0 0 +task_iconified_icon_asb = 80 0 0 +task_background_id = 4 +task_active_background_id = 2 +task_urgent_background_id = 3 +task_iconified_background_id = 5 +mouse_left = toggle_iconify +mouse_middle = close +mouse_right = none +mouse_scroll_up = none +mouse_scroll_down = none + +#------------------------------------- +# System tray (notification area) +systray_padding = 8 0 12 +systray_background_id = 1 +systray_sort = right2left +systray_icon_size = 18 +systray_icon_asb = 100 0 0 +systray_monitor = 1 +systray_name_filter = + +#------------------------------------- +# Launcher +launcher_padding = 8 0 16 +launcher_background_id = 1 +launcher_icon_background_id = 0 +launcher_icon_size = 16 +launcher_icon_asb = 100 0 0 +launcher_icon_theme_override = 0 +startup_notifications = 0 +launcher_tooltip = 0 + +#------------------------------------- +# Clock +time1_format = %H:%M +time2_format = %d.%m.%Y +time1_font = Droid Sans Bold 8 +time1_timezone = Europe/Kiev +time2_timezone = +time2_font = Droid Sans 7 +clock_font_color = #d1d1d1 100 +clock_padding = 4 2 +clock_background_id = 1 +clock_tooltip = +clock_tooltip_timezone = +clock_lclick_command = +clock_rclick_command = +clock_mclick_command = +clock_uwheel_command = +clock_dwheel_command = + +#------------------------------------- +# Battery +battery_tooltip = 1 +battery_low_status = 20 +battery_low_cmd = notify-send "battery low" +battery_full_cmd = +bat1_font = Droid Sans Bold 8 +bat2_font = Droid Sans Bold 8 +battery_font_color = #d1d1d1 100 +bat1_format = +bat2_format = +battery_padding = 2 0 +battery_background_id = 1 +battery_hide = 96 +battery_lclick_command = +battery_rclick_command = +battery_mclick_command = +battery_uwheel_command = +battery_dwheel_command = +ac_connected_cmd = +ac_disconnected_cmd = + +#------------------------------------- +# Tooltip +tooltip_show_timeout = 1 +tooltip_hide_timeout = 0 +tooltip_padding = 6 6 +tooltip_background_id = 1 +tooltip_font_color = #d1d1d1 100 +tooltip_font = Droid Sans Bold 8 +
@@ -13,7 +13,7 @@ imlib_cache_size = 0,
alignment = 'top_right', gap_x = 40, gap_y = 60, - minimum_height = 200, + minimum_height = 50, minimum_width = 200, maximum_width = 700, border_inner_margin = 10,@@ -37,7 +37,7 @@ format_human_readable = true,
font = 'Jatbrains Mono', max_text_width = 0, max_user_text = 16384, - override_utf8_locale = false, + override_utf8_locale = true, short_units = true, top_name_width = 21, top_name_verbose = false,@@ -62,7 +62,7 @@ };
conky.text = [[ ${voffset 10}${font Jatbrains Mono:weight=Bold:size=14}${color1}Todo: ${font Jatbrains Mono:weight=Medium:size=10}${color2}<mod+alt+t>${font} -${exec cat -n "$HOME/.todo" | fmt -s -w 50}\ +${font Jatbrains Mono:weight=Medium:size=10}${exec cat -n "$HOME/.todo" | fmt -s -w 66}\ ${color1} ${font} ]]
@@ -1,34 +1,34 @@
[user] username = Smirnov-O name = Smirnov Olexandr - email = ss2316544@gmail.com + email = ss2316544@gmail.com [github] name = Smirnov-O [web] - browser = firefox - #browser = google-chrome + browser = chromium # firefox, google-chrome, [core] - editor = vim + editor = vim + excludesfile = ~/.gitignore_global [alias] - ada = add -A - rmc = rm --cached + ada = add -A cm = commit cmm = commit -m - ch = checkout - cl = clone - st = status + ch = checkout + cl = clone + st = status br = branch l = log + i = init [color] - ui = true - interactive = true - branch = true - status = true + ui = true + interactive = true + branch = true + status = true [credential] - helper = cache --timeout=1800 + helper = cache --timeout=1800
@@ -1,42 +1,28 @@
-## IDE ## -.vscode/* -.idea/* +# IDE +.idea +*~ +~* -## OS: Linux, Windows, Mac OS X ## -.directory -.Trash-* -Thumbs.db -ehthumbs.db -*.stackdump -[Dd]esktop.ini -.DS_Store +# Logs and databases +*.log +*.sqlite +*.db +*.todo -## Python files ## +# Temp files +*.pyc +*.swp +.*.swp +*.swo __pycache__ -venv -env -*.py[cod] -dist/ -## Golang ## -/Godeps/ -*.out - -## JS/TS ## -npm-debug.log* -yarn-debug.log* -yarn-error.log* -node_modules/ -jspm_packages/ -typings/ -.npm -dist/ - -## db ## -db.sqlite3 -db.db +# Packages +*.7z +*.rar +*.tar +*.bz2 -## DotEnv ## -.env -.dotenv -.env.sh +# Compiled siurce +*.so +*.out +*.bin
@@ -1,12 +0,0 @@
-#!/bin/sh - -case "$1" in - "help"|"--help") - echo "bash Change default shell to bash" - echo "zsh Change default shell to zsh" - echo "fish Change default shell to fish" - ;; - bash) chsh -s $(whitch bash) ;; - zsh) chsh -s $(whitch zsh) ;; - fish) chsh -s $(whitch fish) ;; -esac
@@ -0,0 +1,23 @@
+#!/bin/sh +#### Info #### +shell=$(echo $SHELL | sed -e 's|/bin/||g') +os=$(lsb_release -sdr | sed -e 's|"||g') +host=$(hostname) +user=$(echo $USER) +kernal=$(uname -r) +editor=$(echo $EDITOR) +uptime=$(uptime -p|sed 's|up ||g'|sed 's|,||g') + +### Colors ### +rest="\e[0m" +bold="\e[1m" +blue="\e[34m" +grey="\e[90m" + +#### Code #### +echo -e " ${blue}${user}${rest}${grey}@${blue}${host}" +echo -e " ${blue} os ${rest}${grey}~ ${rest}${os}" +echo -e " ${blue} sh ${rest}${grey}~ ${rest}${shell}" +echo -e " ${blue}kernal ${rest}${grey}~ ${rest}${kernal}" +echo -e " ${blue}editor ${rest}${grey}~ ${rest}${editor}" +echo -e " ${blue}uptime ${rest}${grey}~ ${rest}${uptime}"
@@ -0,0 +1,38 @@
+set -g default-terminal "screen-256color" +set-option -sa terminal-overrides ",*:Tc" +#set-option -sa terminal-overrides ",xterm-kitty:RGB" +set -g history-limit 1000 +set -g base-index 1 +set -g pane-base-index 1 +set -g mouse on +setw -g mouse on + +# Keybindongs +set -g xterm-keys no +set -g prefix C-a +bind -n End send-key C-e +bind -n Home send-key C-a +bind-key -n Home send Escape "OH" +bind-key -n End send Escape "OF" +bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config' +bind - split-window -v +bind _ split-window -h +bind Tab last-window +bind -r h select-pane -L +bind -r j select-pane -D +bind -r k select-pane -U +bind -r l select-pane -R +bind -r H resize-pane -L 2 +bind -r J resize-pane -D 2 +bind -r K resize-pane -U 2 +bind -r L resize-pane -R 2 + +# Status bar +set -g status-bg black +set -g status-fg white +set -g status-left ' ' +set -g status-right ' #{?client_prefix,*,} #S ' +set -g status-style fg=colour110 +set -g pane-border-style fg=colour240 +set -g pane-active-border-style fg=colour39 +set-window-option -g window-status-current-style fg=colour39
@@ -1,97 +0,0 @@
-call plug#begin('~/.vim/plugged') - Plug 'jiangmiao/auto-pairs' - Plug 'ayu-theme/ayu-vim' -call plug#end() - -set nocompatible " be iMproved -set laststatus=2 - -set number " Number line -"set relativenumber " Number line - -syntax on " Support syntax -set ruler " Cursor position -set t_Co=256 " Enable 265 colors - -set mouse=a " Mouse support -set mousehide " Mouse hide - -set encoding=utf-8 " Use utf-8 encoding - -set fileencodings=utf8,cp1251 - -set cursorline " The line with the cursor will be highlighted -set wrap " Line wrappingv -set linebreak " Line wrappingv - -set nobackup " Disable backup files -set noswapfile " Disable *.swp files -set history=50 " History size 1000 edits -set autoread " Auto reade file for edit - -set showmode -set showcmd - -" Tab -set tabstop=4 " Tab size 4 -set shiftwidth=4 " Tab size 4 -set softtabstop=4 " Tab size 4 -set expandtab " Tab consist of space -set smarttab -set autoindent - -" Search -set incsearch " Highlighted -set ignorecase " Highlighted -set smartcase " Smart Rigger - -" Buffers -set hidden -set smartindent - -set visualbell t_vb= " Mute Vim - -" ColoerCheme -set termguicolors -set background=dark -let ayucolor="mirage" -colorscheme ayu - -"""""""""" -" MAPING " -"""""""""" -let mapleader=',' " Leader key - -" Smart way to move between windows -map <C-j> <C-W>j -map <C-k> <C-W>k -map <C-h> <C-W>h -map <C-l> <C-W>l - -" Tabs -map <leader>tn :tabnew<CR> " Create new tab -map <leader>tc :tabclose<CR> " Tab kill -map <leader>1 :tabn 1<CR> " Change tab -map <leader>2 :tabn 2<CR> " Change tab -map <leader>3 :tabn 3<CR> " Change tab -map <leader>4 :tabn 4<CR> " Change tab -map <leader>5 :tabn 5<CR> " Change tab -map <leader>6 :tabn 6<CR> " Change tab -map <leader>7 :tabn 7<CR> " Change tab -map <leader>8 :tabn 8<CR> " Change tab -map <leader>9 :tabn 9<CR> " Change tab - -" Bufer -nnoremap <C-N> :bnext<CR> -nnoremap <C-P> :bprev<CR> - -"""""""" -" GVIM " -"""""""" -if has("gui_running") - set guioptions -=m - set guioptions -=T - map <leader>p "+gP " Past text in buffer - map <C-Tab> :tabnext<cr> " Change tab - map <C-S-Tab> :tabprev<cr> " Change tab -endif
@@ -1,5 +1,6 @@
export ZSH="/home/sasha/.oh-my-zsh" source ~/.env +source ~/.profile ### Oh my zsh ###@@ -7,21 +8,27 @@ ZSH_THEME="cyan-simple" # Set theme
#CASE_SENSITIVE="true" # Use case-sensitive completion. #HYPHEN_INSENSITIVE="true" # Case-sensitive completion must be off. #DISABLE_AUTO_UPDATE="true" # Disable bi-weekly auto-update checks. -DISABLE_UPDATE_PROMPT="true" # Automatically update without prompting. -export UPDATE_ZSH_DAYS=13 # Change how often to auto-update. +#DISABLE_UPDATE_PROMPT="true" # Automatically update without prompting. #DISABLE_MAGIC_FUNCTIONS="true" # If pasting URLs and other text is messed up. #DISABLE_LS_COLORS="true" # Disable colors in ls. -#DISABLE_AUTO_TITLE="true" # Disable auto-setting terminal title. +#DISABLE_AUTO_TITLE="true" # Disable auto-setting terminal title. #ENABLE_CORRECTION="true" # Enable command auto-correction. #COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion. +export UPDATE_ZSH_DAYS=13 # Change how often to auto-update. export LANG=en_US.UTF-8 # Set locale -plugins=(pip python sudo git taskwarrior) +plugins=(pip python sudo heroku git taskwarrior) source $ZSH/oh-my-zsh.sh + +### Variables ### +export EDITOR="nvim" +export VISUAL="nvim" + ### Aliases ### alias cls="clear" -alias :q +alias :q="exit" +alias tmux="tmux -2" alias ..="cd .." alias ...="cd ../.."