all repos

dotfiles @ 07805d44aa3c3f35866164242baaaad3fa20a745

i use rach linux btw
28 files changed, 843 insertions(+), 413 deletions(-)
:art: Update config
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-11-11 22:48:06 +0200
Parent: 394d56f
M README.md
···
                4
                4
                 

              
                5
                5
                 **Preparing for installation**

              
                6
                6
                 ~~~bash

              
                7
                
                -curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh) && chsh -s $(which zsh)

              
                
                7
                +curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh

              
                8
                8
                 git clone https://github.com/Smirnov-O/zsh-simple-colors ~/.oh-my-zsh/custom/themes

              
                
                9
                +curl -L https://get.oh-my.fish | fish

              
                9
                10
                 

              
                10
                11
                 sudo pacman -S i3-wm bspwm polybar dunst rofi picom feh nitrogen redshift task \

              
                11
                
                -kitty ranger htop bash zsh git vim neofetch scrot clipboard yay bash zsh \

              
                
                12
                +kitty ranger htop bash zsh git vim neofetch scrot clipboard yay bash zsh python-tldextract \

              
                12
                13
                 ttf-font-awesome ttf-jetbrains-mono ttf-hack

              
                13
                14
                 yay -S ttf-weather-icons

              
                14
                15
                 ~~~

              ···
                16
                17
                 ### Packages

              
                17
                18
                 | Name                                                                     | Description       |

              
                18
                19
                 | ------------------------------------------------------------------------ | ----------------- |

              
                19
                
                -| `i3-wm`, `bspwm`                                                         | Window Manager    |

              
                
                20
                +| `i3-wm`, `qtile`                                                | Window Manager    |

              
                20
                21
                 | `polybar`                                                                | Panel             |

              
                21
                22
                 | `dunst`                                                                  | Notify manager    |

              
                22
                23
                 | `rofi`                                                                   | Program loncher   |

              ···
                34
                35
                 | `arc-gtk-theme`                                                          | GTK theme         |

              
                35
                36
                 | `papirus-icon-theme`                                                     | Icon theme        |

              
                36
                37
                 | `scrot`                                                                  | Screenshot tool   |

              
                37
                
                -| `clipmenu`                                                               | Clipboard manager |

              
M bashrc
···
                1
                1
                 [[ $- != *i* ]] && return

              
                2
                2
                 PS1='\e[36m\w\e[39m '

              
                3
                3
                 

              
                4
                
                -source ~/.profile

              
                
                4
                +export EDITOR='nvim'

              
                
                5
                +export VISUAL='emacsclient -c -a emacs'

              
                
                6
                +export TERM='kitty'

              
                5
                7
                 

              
                
                8
                +alias cls='clear'

              
                6
                9
                 alias ls='ls --color=auto'

              
                7
                
                -alias cls='clear'

              
                
                10
                +alias :q="exit"

              
                
                11
                +

              
                8
                12
                 alias ..='cd ..'

              
                9
                
                -alias py='python3'

              
                
                13
                +alias ...='cd ../..'

              
                
                14
                +alias .3='cd ../../..'

              
                
                15
                +alias .4='cd ../../../..'

              
                
                16
                +alias .5='cd ../../../../..'

              
                
                17
                +alias .6='cd ../../../../../..'

              
                
                18
                +

              
                
                19
                +alias tofish="chsh -s /bin/fish && echo 'Now log out.'"

              
                
                20
                +alias tozsh="chsh -s /bin/zsh && echo 'Now log out.'"

              
                
                21
                +alias tobash="chsh -s /bin/bash && echo 'Now log out.'"

              
D config/bspwm/bspwmrc
···
                1
                
                -#! /bin/sh

              
                2
                
                -

              
                3
                
                -###### Auto start #####

              
                4
                
                -setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" &

              
                5
                
                -sxhkd &

              
                6
                
                -nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net &

              
                7
                
                -picom -b &

              
                8
                
                -polybar test &

              
                9
                
                -feh --randomize --bg-scale ~/Изображения/Walpapper/* &

              
                10
                
                -# redshift-gtk &

              
                11
                
                -

              
                12
                
                -

              
                13
                
                -###### BSPWM #####

              
                14
                
                -bspc monitor -d I II III IV V VI VII VIII IX X

              
                15
                
                -

              
                16
                
                -#bspc config border_radius                8

              
                17
                
                -bspc config border_width                  2

              
                18
                
                -bspc config window_gap                    10

              
                19
                
                -bspc config top_padding                   20

              
                20
                
                -bspc config bottom_padding                0

              
                21
                
                -bspc config left_padding                  0

              
                22
                
                -bspc config right_padding                 0

              
                23
                
                -bspc config single_monocle                false

              
                24
                
                -bspc config click_to_focus                true

              
                25
                
                -bspc config split_ratio                   0.50

              
                26
                
                -bspc config borderless_monocle            true

              
                27
                
                -bspc config gapless_monocle               true

              
                28
                
                -bspc config focus_by_distance             true

              
                29
                
                -bspc config focus_follows_pointer         true

              
                30
                
                -bspc config history_aware_focus           true 

              
                31
                
                -bspc config remove_disabled_monitors      true

              
                32
                
                -bspc config merge_overlapping_monitors    true

              
                33
                
                -bspc config pointer_modifier              mod4

              
                34
                
                -bspc config pointer_action1               move

              
                35
                
                -bspc config pointer_action2               resize_side

              
                36
                
                -bspc config pointer_action3               resize_corner

              
                37
                
                -

              
                38
                
                -####### Rules ######

              
                39
                
                -bspc rule -a Thunar desktop='^4'

              
                40
                
                -bspc rule -a Qutebrowser desktop='^2'

              
A config/fish/config.fish
···
                
                1
                +#source ~/.env

              
                
                2
                +set PATH $PATH ~/.local/bin

              
                
                3
                +set fish_greeting

              
                
                4
                +

              
                
                5
                +### VARIABLES ###

              
                
                6
                +export EDITOR="nvim"

              
                
                7
                +export VISUAL="emacsclient -c -a emacs"

              
                
                8
                +export TERM="kitty"

              
                
                9
                +

              
                
                10
                +### ALIASES ###

              
                
                11
                +alias cls='clear'

              
                
                12
                +alias :q='exit'

              
                
                13
                +

              
                
                14
                +alias ..='cd ..' 

              
                
                15
                +alias ...='cd ../..'

              
                
                16
                +alias .3='cd ../../..'

              
                
                17
                +alias .4='cd ../../../..'

              
                
                18
                +alias .5='cd ../../../../..'

              
                
                19
                +

              
                
                20
                +alias tobash="chsh -s /bin/bash && echo 'Now log out.'"

              
                
                21
                +alias tozsh="chsh -s /bin/zsh && echo 'Now log out.'"

              
                
                22
                +alias tofish="chsh -s /bin/fish && echo 'Now log out.'"

              
A config/fish/functions/fish_prompt.fish
···
                
                1
                +/home/sasha/.config//omf/themes/scyanm/fish_prompt.fish
              
M config/i3/config
···
                17
                17
                 

              
                18
                18
                 ############ Autostart ############

              
                19
                19
                 exec --no-startup-id exec picom -b

              
                20
                
                -exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect <wifi-name> password <wifi-password> name net

              
                
                20
                +exec --no-startup-id exec nmcli radio wifi on; nmcli device wifi connect Pechenka password 24032006 name net

              
                21
                21
                 exec --no-startup-id exec redshift-gtk 

              
                22
                
                -exec --no-startup-id exec nitrogen

              
                
                22
                +exec --no-startup-id exec nitrogen --restore

              
                23
                23
                 exec --no-startup-id exec setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"

              
                24
                24
                 exec --no-startup-id exec org.telegram.desktop

              
                25
                25
                 #exec --no-startup-id exec discord

              ···
                27
                27
                 exec_always --no-startup-id $HOME/.config/polybar/launch.sh

              
                28
                28
                 

              
                29
                29
                 ############ Key bindings #########

              
                30
                
                -

              
                31
                
                -# Open terminal

              
                
                30
                +# Kill focus window

              
                
                31
                +bindsym $mod+q kill

              
                
                32
                +# Restart i3wm

              
                
                33
                +bindsym $mod+Shift+r restart

              
                
                34
                +# Terminal

              
                32
                35
                 bindsym $mod+Return exec kitty

              
                33
                
                -bindsym $mod+ctrl+Return exec kitty -T=Terminal-floating

              
                
                36
                +# Focus the parent container

              
                
                37
                +bindsym $mod+a focus parent

              
                
                38
                +# Floating window

              
                
                39
                +bindsym $mod+Shift+space floating toggle

              
                
                40
                +# Fullscreen mode

              
                
                41
                +bindsym $mod+F11 fullscreen toggle

              
                34
                42
                 

              
                35
                
                -# Window switcher

              
                36
                
                -bindsym $mod+Tab exec "rofi -show window -show-icons"

              
                37
                
                -bindsym $alt+Tab exec "rofi -show window -show-icons"

              
                
                43
                +# Load program

              
                
                44
                +bindsym $mod+F2 exec qutebrowser

              
                38
                45
                 

              
                39
                
                -# Kill focus window

              
                40
                
                -bindsym $mod+q kill

              
                41
                46
                 

              
                42
                
                -# Program/Exit louncher

              
                
                47
                +

              
                
                48
                +# Program/Exit/Window switch/Clipboard

              
                
                49
                +bindsym $mod+r exec "i3-dmenu-desktop --dmenu='dmenu -h 24 -p Run'"

              
                43
                50
                 bindsym $mod+space exec "rofi -show drun -show cobi -show-icons"

              
                44
                
                -bindsym $mod+Escape exec "rofi -show power-menu -width 30 -lines 6 -modi power-menu:~/.config/rofi/rofi-power-menu"

              
                
                51
                +bindsym $mod+Shift+Return exec "dmenu_run -h 24 -p Run"

              
                
                52
                +

              
                
                53
                +bindsym $mod+Escape exec "~/.script/dmenu/dmenu-power.sh"

              
                
                54
                +bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh

              
                
                55
                +bindsym $mod+Control+i exec passmenu -h 24 -p Passwords

              
                45
                56
                 

              
                46
                
                -bindsym $mod+$alt+u exec ~/.script/dmenu/dmenu-config-edit.sh

              
                47
                
                -bindsym $mod+$alt+i exec "rofi-keepassxc -d ~/Документы/text.kdbx"

              
                
                57
                +bindsym $mod+Tab exec "rofi -show window -show-icons"

              
                
                58
                +bindsym $alt+Tab exec "rofi -show window -show-icons"

              
                48
                59
                 

              
                49
                
                -# Restart i3wm

              
                50
                
                -bindsym $mod+Shift+r restart

              
                
                60
                +bindsym $mod+c exec "CM_LAUNCHER=rofi clipmenu"

              
                51
                61
                 

              
                52
                62
                 # Sceenshot

              
                53
                63
                 bindsym --release Print exec "scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"

              
                54
                64
                 bindsym --release Shift+Print exec "scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png"

              
                55
                65
                 

              
                56
                
                -# Clipboard menu

              
                57
                
                -bindsym $mod+c exec "CM_LAUNCHER=rofi clipmenu"

              
                58
                
                -

              
                59
                66
                 # Volume

              
                60
                67
                 bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%"

              
                61
                68
                 bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo  -5%"

              
                62
                69
                 bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle"

              
                63
                70
                 

              
                64
                
                -# Load program

              
                65
                
                -bindsym $mod+F1 exec kitty -T=Ranger_FM ranger

              
                66
                
                -bindsym $mod+F2 exec qutebrowser

              
                67
                
                -bindsym $mod+F3 exec subl

              
                68
                
                -bindsym $mod+F4 exec notable

              
                69
                
                -

              
                70
                
                -# Floating window

              
                71
                
                -bindsym $mod+Shift+space floating toggle

              
                72
                
                -

              
                73
                
                -# Fullscreen mode

              
                74
                
                -bindsym $mod+f fullscreen toggle

              
                75
                
                -bindsym $mod+F11 fullscreen toggle

              
                76
                
                -

              
                77
                71
                 # Splits

              
                78
                
                -bindsym $mod+h split h

              
                
                72
                +bindsym $mod+b split h

              
                79
                73
                 bindsym $mod+v split v

              
                80
                
                -

              
                81
                
                -# Focus the parent container

              
                82
                
                -bindsym $mod+a focus parent

              
                83
                74
                 

              
                84
                75
                 # Change container layout(stacked, tabbed, toggle split)

              
                85
                76
                 bindsym $mod+s layout stacking

              ···
                91
                82
                 bindsym $mod+grave scratchpad show, floating disable

              
                92
                83
                 

              
                93
                84
                 ######### Window preferens ########

              
                94
                
                -#assign [class="(?i)kitty"] $ws1

              
                
                85
                +assign [class="Kitty"] $ws1

              
                95
                86
                 #assign [class="(?i)chromium|firefox|qutebrowser"] $ws2

              
                96
                87
                 #assign [class="(?i)subl|code|emacs"] $ws3

              
                97
                88
                 #assign [class="(?i)thunar"] $ws4

              ···
                99
                90
                 assign [class="(?i)telegram|discord|viber"] $ws6

              
                100
                91
                 assign [title="KeePassXC"] $ws7

              
                101
                92
                 #for_window [title="Ranger_FM"] move to workspace $ws4

              
                102
                
                -#for_window [class="Spotify"] move to workspace $ws10

              
                
                93
                +#for_window [class="Spotify"] move to workspace $ws9

              
                103
                94
                 for_window [class="(?i)mousepad"] floating enable

              
                104
                95
                 for_window [title="Terminal-floating"] floating enable

              
                105
                96
                 for_window [class="(?i)lxappearance|qt5ct"] floating enable

              ···
                109
                100
                 #focus_on_window_activation focus

              
                110
                101
                 

              
                111
                102
                 ############## Gaps ###############

              
                112
                
                -gaps inner 4

              
                
                103
                +#gaps inner 4

              
                113
                104
                 #smart_gaps on

              
                114
                105
                 

              
                115
                106
                 ##### Change containet focus ######

              
                116
                
                -bindsym $mod+j focus left

              
                
                107
                +bindsym $mod+h focus left

              
                117
                108
                 bindsym $mod+Left focus left

              
                118
                
                -bindsym $mod+k focus down

              
                
                109
                +bindsym $mod+j focus down

              
                119
                110
                 bindsym $mod+Down focus down

              
                120
                
                -bindsym $mod+l focus up

              
                
                111
                +bindsym $mod+k focus up

              
                121
                112
                 bindsym $mod+Up focus up

              
                122
                
                -bindsym $mod+semicolon focus right

              
                
                113
                +bindsym $mod+l focus right

              
                123
                114
                 bindsym $mod+Right focus right

              
                124
                115
                 

              
                125
                116
                 ##### Move focused container ######

              
                126
                
                -bindsym $mod+Shift+j move left

              
                
                117
                +bindsym $mod+Shift+h move left

              
                127
                118
                 bindsym $mod+Shift+Left move left

              
                128
                
                -bindsym $mod+Shift+k move down

              
                
                119
                +bindsym $mod+Shift+j move down

              
                129
                120
                 bindsym $mod+Shift+Down move down

              
                130
                
                -bindsym $mod+Shift+l move up

              
                
                121
                +bindsym $mod+Shift+k move up

              
                131
                122
                 bindsym $mod+Shift+Up move up

              
                132
                
                -bindsym $mod+Shift+colon move right

              
                
                123
                +bindsym $mod+Shift+l move right

              
                133
                124
                 bindsym $mod+Shift+Right move right

              
                134
                125
                 

              
                135
                126
                 ############ Workspaces ###########

              ···
                142
                133
                 set $ws7 "7"

              
                143
                134
                 set $ws8 "8"

              
                144
                135
                 set $ws9 "9"

              
                145
                
                -set $ws10 "10"

              
                146
                136
                 

              
                147
                137
                 bindsym $mod+1 workspace $ws1

              
                148
                138
                 bindsym $mod+2 workspace $ws2

              ···
                153
                143
                 bindsym $mod+7 workspace $ws7

              
                154
                144
                 bindsym $mod+8 workspace $ws8

              
                155
                145
                 bindsym $mod+9 workspace $ws9

              
                156
                
                -bindsym $mod+0 workspace $ws10

              
                157
                146
                 

              
                158
                147
                 bindsym $mod+Shift+1 move container to workspace $ws1

              
                159
                148
                 bindsym $mod+Shift+2 move container to workspace $ws2

              ···
                164
                153
                 bindsym $mod+Shift+7 move container to workspace $ws7

              
                165
                154
                 bindsym $mod+Shift+8 move container to workspace $ws8

              
                166
                155
                 bindsym $mod+Shift+9 move container to workspace $ws9

              
                167
                
                -bindsym $mod+Shift+0 move container to workspace $ws10

              
                168
                156
                 

              
                169
                157
                 ########### Resize mode ###########

              
                170
                
                -bindsym $mod+$alt+r mode "resize"

              
                171
                
                -bindsym $mod+$alt+g mode "gaps"

              
                
                158
                +bindsym $mod+Control+r mode "resize"

              
                
                159
                +bindsym $mod+Control+g mode "gaps"

              
                172
                160
                 

              
                173
                161
                 mode "resize" {

              
                174
                162
                     bindsym j resize shrink width 10 px or 10 ppt

              
M config/nvim/init.vim
···
                2
                2
                     Plug 'overcache/NeoSolarized'

              
                3
                3
                     Plug 'ryanoasis/vim-devicons'

              
                4
                4
                     Plug 'itchyny/lightline.vim'

              
                5
                
                -    

              
                
                5
                +    Plug 'iamcco/markdown-preview.nvim'

              
                
                6
                +    Plug 'dhruvasagar/vim-table-mode'

              
                
                7
                +

              
                6
                8
                     " File manger & seacher

              
                7
                9
                     Plug 'scrooloose/nerdtree', { 'on':  'NERDTreeToggle' }

              
                8
                10
                     Plug 'kien/ctrlp.vim', { 'on': 'CtrlP' }

              ···
                10
                12
                     " Completion

              
                11
                13
                     Plug 'jiangmiao/auto-pairs'

              
                12
                14
                     Plug 'neoclide/coc.nvim', {'branch': 'release'}

              
                
                15
                +    Plug 'easymotion/vim-easymotion'

              
                13
                16
                 

              
                14
                17
                     " Language support

              
                15
                18
                     Plug 'pangloss/vim-javascript', { 'for': 'javascript' }

              
                16
                19
                     Plug 'PotatoesMaster/i3-vim-syntax'

              
                17
                20
                     Plug 'vim-python/python-syntax', { 'for': 'python' }

              
                18
                
                -    Plug 'mattn/emmet-vim', { 'for': 'html' }

              
                
                21
                +    Plug 'mattn/emmet-vim', { 'on': 'Emmet' }

              
                
                22
                +    Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' }

              
                
                23
                +    Plug 'dag/vim-fish', { 'for': 'fish' }

              
                19
                24
                     Plug 'ap/vim-css-color'

              
                20
                25
                 call plug#end()

              
                21
                26
                 

              ···
                64
                69
                 set background=dark

              
                65
                70
                 colorscheme NeoSolarized

              
                66
                71
                 

              
                67
                
                -"""" Plugins """"

              
                
                72
                +

              
                
                73
                +" =======================

              
                
                74
                +" == Plugins configure ==

              
                
                75
                +" =======================

              
                
                76
                +

              
                
                77
                +"""""""" Lightline """""""" 

              
                68
                78
                 let g:lightline = {

              
                69
                79
                 \ 'colorscheme': 'selenized_dark',

              
                70
                80
                 \ 'active': {

              ···
                74
                84
                 \              [ 'percent' ],

              
                75
                85
                 \              [ 'filename', 'fileencoding', 'filetype' ] ]

              
                76
                86
                 \ }, }

              
                
                87
                +"""""""""""""""""""""""""""

              
                77
                88
                 

              
                
                89
                +""""""""" Nerdtree """"""""

              
                
                90
                +map <C-b> :NERDTreeToggle<CR>

              
                78
                91
                 let g:NERDTreeWinPos="right"

              
                
                92
                +let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']

              
                79
                93
                 let NERDTreeMinimalUI = 1

              
                80
                94
                 let NERDTreeShowLineNumbers=0

              
                
                95
                +"""""""""""""""""""""""""""

              
                81
                96
                 

              
                
                97
                +"""""""""""" Coc """"""""""

              
                82
                98
                 inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"

              
                83
                99
                 inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

              
                
                100
                +"""""""""""""""""""""""""""

              
                84
                101
                 

              
                85
                
                -"""" Maping """"

              
                
                102
                +"""""""" Easymotion """""""

              
                
                103
                +let g:EasyMotion_do_mapping = 0

              
                
                104
                +let g:EasyMotion_smartcase = 1

              
                
                105
                +nmap f <Plug>(easymotion-s)

              
                
                106
                +map  <Leader>w <Plug>(easymotion-bd-w)

              
                
                107
                +nmap F <Plug>(easymotion-overwin-line)

              
                
                108
                +nmap s <Plug>(easymotion-overwin-f2)

              
                
                109
                +"""""""""""""""""""""""""""

              
                
                110
                +

              
                
                111
                +"""" MarkDown Previw """"""

              
                
                112
                +let g:mkdp_path_to_chrome = "/usr/bin/qutebrowser"

              
                
                113
                +"""""""""""""""""""""""""""

              
                
                114
                +

              
                
                115
                +" ============

              
                
                116
                +" == Maping ==

              
                
                117
                +" ============

              
                86
                118
                 let mapleader=","

              
                
                119
                +

              
                
                120
                +" Change window

              
                87
                121
                 map <C-j> <C-W>j

              
                88
                122
                 map <C-k> <C-W>k

              
                89
                123
                 map <C-h> <C-W>h

              
                90
                124
                 map <C-l> <C-W>l

              
                91
                125
                 

              
                92
                
                -map <C-b> :NERDTreeToggle<CR>

              
                93
                
                -

              
                
                126
                +" Tab's

              
                94
                127
                 noremap <C-Tab> :tabnext<CR>

              
                95
                128
                 noremap <C-S-Tab> :tabprev<CR>

              
                96
                
                -

              
                97
                129
                 noremap <C-n> :tabnew<CR>

              
                98
                130
                 noremap <C-t> :tabnew<CR>

              
                99
                131
                 noremap <C-w> :tabclose<CR>

              ···
                106
                138
                 noremap <leader>7 :tabn 7<CR>

              
                107
                139
                 noremap <leader>8 :tabn 8<CR>

              
                108
                140
                 noremap <leader>9 :tabn 9<CR>

              
                109
                
                -

              
                110
                141
                 noremap <leader>n :bnext<CR>

              
                111
                142
                 noremap <leader>p :bprev<CR>

              
M config/picom.conf
···
                6
                6
                 shadow-radius = 11;

              
                7
                7
                 shadow-offset-x = -7;

              
                8
                8
                 shadow-offset-y = -7;

              
                9
                
                -shadow-exclude = [];

              
                
                9
                +shadow-exclude = [

              
                
                10
                +  "class_g = 'Firefox' && argb",

              
                
                11
                +  "name = 'Notification'",

              
                
                12
                +  "class_g = 'Polybar'"

              
                
                13
                +];

              
                10
                14
                 

              
                11
                15
                 

              
                12
                16
                 ############ Fading ###########

              ···
                22
                26
                 inactive-opacity-override = false;

              
                23
                27
                 #inactive-opacity-override = true;

              
                24
                28
                 focus-exclude = []; 

              
                25
                
                -

              
                
                29
                +#no-fading-openclose = true

              
                26
                30
                 

              
                27
                31
                 ##### Background-Blurring #####

              
                28
                32
                 blur-kern = "3x3box";

              
M config/polybar/config
···
                3
                3
                 

              
                4
                4
                 [colors]

              
                5
                5
                 ; Solarized ========

              
                6
                
                -;background = #002B36

              
                7
                
                -;foreground = #dfdfdf

              
                8
                
                -;secondary = #073642

              
                9
                
                -;alert = #268bd2

              
                
                6
                +background = #002B36

              
                
                7
                +foreground = #dfdfdf

              
                
                8
                +secondary = #073642

              
                
                9
                +alert = #268bd2

              
                10
                10
                 

              
                11
                
                -; Nord ============

              
                12
                
                -background = #2E3440

              
                13
                
                -foreground = #ECEFF4

              
                14
                
                -secondary = #434C5E

              
                15
                
                -alert = #88C0D0

              
                
                11
                +; Nord =============

              
                
                12
                +;background = #2E3440

              
                
                13
                +;foreground = #ECEFF4

              
                
                14
                +;secondary = #434C5E

              
                
                15
                +;alert = #88C0D0

              
                16
                16
                 

              
                17
                17
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

              
                18
                18
                 [bar/i3bar]

              
                19
                19
                 width = 100%

              
                20
                
                -height = 20

              
                
                20
                +height = 24

              
                21
                21
                 

              
                22
                22
                 fixed-center = true

              
                
                23
                +wm-restack = i3

              
                23
                24
                 ;override-redirect = true

              
                24
                25
                 

              
                25
                26
                 background = ${colors.background}

              
                26
                27
                 foreground = ${colors.foreground}

              
                27
                28
                 

              
                28
                
                -line-size = 2

              
                
                29
                +line-size = 3 

              
                29
                30
                 line-color = #000000

              
                30
                31
                 

              
                31
                
                -padding-left = 2

              
                32
                
                -padding-right = 2

              
                
                32
                +#padding-left = 2

              
                
                33
                +#padding-right = 2

              
                33
                34
                 

              
                34
                
                -radius = 6.0

              
                35
                
                -border-left-size = 0.2%

              
                36
                
                -border-top-size = 0.2%

              
                37
                
                -border-right-size = 0.2%

              
                
                35
                +#radius = 6.0

              
                
                36
                +#border-left-size = 0.2%

              
                
                37
                +#border-top-size = 0.2%

              
                
                38
                +#border-right-size = 0.2%

              
                38
                39
                 

              
                39
                40
                 module-margin-left = 1

              
                40
                41
                 module-margin-right = 1

              ···
                43
                44
                 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5

              
                44
                45
                 font-2 = Weather Icons:size=7;2

              
                45
                46
                 

              
                46
                
                -modules-left =  i3 weather title

              
                
                47
                +modules-left =  i3 weather

              
                47
                48
                 modules-right = keyboard pulseaudio backlight wifi-signal time

              
                48
                
                -tray-position = center

              
                
                49
                +tray-position = right

              
                49
                50
                 

              
                50
                51
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

              
                51
                52
                 [settings]

              
                52
                53
                 screenchange-reload = true

              
                53
                54
                 

              
                54
                
                -[global/wm]

              
                55
                
                -wm-restack = i3

              
                56
                
                -

              
                57
                55
                 [module/i3]

              
                58
                56
                 type = internal/i3

              
                59
                57
                 format = <label-state><label-mode>

              
                60
                
                -index-sort = true

              
                
                58
                +index-sort = false

              
                61
                59
                 wrapping-scroll = false

              
                62
                60
                 label-mode-padding = 1

              
                63
                61
                 label-mode-foreground = #000

              
                64
                
                -label-mode-background = ${colors.secondary}

              
                
                62
                +label-mode-background = ${colors.alert}

              
                65
                63
                 

              
                66
                64
                 label-focused = %icon%

              
                67
                65
                 label-focused-background =  ${colors.secondary}

              ···
                92
                90
                 ws-icon-4 = "5;5 "

              
                93
                91
                 ws-icon-5 = "6;6 "

              
                94
                92
                 ws-icon-6 = "7;7 "

              
                95
                
                -ws-icon-7 = 8;8

              
                96
                
                -ws-icon-8 = 9;9

              
                97
                
                -ws-icon-9 = "10;10 "

              
                98
                
                -;label-separator = |

              
                
                93
                +ws-icon-7 = "8;8 "

              
                
                94
                +ws-icon-8 = "9;9 "

              
                99
                95
                 

              
                100
                96
                 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

              
                101
                97
                 ;; INCLUDE MODULES

              ···
                112
                108
                 interface = wlp3s0

              
                113
                109
                 format-connected = <ramp-signal> <label-connected>

              
                114
                110
                 label-connected = %essid%

              
                115
                
                -format-disconnected =  No sing

              
                
                111
                +format-disconnected =   No sig

              
                116
                112
                 ramp-signal-0 = 

              
                117
                113
                 interval = 3.0

              
                118
                114
                 

              ···
                176
                172
                 format = <label>

              
                177
                173
                 exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}'

              
                178
                174
                 format-underline = ${colors.alert}

              
                179
                
                -2

              
                180
                175
                 

              
                181
                176
                 [module/updates-pacman]

              
                182
                177
                 type = custom/script

              ···
                225
                220
                 [module/title]

              
                226
                221
                 type = internal/xwindow

              
                227
                222
                 label = %title:0:50:...%

              
                228
                
                -label-empty = Empty

              
                229
                
                -label-empty-foreground = #707880

              
                
                223
                +label-empty =

              
                230
                224
                 label-maxlen = 50

              
                231
                225
                 

              
                232
                226
                 

              
A config/qtile/autostart.sh
···
                
                1
                +#!/bin/sh

              
                
                2
                +setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"

              
                
                3
                +picom -b &

              
                
                4
                +nitrogen --restore &

              
                
                5
                +kitty &

              
A config/qtile/config.py
···
                
                1
                +from typing import List

              
                
                2
                +from libqtile import bar, layout, widget, hook

              
                
                3
                +from libqtile.config import Click, Drag, Group, Key, Screen

              
                
                4
                +from libqtile.lazy import lazy

              
                
                5
                +import os

              
                
                6
                +

              
                
                7
                +

              
                
                8
                +auto_fullscreen = True

              
                
                9
                +focus_on_window_activation = "smart"

              
                
                10
                +

              
                
                11
                +mod = "mod4"            # Set mod key(Super/Win)

              
                
                12
                +terminal = "kitty"      # Set terminal

              
                
                13
                +

              
                
                14
                +colors = [["#292d3e", "#292d3e"], # panel background

              
                
                15
                +          ["#434758", "#434758"], # background for current screen tab

              
                
                16
                +          ["#ffffff", "#ffffff"], # font color for group names

              
                
                17
                +          ["#ff5555", "#ff5555"], # border line color for current tab

              
                
                18
                +          ["#ff1151", "#ff1151"], # border line color for current tab

              
                
                19
                +          ["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets

              
                
                20
                +          ["#668bd7", "#668bd7"], # color for the even widgets

              
                
                21
                +          ["#e1acff", "#e1acff"]] # window name

              
                
                22
                +

              
                
                23
                +@hook.subscribe.startup_once

              
                
                24
                +def autostart(): os.system("~/.config/qtile/autostart.sh")

              
                
                25
                +

              
                
                26
                +

              
                
                27
                +keys = [

              
                
                28
                +    ## Window control

              
                
                29
                +    Key([mod, "shift"], "c", lazy.window.kill(), desc="Kill focused window"),

              
                
                30
                +    Key([mod], "k", lazy.layout.down(), desc="Move focus down in stack pane"),

              
                
                31
                +    Key([mod], "j", lazy.layout.up(), desc="Move focus up in stack pane"),

              
                
                32
                +    Key([mod, "control"], "k", lazy.layout.shuffle_down(), desc="Move window down in current stack"),

              
                
                33
                +    Key([mod, "control"], "j", lazy.layout.shuffle_up(), desc="Move window up in current stack"),

              
                
                34
                +

              
                
                35
                +    ## Layout changer

              
                
                36
                +    Key([mod], "space", lazy.next_layout(), desc="Toggle between layouts"),

              
                
                37
                +    Key([mod, "shift"], "space", lazy.prev_layout(), desc="Toggle between layouts"),

              
                
                38
                +   

              
                
                39
                +    ## Launch program

              
                
                40
                +    Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),

              
                
                41
                +    Key([mod], "F1", lazy.spawn(terminal + " -e ranger"), desc="Launch ranger"),

              
                
                42
                +    Key([mod], "F2", lazy.spawn("qutebrowser"), desc="Launch qutebrowser"),

              
                
                43
                +

              
                
                44
                +    ## Program launcher(Dmenu or default)

              
                
                45
                +    Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget" ),

              
                
                46
                +    Key([mod, "shift"], "Return", lazy.spawn("dmenu_run -h 24 -p Run:"), desc="Demnu program launcher" ),

              
                
                47
                +    Key([mod, "control"], "u", lazy.spawn("sh ~/.script/dmenu/dmenu-config-edit.sh"), desc="Dmenu config menu"),

              
                
                48
                +    Key([mod, "control"], "i", lazy.spawn("passmenu -h 24"), desc="Dmenu password menu"),

              
                
                49
                +

              
                
                50
                +    ## Qtile

              
                
                51
                +    Key([mod, "control"], "r", lazy.restart(), desc="Restart qtile"),

              
                
                52
                +    Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown qtile"),

              
                
                53
                +    

              
                
                54
                +    ## Keyboard

              
                
                55
                +    Key(["mod1"], "Shift_L", lazy.widget['keyboardlayout'].next_keyboard(), desc="Switch keyboard layout"),

              
                
                56
                +]

              
                
                57
                +

              
                
                58
                +group_names = [("term", {'layout': 'monadtall'}),

              
                
                59
                +               ("www", {'layout': 'monadtall'}),

              
                
                60
                +               ("dev", {'layout': 'monadtall'}),

              
                
                61
                +               ("sys", {'layout': 'monadtall'}),

              
                
                62
                +               ("note", {'layout': 'monadtall'}),

              
                
                63
                +               ("chat", {'layout': 'monadtall'}),

              
                
                64
                +               ("pass", {'layout': 'monadtall'}),

              
                
                65
                +               ("gft", {'layout': 'max'}),

              
                
                66
                +               ("flo", {'layout': 'floating'})

              
                
                67
                +]

              
                
                68
                +groups = [Group(name, **kwargs) for name, kwargs in group_names]

              
                
                69
                +for i, (name, kwargs) in enumerate(group_names, 1):

              
                
                70
                +    keys.append(Key([mod], str(i), lazy.group[name].toscreen()))

              
                
                71
                +    keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name)))

              
                
                72
                +

              
                
                73
                +layout_theme = {

              
                
                74
                +    "border_width": 2,

              
                
                75
                +    "margin": 0,

              
                
                76
                +    "border_focus": "e1acff",

              
                
                77
                +    "border_normal": "1D2330"

              
                
                78
                +}

              
                
                79
                +layouts = [

              
                
                80
                +    layout.Max(**layout_theme),

              
                
                81
                +    #layout.Stack(num_stacks=2, **layout_theme),

              
                
                82
                +    #layout.Bsp(**layout_theme),

              
                
                83
                +    layout.MonadTall(**layout_theme),

              
                
                84
                +    layout.Floating(**layout_theme)

              
                
                85
                +]

              
                
                86
                +

              
                
                87
                +widget_defaults = dict(

              
                
                88
                +    font='sans',

              
                
                89
                +    fontsize=12,

              
                
                90
                +    padding=5,

              
                
                91
                +)

              
                
                92
                +extension_defaults = widget_defaults.copy()

              
                
                93
                +

              
                
                94
                +screens = [

              
                
                95
                +    Screen(

              
                
                96
                +        top=bar.Bar([

              
                
                97
                +                widget.GroupBox(

              
                
                98
                +                       borderwidth = 0,

              
                
                99
                +                       active = colors[2],

              
                
                100
                +                       inactive = colors[2],

              
                
                101
                +                       rounded = False,

              
                
                102
                +                       highlight_color = colors[1],

              
                
                103
                +                       highlight_method = "line",

              
                
                104
                +                       this_current_screen_border = colors[3],

              
                
                105
                +                       this_screen_border = colors [4],

              
                
                106
                +                       other_current_screen_border = colors[0],

              
                
                107
                +                       other_screen_border = colors[0],

              
                
                108
                +                       foreground = colors[2],

              
                
                109
                +                       background = colors[0]

              
                
                110
                +                ),

              
                
                111
                +                widget.Prompt( padding = 10, foreground = colors[3], background = colors[0] ),

              
                
                112
                +                widget.WindowName( foreground = colors[6], background = colors[0], padding = 7 ),

              
                
                113
                +                widget.Systray( background = colors[0], padding = 3 ),

              
                
                114
                +                widget.CurrentLayout(foreground = colors[2], background = colors[0]),

              
                
                115
                +                widget.Net( interface = "wlp3s0", format = '{down}↓↑{up}', foreground = colors[2], background = colors[0], padding = 0 ),

              
                
                116
                +                widget.TextBox(padding=3, background=colors[0]),

              
                
                117
                +                widget.TextBox( text="", foreground = colors[2], background = colors[0], padding=3 ),

              
                
                118
                +                widget.Volume( update_interval = 0.2, foreground = colors[2], background = colors[0], padding=0 ),

              
                
                119
                +                widget.TextBox(padding=3, background=colors[0]),

              
                
                120
                +                widget.TextBox( text="", foreground=colors[2], background=colors[0], padding=0 ),

              
                
                121
                +                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 ),

              
                
                122
                +                widget.TextBox(padding=3, background=colors[0]),

              
                
                123
                +                widget.TextBox( text = "", background = colors[0], foreground = colors[2], padding = 0 ),

              
                
                124
                +                widget.Clock( format='%H:%M:%S', foreground=colors[2], background=colors[0], padding=2 )

              
                
                125
                +            ],

              
                
                126
                +            22,

              
                
                127
                +        ),

              
                
                128
                +    ),

              
                
                129
                +]

              
                
                130
                +

              
                
                131
                +# Drag floating layouts.

              
                
                132
                +mouse = [

              
                
                133
                +    Drag([mod], "Button1", lazy.window.set_position_floating(),

              
                
                134
                +         start=lazy.window.get_position()),

              
                
                135
                +    Drag([mod], "Button3", lazy.window.set_size_floating(),

              
                
                136
                +         start=lazy.window.get_size()),

              
                
                137
                +    Click([mod], "Button2", lazy.window.bring_to_front())

              
                
                138
                +]

              
                
                139
                +

              
                
                140
                +

              
                
                141
                +

              
                
                142
                +dgroups_key_binder = None

              
                
                143
                +dgroups_app_rules = []  # type: List

              
                
                144
                +main = None  # WARNING: this is deprecated and will be removed soon

              
                
                145
                +follow_mouse_focus = True

              
                
                146
                +bring_front_click = False

              
                
                147
                +cursor_warp = False

              
                
                148
                +floating_layout = layout.Floating(float_rules=[

              
                
                149
                +    {'wmclass': 'confirm'},

              
                
                150
                +    {'wmclass': 'dialog'},

              
                
                151
                +    {'wmclass': 'download'},

              
                
                152
                +    {'wmclass': 'error'},

              
                
                153
                +    {'wmclass': 'file_progress'},

              
                
                154
                +    {'wmclass': 'notification'},

              
                
                155
                +    {'wmclass': 'splash'},

              
                
                156
                +    {'wmclass': 'toolbar'},

              
                
                157
                +    {'wmclass': 'confirmreset'},  # gitk

              
                
                158
                +    {'wmclass': 'makebranch'},  # gitk

              
                
                159
                +    {'wmclass': 'maketag'},  # gitk

              
                
                160
                +    {'wname': 'branchdialog'},  # gitk

              
                
                161
                +    {'wname': 'pinentry'},  # GPG key password entry

              
                
                162
                +    {'wmclass': 'ssh-askpass'},  # ssh-askpass

              
                
                163
                +])

              
                
                164
                +auto_fullscreen = True

              
                
                165
                +focus_on_window_activation = "smart"

              
                
                166
                +

              
                
                167
                +wmname = "LG3D"

              
D config/qutebrowser/autoconfig.yml
···
                1
                
                -config_version: 2

              
                2
                
                -settings:

              
                3
                
                -  colors.completion.category.bg:

              
                4
                
                -    global: '#002b36'

              
                5
                
                -  colors.completion.category.border.bottom:

              
                6
                
                -    global: '#073642'

              
                7
                
                -  colors.completion.category.border.top:

              
                8
                
                -    global: '#073642'

              
                9
                
                -  colors.completion.even.bg:

              
                10
                
                -    global: '#073642'

              
                11
                
                -  colors.completion.fg:

              
                12
                
                -    global: '#ffffff'

              
                13
                
                -  colors.completion.item.selected.bg:

              
                14
                
                -    global: '#002b36'

              
                15
                
                -  colors.completion.item.selected.border.bottom:

              
                16
                
                -    global: '#002b36'

              
                17
                
                -  colors.completion.item.selected.border.top:

              
                18
                
                -    global: '#002b36'

              
                19
                
                -  colors.completion.item.selected.fg:

              
                20
                
                -    global: '#93a1a1'

              
                21
                
                -  colors.completion.odd.bg:

              
                22
                
                -    global: '#073642'

              
                23
                
                -  colors.completion.scrollbar.bg:

              
                24
                
                -    global: '#073642'

              
                25
                
                -  colors.completion.scrollbar.fg:

              
                26
                
                -    global: '#002b36'

              
                27
                
                -  colors.downloads.bar.bg:

              
                28
                
                -    global: '#002b36'

              
                29
                
                -  colors.downloads.error.bg:

              
                30
                
                -    global: '#dc322f'

              
                31
                
                -  colors.downloads.start.bg:

              
                32
                
                -    global: '#268bd2'

              
                33
                
                -  colors.downloads.stop.bg:

              
                34
                
                -    global: '#619100'

              
                35
                
                -  colors.messages.info.bg:

              
                36
                
                -    global: '#002b36'

              
                37
                
                -  colors.messages.info.border:

              
                38
                
                -    global: '#002b36'

              
                39
                
                -  colors.messages.warning.border:

              
                40
                
                -    global: '#002b36'

              
                41
                
                -  colors.statusbar.caret.bg:

              
                42
                
                -    global: '#002b36'

              
                43
                
                -  colors.statusbar.command.bg:

              
                44
                
                -    global: '#002b36'

              
                45
                
                -  colors.statusbar.insert.bg:

              
                46
                
                -    global: '#002b36'

              
                47
                
                -  colors.statusbar.normal.bg:

              
                48
                
                -    global: '#002b36'

              
                49
                
                -  colors.statusbar.passthrough.bg:

              
                50
                
                -    global: '#002b36'

              
                51
                
                -  colors.statusbar.private.bg:

              
                52
                
                -    global: '#6c71c4'

              
                53
                
                -  colors.statusbar.url.error.fg:

              
                54
                
                -    global: '#dc322f'

              
                55
                
                -  colors.statusbar.url.fg:

              
                56
                
                -    global: '#2aa198'

              
                57
                
                -  colors.statusbar.url.success.http.fg:

              
                58
                
                -    global: '#2aa198'

              
                59
                
                -  colors.statusbar.url.success.https.fg:

              
                60
                
                -    global: '#2aa198'

              
                61
                
                -  colors.tabs.bar.bg:

              
                62
                
                -    global: '#073642'

              
                63
                
                -  colors.tabs.even.bg:

              
                64
                
                -    global: '#073642'

              
                65
                
                -  colors.tabs.indicator.error:

              
                66
                
                -    global: '#dc322f'

              
                67
                
                -  colors.tabs.indicator.start:

              
                68
                
                -    global: '#002b36'

              
                69
                
                -  colors.tabs.indicator.stop:

              
                70
                
                -    global: '#002b36'

              
                71
                
                -  colors.tabs.odd.bg:

              
                72
                
                -    global: '#073642'

              
                73
                
                -  colors.tabs.selected.even.bg:

              
                74
                
                -    global: '#002b36'

              
                75
                
                -  colors.tabs.selected.even.fg:

              
                76
                
                -    global: '#073642'

              
                77
                
                -  colors.tabs.selected.odd.bg:

              
                78
                
                -    global: '#002b36'

              
                79
                
                -  colors.tabs.selected.odd.fg:

              
                80
                
                -    global: '#073642'

              
                81
                
                -  colors.webpage.bg:

              
                82
                
                -    global: white

              
                83
                
                -  colors.webpage.darkmode.enabled:

              
                84
                
                -    global: false

              
                85
                
                -  downloads.position:

              
                86
                
                -    global: bottom

              
                87
                
                -  tabs.position:

              
                88
                
                -    global: top

              
M config/qutebrowser/config.py
···
                1
                
                -## Generall

              
                2
                
                -c.url.start_pages = ["https://start.duckduckgo.com"]    # Start page

              
                
                1
                +# general

              
                
                2
                +c.url.start_pages = ["https://start.duckduckgo.com"]

              
                
                3
                +config.set("colors.webpage.darkmode.enabled", True)

              
                
                4
                +c.downloads.location.directory = '/home/sasha/Загрузки'

              
                
                5
                +c.completion.shrink = True

              
                3
                6
                 config.load_autoconfig()

              
                4
                
                -c.completion.shrink = True

              
                5
                7
                 

              
                6
                
                -c.downloads.location.directory = '/home/sasha/Downloads'    # Download folder

              
                7
                
                -c.tabs.show = 'multiple'                                    # When to show the tab bar. [always, never, multiple ,switching]

              
                
                8
                +# tabs, download

              
                
                9
                +c.tabs.show = 'multiple' #always, never, multiple ,switching

              
                
                10
                +c.tabs.position = "top"

              
                
                11
                +c.downloads.position = "bottom"

              
                8
                12
                 

              
                9
                
                -config.set('content.cookies.accept', 'all', 'chrome-devtools://*')  # Accept to cookie

              
                10
                
                -config.set('content.cookies.accept', 'all', 'devtools://*')         # Accept to cookie

              
                11
                
                -

              
                12
                
                -config.set('content.images', True, 'chrome-devtools://*')           # Auto load images

              
                13
                
                -config.set('content.images', True, 'devtools://*')                  # Auto load images

              
                14
                
                -

              
                15
                
                -config.set('content.javascript.enabled', True, 'chrome-devtools://*') # Enable JavaScript

              
                16
                
                -config.set('content.javascript.enabled', True, 'devtools://*')        # Enable JavaScript

              
                17
                
                -config.set('content.javascript.enabled', True, 'chrome://*/*')        # Enable JavaScript

              
                18
                
                -config.set('content.javascript.enabled', True, 'qute://*/*')          # Enable JavaScript

              
                19
                
                -

              
                20
                
                -## User agent

              
                21
                
                -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/')

              
                
                13
                +# alias, binds, search

              
                
                14
                +c.aliases = {'q':'quit', 'w':'session-save', 'wq':'quit --save', 'e':'open'} 

              
                
                15
                +config.bind('<l><p', 'spawn --userscript qute-pass')

              
                
                16
                +c.url.searchengines = {

              
                
                17
                +    'DEFAULT': 'https://www.google.com/search?q={}',

              
                
                18
                +    'ddg': 'https://duckduckgo.com/?q={}',

              
                
                19
                +    'arw': 'https://wiki.archlinux.org/?search={}',

              
                
                20
                +    'rdd': 'https://www.reddit.com/r/{}'

              
                
                21
                +}

              
                
                22
                +# Enable cookie, image, js & user agents

              
                
                23
                +config.set('content.cookies.accept', 'all', 'chrome-devtools://*')

              
                
                24
                +config.set('content.cookies.accept', 'all', 'devtools://*')

              
                
                25
                +config.set('content.images', True, 'chrome-devtools://*')

              
                
                26
                +config.set('content.images', True, 'devtools://*')

              
                
                27
                +config.set('content.javascript.enabled', True, 'chrome-devtools://*')

              
                
                28
                +config.set('content.javascript.enabled', True, 'devtools://*')

              
                
                29
                +config.set('content.javascript.enabled', True, 'chrome://*/*')

              
                
                30
                +config.set('content.javascript.enabled', True, 'qute://*/*')

              
                22
                31
                 config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://accounts.google.com/*')

              
                23
                32
                 config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')

              
                24
                33
                 config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://docs.google.com/*')

              
                25
                34
                 config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://drive.google.com/*')

              
                26
                35
                 

              
                
                36
                +# theme

              
                
                37
                +## Solarised #########

              
                
                38
                +color01 = "#002B36"

              
                
                39
                +color02 = "#073642"

              
                
                40
                +color03 = "#619100"

              
                
                41
                +color04 = "#268BD2"

              
                
                42
                +color05 = "#6C71C4"

              
                
                43
                +color06 = "#dc322f"

              
                
                44
                +color07 = "#FFFFFF"

              
                
                45
                +color08 = "#93A1A1"

              
                
                46
                +color09 = "#2AA198"

              
                
                47
                +######################

              
                27
                48
                 

              
                28
                
                -## Search engines which can be used via the address bar.

              
                29
                
                -c.url.searchengines = {

              
                30
                
                -    'DEFAULT': 'https://www.google.com/search?q={}',

              
                31
                
                -    'ddg': 'https://duckduckgo.com/?q={}',

              
                32
                
                -    'arw': 'https://wiki.archlinux.org/?search={}',

              
                33
                
                -    'rdd': 'https://www.reddit.com/r/{}'

              
                34
                
                -}

              
                
                49
                +c.colors.completion.category.bg = color01 

              
                
                50
                +c.colors.completion.category.border.bottom = color02

              
                
                51
                +c.colors.completion.category.border.top = color02

              
                
                52
                +c.colors.completion.even.bg = color02

              
                
                53
                +c.colors.completion.fg = color07

              
                
                54
                +c.colors.completion.item.selected.bg = color01

              
                
                55
                +c.colors.completion.item.selected.border.bottom = color01

              
                
                56
                +c.colors.completion.item.selected.border.top = color01

              
                
                57
                +c.colors.completion.item.selected.fg = color08

              
                
                58
                +c.colors.completion.odd.bg = color02

              
                
                59
                +c.colors.downloads.bar.bg = color01

              
                
                60
                +c.colors.downloads.error.bg = color06

              
                
                61
                +c.colors.downloads.start.bg = color03

              
                
                62
                +c.colors.downloads.stop.bg = color04

              
                
                63
                +#c.colors.messages.info.bg = color01

              
                
                64
                +#c.colors.messages.info.border = color01

              
                
                65
                +#c.colors.messages.warning.border = color01

              
                
                66
                +c.colors.statusbar.caret.bg = color01

              
                
                67
                +c.colors.statusbar.command.bg = color01

              
                
                68
                +c.colors.statusbar.insert.bg = color01

              
                
                69
                +c.colors.statusbar.normal.bg = color01

              
                
                70
                +c.colors.statusbar.passthrough.bg = color01

              
                
                71
                +c.colors.statusbar.private.bg = color04

              
                
                72
                +c.colors.statusbar.url.error.fg = color06

              
                
                73
                +c.colors.statusbar.url.fg = color07

              
                
                74
                +c.colors.statusbar.url.success.http.fg = color07 

              
                
                75
                +c.colors.statusbar.url.success.https.fg = color07

              
                
                76
                +c.colors.tabs.bar.bg = color02

              
                
                77
                +c.colors.tabs.even.bg = color02

              
                
                78
                +c.colors.tabs.indicator.error = color06

              
                
                79
                +c.colors.tabs.indicator.start = color01

              
                
                80
                +c.colors.tabs.indicator.stop = color01

              
                
                81
                +c.colors.tabs.odd.bg = color02

              
                
                82
                +c.colors.tabs.selected.even.bg = color01

              
                
                83
                +c.colors.tabs.selected.even.fg = color02

              
                
                84
                +c.colors.tabs.selected.odd.bg = color01

              
                
                85
                +c.colors.tabs.selected.odd.fg = color02

              
A config/ranger/plugins/devicons.py
···
                
                1
                +#!/usr/bin/python

              
                
                2
                +import ranger.api

              
                
                3
                +from ranger.core.linemode import LinemodeBase

              
                
                4
                +from .devicons import *

              
                
                5
                +import re

              
                
                6
                +import os

              
                
                7
                +

              
                
                8
                +

              
                
                9
                +@ranger.api.register_linemode

              
                
                10
                +class DevIconsLinemode(LinemodeBase):

              
                
                11
                +    name = "devicons"

              
                
                12
                +    uses_metadata = False

              
                
                13
                +    def filetitle(self, file, metadata):

              
                
                14
                +        return devicon(file) + ' ' + file.relative_path

              
                
                15
                +

              
                
                16
                +@ranger.api.register_linemode

              
                
                17
                +class DevIconsLinemodeFile(LinemodeBase):

              
                
                18
                +    name = "filename"

              
                
                19
                +    def filetitle(self, file, metadata):

              
                
                20
                +        return devicon(file) + ' ' + file.relative_path

              
                
                21
                +

              
                
                22
                +file_node_extensions = {

              
                
                23
                +    '7z'       : '',

              
                
                24
                +    'a'        : '',

              
                
                25
                +    'ai'       : '',

              
                
                26
                +    'apk'      : '',

              
                
                27
                +    'asm'      : '',

              
                
                28
                +    'asp'      : '',

              
                
                29
                +    'aup'      : '',

              
                
                30
                +    'avi'      : '',

              
                
                31
                +    'awk'      : '',

              
                
                32
                +    'bash'     : '',

              
                
                33
                +    'bat'      : '',

              
                
                34
                +    'bmp'      : '',

              
                
                35
                +    'bz2'      : '',

              
                
                36
                +    'c'        : '',

              
                
                37
                +    'c++'      : '',

              
                
                38
                +    'cab'      : '',

              
                
                39
                +    'cbr'      : '',

              
                
                40
                +    'cbz'      : '',

              
                
                41
                +    'cc'       : '',

              
                
                42
                +    'class'    : '',

              
                
                43
                +    'clj'      : '',

              
                
                44
                +    'cljc'     : '',

              
                
                45
                +    'cljs'     : '',

              
                
                46
                +    'cmake'    : '',

              
                
                47
                +    'coffee'   : '',

              
                
                48
                +    'conf'     : '',

              
                
                49
                +    'cp'       : '',

              
                
                50
                +    'cpio'     : '',

              
                
                51
                +    'cpp'      : '',

              
                
                52
                +    'cs'       : '',

              
                
                53
                +    'csh'      : '',

              
                
                54
                +    'css'      : '',

              
                
                55
                +    'cue'      : '',

              
                
                56
                +    'cvs'      : '',

              
                
                57
                +    'cxx'      : '',

              
                
                58
                +    'd'        : '',

              
                
                59
                +    'dart'     : '',

              
                
                60
                +    'db'       : '',

              
                
                61
                +    'deb'      : '',

              
                
                62
                +    'diff'     : '',

              
                
                63
                +    'dll'      : '',

              
                
                64
                +    'doc'      : '',

              
                
                65
                +    'docx'     : '',

              
                
                66
                +    'dump'     : '',

              
                
                67
                +    'edn'      : '',

              
                
                68
                +    'eex'      : '',

              
                
                69
                +    'efi'      : '',

              
                
                70
                +    'ejs'      : '',

              
                
                71
                +    'elf'      : '',

              
                
                72
                +    'elm'      : '',

              
                
                73
                +    'epub'     : '',

              
                
                74
                +    'erl'      : '',

              
                
                75
                +    'ex'       : '',

              
                
                76
                +    'exe'      : '',

              
                
                77
                +    'exs'      : '',

              
                
                78
                +    'f#'       : '',

              
                
                79
                +    'fifo'     : '|',

              
                
                80
                +    'fish'     : '',

              
                
                81
                +    'flac'     : '',

              
                
                82
                +    'flv'      : '',

              
                
                83
                +    'fs'       : '',

              
                
                84
                +    'fsi'      : '',

              
                
                85
                +    'fsscript' : '',

              
                
                86
                +    'fsx'      : '',

              
                
                87
                +    'gem'      : '',

              
                
                88
                +    'gemspec'  : '',

              
                
                89
                +    'gif'      : '',

              
                
                90
                +    'go'       : '',

              
                
                91
                +    'gz'       : '',

              
                
                92
                +    'gzip'     : '',

              
                
                93
                +    'h'        : '',

              
                
                94
                +    'haml'     : '',

              
                
                95
                +    'hbs'      : '',

              
                
                96
                +    'hh'       : '',

              
                
                97
                +    'hpp'      : '',

              
                
                98
                +    'hrl'      : '',

              
                
                99
                +    'hs'       : '',

              
                
                100
                +    'htaccess' : '',

              
                
                101
                +    'htm'      : '',

              
                
                102
                +    'html'     : '',

              
                
                103
                +    'htpasswd' : '',

              
                
                104
                +    'hxx'      : '',

              
                
                105
                +    'ico'      : '',

              
                
                106
                +    'img'      : '',

              
                
                107
                +    'ini'      : '',

              
                
                108
                +    'iso'      : '',

              
                
                109
                +    'jar'      : '',

              
                
                110
                +    'java'     : '',

              
                
                111
                +    'jl'       : '',

              
                
                112
                +    'jpeg'     : '',

              
                
                113
                +    'jpg'      : '',

              
                
                114
                +    'js'       : '',

              
                
                115
                +    'json'     : '',

              
                
                116
                +    'jsx'      : '',

              
                
                117
                +    'key'      : '',

              
                
                118
                +    'ksh'      : '',

              
                
                119
                +    'leex'     : '',

              
                
                120
                +    'less'     : '',

              
                
                121
                +    'lha'      : '',

              
                
                122
                +    'lhs'      : '',

              
                
                123
                +    'log'      : '',

              
                
                124
                +    'lua'      : '',

              
                
                125
                +    'lzh'      : '',

              
                
                126
                +    'lzma'     : '',

              
                
                127
                +    'm4a'      : '',

              
                
                128
                +    'm4v'      : '',

              
                
                129
                +    'markdown' : '',

              
                
                130
                +    'md'       : '',

              
                
                131
                +    'mdx'      : '',

              
                
                132
                +    'mjs'      : '',

              
                
                133
                +    'mkv'      : '',

              
                
                134
                +    'ml'       : 'λ',

              
                
                135
                +    'mli'      : 'λ',

              
                
                136
                +    'mov'      : '',

              
                
                137
                +    'mp3'      : '',

              
                
                138
                +    'mp4'      : '',

              
                
                139
                +    'mpeg'     : '',

              
                
                140
                +    'mpg'      : '',

              
                
                141
                +    'msi'      : '',

              
                
                142
                +    'mustache' : '',

              
                
                143
                +    'nix'      : '',

              
                
                144
                +    'o'        : '',

              
                
                145
                +    'ogg'      : '',

              
                
                146
                +    'pdf'      : '',

              
                
                147
                +    'php'      : '',

              
                
                148
                +    'pl'       : '',

              
                
                149
                +    'pm'       : '',

              
                
                150
                +    'png'      : '',

              
                
                151
                +    'pp'       : '',

              
                
                152
                +    'ppt'      : '',

              
                
                153
                +    'pptx'     : '',

              
                
                154
                +    'ps1'      : '',

              
                
                155
                +    'psb'      : '',

              
                
                156
                +    'psd'      : '',

              
                
                157
                +    'pub'      : '',

              
                
                158
                +    'py'       : '',

              
                
                159
                +    'pyc'      : '',

              
                
                160
                +    'pyd'      : '',

              
                
                161
                +    'pyo'      : '',

              
                
                162
                +    'r'        : 'ﳒ',

              
                
                163
                +    'rake'     : '',

              
                
                164
                +    'rar'      : '',

              
                
                165
                +    'rb'       : '',

              
                
                166
                +    'rc'       : '',

              
                
                167
                +    'rlib'     : '',

              
                
                168
                +    'rmd'      : '',

              
                
                169
                +    'rom'      : '',

              
                
                170
                +    'rpm'      : '',

              
                
                171
                +    'rproj'    : '鉶',

              
                
                172
                +    'rs'       : '',

              
                
                173
                +    'rss'      : '',

              
                
                174
                +    'rtf'      : '',

              
                
                175
                +    's'        : '',

              
                
                176
                +    'sass'     : '',

              
                
                177
                +    'scala'    : '',

              
                
                178
                +    'scss'     : '',

              
                
                179
                +    'sh'       : '',

              
                
                180
                +    'slim'     : '',

              
                
                181
                +    'sln'      : '',

              
                
                182
                +    'so'       : '',

              
                
                183
                +    'sql'      : '',

              
                
                184
                +    'styl'     : '',

              
                
                185
                +    'suo'      : '',

              
                
                186
                +    'swift'    : '',

              
                
                187
                +    't'        : '',

              
                
                188
                +    'tar'      : '',

              
                
                189
                +    'tex'      : 'ﭨ',

              
                
                190
                +    'tgz'      : '',

              
                
                191
                +    'toml'     : '',

              
                
                192
                +    'ts'       : '',

              
                
                193
                +    'tsx'      : '',

              
                
                194
                +    'twig'     : '',

              
                
                195
                +    'vim'      : '',

              
                
                196
                +    'vimrc'    : '',

              
                
                197
                +    'vue'      : '﵂',

              
                
                198
                +    'wav'      : '',

              
                
                199
                +    'webm'     : '',

              
                
                200
                +    'webmanifest' : '',

              
                
                201
                +    'webp'     : '',

              
                
                202
                +    'xbps'     : '',

              
                
                203
                +    'xcplayground' : '',

              
                
                204
                +    'xhtml'    : '',

              
                
                205
                +    'xls'      : '',

              
                
                206
                +    'xlsx'     : '',

              
                
                207
                +    'xml'      : '',

              
                
                208
                +    'xul'      : '',

              
                
                209
                +    'xz'       : '',

              
                
                210
                +    'yaml'     : '',

              
                
                211
                +    'yml'      : '',

              
                
                212
                +    'zip'      : '',

              
                
                213
                +    'zsh'      : '',

              
                
                214
                +}

              
                
                215
                +

              
                
                216
                +dir_node_exact_matches = {

              
                
                217
                +    '.git'      : '',

              
                
                218
                +    'Desktop'   : '',

              
                
                219
                +    'Documents' : '',

              
                
                220
                +    'Downloads' : '',

              
                
                221
                +    'Dotfiles'  : '',

              
                
                222
                +    'Dropbox'   : '',

              
                
                223
                +    'Music'     : '',

              
                
                224
                +    'Pictures'  : '',

              
                
                225
                +    'Public'    : '',

              
                
                226
                +    'Templates' : '',

              
                
                227
                +    'Videos'    : '',

              
                
                228
                +}

              
                
                229
                +

              
                
                230
                +file_node_exact_matches = {

              
                
                231
                +    '.bash_aliases'                    : '',

              
                
                232
                +    '.bash_history'                    : '',

              
                
                233
                +    '.bash_logout'                     : '',

              
                
                234
                +    '.bash_profile'                    : '',

              
                
                235
                +    '.bashprofile'                     : '',

              
                
                236
                +    '.bashrc'                          : '',

              
                
                237
                +    '.dmrc'                            : '',

              
                
                238
                +    '.DS_Store'                        : '',

              
                
                239
                +    '.fasd'                            : '',

              
                
                240
                +    '.fehbg'                           : '',

              
                
                241
                +    '.gitattributes'                   : '',

              
                
                242
                +    '.gitconfig'                       : '',

              
                
                243
                +    '.gitignore'                       : '',

              
                
                244
                +    '.gitlab-ci.yml'                   : '',

              
                
                245
                +    '.gvimrc'                          : '',

              
                
                246
                +    '.inputrc'                         : '',

              
                
                247
                +    '.jack-settings'                   : '',

              
                
                248
                +    '.mime.types'                      : '',

              
                
                249
                +    '.ncmpcpp'                         : '',

              
                
                250
                +    '.nvidia-settings-rc'              : '',

              
                
                251
                +    '.pam_environment'                 : '',

              
                
                252
                +    '.profile'                         : '',

              
                
                253
                +    '.recently-used'                   : '',

              
                
                254
                +    '.selected_editor'                 : '',

              
                
                255
                +    '.vim'                             : '',

              
                
                256
                +    '.viminfo'                         : '',

              
                
                257
                +    '.vimrc'                           : '',

              
                
                258
                +    '.Xauthority'                      : '',

              
                
                259
                +    '.Xdefaults'                       : '',

              
                
                260
                +    '.xinitrc'                         : '',

              
                
                261
                +    '.xinputrc'                        : '',

              
                
                262
                +    '.Xresources'                      : '',

              
                
                263
                +    '.zshrc'                           : '',

              
                
                264
                +    '_gvimrc'                          : '',

              
                
                265
                +    '_vimrc'                           : '',

              
                
                266
                +    'a.out'                            : '',

              
                
                267
                +    'authorized_keys'                  : '',

              
                
                268
                +    'bspwmrc'                          : '',

              
                
                269
                +    'cmakelists.txt'                   : '',

              
                
                270
                +    'config'                           : '',

              
                
                271
                +    'config.ac'                        : '',

              
                
                272
                +    'config.m4'                        : '',

              
                
                273
                +    'config.mk'                        : '',

              
                
                274
                +    'config.ru'                        : '',

              
                
                275
                +    'configure'                        : '',

              
                
                276
                +    'docker-compose.yml'               : '',

              
                
                277
                +    'dockerfile'                       : '',

              
                
                278
                +    'Dockerfile'                       : '',

              
                
                279
                +    'dropbox'                          : '',

              
                
                280
                +    'exact-match-case-sensitive-1.txt' : 'X1',

              
                
                281
                +    'exact-match-case-sensitive-2'     : 'X2',

              
                
                282
                +    'favicon.ico'                      : '',

              
                
                283
                +    'gemfile'                          : '',

              
                
                284
                +    'gruntfile.coffee'                 : '',

              
                
                285
                +    'gruntfile.js'                     : '',

              
                
                286
                +    'gruntfile.ls'                     : '',

              
                
                287
                +    'gulpfile.coffee'                  : '',

              
                
                288
                +    'gulpfile.js'                      : '',

              
                
                289
                +    'gulpfile.ls'                      : '',

              
                
                290
                +    'ini'                              : '',

              
                
                291
                +    'known_hosts'                      : '',

              
                
                292
                +    'ledger'                           : '',

              
                
                293
                +    'license'                          : '',

              
                
                294
                +    'LICENSE'                          : '',

              
                
                295
                +    'LICENSE.md'                       : '',

              
                
                296
                +    'LICENSE.txt'                      : '',

              
                
                297
                +    'Makefile'                         : '',

              
                
                298
                +    'makefile'                         : '',

              
                
                299
                +    'Makefile.ac'                      : '',

              
                
                300
                +    'Makefile.in'                      : '',

              
                
                301
                +    'mimeapps.list'                    : '',

              
                
                302
                +    'mix.lock'                         : '',

              
                
                303
                +    'node_modules'                     : '',

              
                
                304
                +    'package-lock.json'                : '',

              
                
                305
                +    'package.json'                     : '',

              
                
                306
                +    'playlists'                        : '',

              
                
                307
                +    'procfile'                         : '',

              
                
                308
                +    'Rakefile'                         : '',

              
                
                309
                +    'rakefile'                         : '',

              
                
                310
                +    'react.jsx'                        : '',

              
                
                311
                +    'README'                           : '',

              
                
                312
                +    'README.markdown'                  : '',

              
                
                313
                +    'README.md'                        : '',

              
                
                314
                +    'README.rst'                       : '',

              
                
                315
                +    'README.txt'                       : '',

              
                
                316
                +    'sxhkdrc'                          : '',

              
                
                317
                +    'user-dirs.dirs'                   : '',

              
                
                318
                +    'webpack.config.js'                : '',

              
                
                319
                +}

              
                
                320
                +

              
                
                321
                +def devicon(file):

              
                
                322
                +  if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '')

              
                
                323
                +  return file_node_exact_matches.get(os.path.basename(file.relative_path), file_node_extensions.get(file.extension, ''))

              
D config/sxhkd/sxhkdrc
···
                1
                
                -super + Return                   # Open terminal

              
                2
                
                -    kitty

              
                3
                
                -

              
                4
                
                -super + @space                   # Program launcher

              
                5
                
                -    rofi -show drun -show cobi -show-icons

              
                6
                
                -

              
                7
                
                -super + Escape                  # Exit manu

              
                8
                
                -    rofi -show power-menu -width 30 -lines 6 -modi power-menu:~/.config/rofi/rofi-power-menu

              
                9
                
                -

              
                10
                
                -super + ctrl + u                # Config editor

              
                11
                
                -    ~/.script/dmenu/dmenu-config-edit.sh

              
                12
                
                -

              
                13
                
                -super + q                       # Kill window

              
                14
                
                -    bspc node -k

              
                15
                
                -

              
                16
                
                -super + shift + r               # Restart bspwm

              
                17
                
                -    bspc wm -r

              
                18
                
                -

              
                19
                
                -super + g                       # swap the current node and the biggest window

              
                20
                
                -    bspc node -s biggest.window

              
                21
                
                -

              
                22
                
                -# Sceenshot

              
                23
                
                -Print

              
                24
                
                -    scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png

              
                25
                
                -shift + Print

              
                26
                
                -    scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png

              
                27
                
                -

              
                28
                
                -super + {t,shift + t,s,f}

              
                29
                
                -    bspc node -t {tiled,pseudo_tiled,floating,fullscreen}

              
                30
                
                -

              
                31
                
                -super + {_,shift + }{h,j,k,l}   # focus the node in the given direction

              
                32
                
                -    bspc node -{f,s} {west,south,north,east}

              
                33
                
                -

              
                34
                
                -super + {_,shift + }{1-9,0}     # focus or send to the given desktop

              
                35
                
                -    bspc {desktop -f,node -d} '^{1-9,10}'

              
                36
                
                -

              
                37
                
                -super + ctrl + {h,j,k,l}        # preselect the direction

              
                38
                
                -    bspc node -p {west,south,north,east}

              
                39
                
                -

              
                40
                
                -super + ctrl + {1-9}            # preselect the ratio

              
                41
                
                -    bspc node -o 0.{1-9}

              
                42
                
                -

              
                43
                
                -super + ctrl + space            # cancel the preselection for the focused node

              
                44
                
                -    bspc node -p cancel

              
                45
                
                -

              
                46
                
                -super + alt + {h,j,k,l}         # expand a window by moving one of its side outward

              
                47
                
                -    bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}

              
                48
                
                -

              
                49
                
                -super + alt + shift + {h,j,k,l} # contract a window by moving one of its side inward

              
                50
                
                -    bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

              
                51
                
                -

              
                52
                
                -super + {Left,Down,Up,Right}    # move a floating window

              
                53
                
                -    bspc node -v {-20 0,0 20,0 -20,20 0}

              
M scripts/change-shell.sh
···
                6
                6
                         echo "zsh       Change default shell to zsh"

              
                7
                7
                         echo "fish      Change default shell to fish"

              
                8
                8
                     ;;

              
                9
                
                -    bash)

              
                10
                
                -        chsh -s $(whitch bash)

              
                11
                
                -    ;;

              
                12
                
                -    zsh)

              
                13
                
                -        chsh -s $(whitch zsh)

              
                14
                
                -    ;;

              
                15
                
                -    fish)

              
                16
                
                -        chsh -s $(whitch fish)

              
                17
                
                -    ;;

              
                
                9
                +    bash) chsh -s $(whitch bash) ;;

              
                
                10
                +    zsh) chsh -s $(whitch zsh) ;;

              
                
                11
                +    fish) chsh -s $(whitch fish) ;;

              
                18
                12
                 esac

              
D scripts/confert-mp4-to-mp3.sh
···
                1
                
                -#/bin/sh

              
                2
                
                -ffmpeg -i $1 -b:a 192K -vn ~/$directory/$2.mp3

              
M scripts/dmenu/dmenu-config-edit.sh
···
                1
                1
                 #!/bin/sh

              
                2
                2
                 

              
                3
                3
                 declare options=("i3

              
                
                4
                +qtile

              
                4
                5
                 bspwm

              
                5
                6
                 polybar

              
                6
                7
                 picom

              
                
                8
                +dunst

              
                
                9
                +qutebrowser

              
                7
                10
                 quickmarks

              
                8
                11
                 vim

              
                9
                
                -nvim

              
                10
                
                -xresources

              
                11
                
                -dunst

              
                
                12
                +neovim

              
                
                13
                +kitty

              
                
                14
                +taskwarior

              
                
                15
                +fish

              
                12
                16
                 zsh

              
                13
                17
                 quit")

              
                14
                18
                 

              
                15
                
                -choice=$(echo -e "${options[@]}" | dmenu -i -p 'Edit config file: ')

              
                
                19
                +choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'Edit config file: ')

              
                16
                20
                 

              
                17
                21
                 case "$choice" in

              
                18
                
                -	quit)

              
                19
                
                -		echo "Program terminated." && exit 1 ;;

              
                20
                
                -	dunst)

              
                21
                
                -		choice="$HOME/.config/dunst/dunstrc" ;;

              
                22
                
                -	i3)

              
                23
                
                -		choice="$HOME/.config/i3/config" ;;

              
                24
                
                -	bspwm)

              
                25
                
                -		choice="$HOME/.config/bspwm/bspwmrc" ;;

              
                26
                
                -	picom)

              
                27
                
                -		choice="$HOME/.config/picom.conf" ;;

              
                28
                
                -	polybar)

              
                29
                
                -		choice="$HOME/.config/polybar/config" ;;

              
                30
                
                -	quickmarks)

              
                31
                
                -		choice="$HOME/.config/qutebrowser/quickmarks" ;;

              
                32
                
                -	vim)

              
                33
                
                -		choice="$HOME/.vimrc" ;;

              
                34
                
                -    nvim)

              
                35
                
                -        choice="$HOME/.config/nvim/init.vim" ;;

              
                36
                
                -    xresources)

              
                37
                
                -		choice="$HOME/.Xresources" ;;

              
                38
                
                -	zsh)

              
                39
                
                -		choice="$HOME/.zshrc" ;;

              
                40
                
                -	*)

              
                41
                
                -		exit 1 ;;

              
                
                22
                +	i3) choice="$HOME/.config/i3/config" ;;

              
                
                23
                +    qtile) choice="$HOME/.config/qtile/config.py" ;;

              
                
                24
                +    bspwm) choice="$HOME/.config/bspwm/bspwmrc" ;;

              
                
                25
                +	picom) choice="$HOME/.config/picom.conf" ;;

              
                
                26
                +	polybar) choice="$HOME/.config/polybar/config" ;;

              
                
                27
                +	quickmarks) choice="$HOME/.config/qutebrowser/quickmarks" ;;

              
                
                28
                +    qutebrowser) choice="$HOME/.config/qutebrowser/config.py" ;;

              
                
                29
                +	vim) choice="$HOME/.vimrc" ;;

              
                
                30
                +    nvim) choice="$HOME/.config/nvim/init.vim" ;;

              
                
                31
                +	dunst) choice="$HOME/.config/dunst/dunstrc" ;;

              
                
                32
                +	zsh) choice="$HOME/.zshrc" ;;

              
                
                33
                +    taskwarior) choice="$HOME/.taskrc" ;;

              
                
                34
                +    fish) choice="$HOME/.config/fish/config.fish" ;;

              
                
                35
                +    kitty) choice="$HOME/.config/kitty/kitty.conf" ;;

              
                
                36
                +	quit) echo "Program terminated." && exit 1 ;;

              
                
                37
                +	*) exit 1 ;;

              
                42
                38
                 esac

              
                43
                39
                 kitty -e nvim "$choice"

              
A scripts/dmenu/dmenu-power.sh
···
                
                1
                +#!/bin/sh

              
                
                2
                +

              
                
                3
                +declare options=("Shut Down

              
                
                4
                +Reboot

              
                
                5
                +Logout

              
                
                6
                +Suspend

              
                
                7
                +Lock Screen

              
                
                8
                +quit")

              
                
                9
                +

              
                
                10
                +choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'Power')

              
                
                11
                +

              
                
                12
                +case "$choice" in

              
                
                13
                +    "Shut Down")

              
                
                14
                +        declare opt=("Yes\nNo")

              
                
                15
                +        yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power')

              
                
                16
                +        case "$yesno" in

              
                
                17
                +            "Yes") exec systemctl poweroff ;;

              
                
                18
                +            "No") exec exit 0 ;;

              
                
                19
                +        esac

              
                
                20
                +    ;;

              
                
                21
                +    "Reboot")

              
                
                22
                +        declare opt=("Yes\nNo")

              
                
                23
                +        yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power')

              
                
                24
                +        case "$yesno" in

              
                
                25
                +            "Yes") exec systemctl reboot ;;

              
                
                26
                +            "No") exec exit 0 ;;

              
                
                27
                +        esac

              
                
                28
                +    ;;

              
                
                29
                +    "Logout")

              
                
                30
                +        declare opt=("Yes\nNo")

              
                
                31
                +        yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power')

              
                
                32
                +        case "$yesno" in

              
                
                33
                +            "Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;

              
                
                34
                +            "No") exec exit 0 ;;

              
                
                35
                +        esac

              
                
                36
                +    ;;

              
                
                37
                +    "Lock Screen") 

              
                
                38
                +        declare opt=("Yes\nNo")

              
                
                39
                +        yesno=$(echo -e "${opt[@]}" | dmenu -h 24 -p 'Power')

              
                
                40
                +        case "$yesno" in

              
                
                41
                +            "Yes") exec loginctl lock-session $XDG_SESSION_ID ;;

              
                
                42
                +            "No") exec exit 0 ;;

              
                
                43
                +        esac

              
                
                44
                +    ;;

              
                
                45
                +	quit) echo "Program terminated." && exit 1 ;;

              
                
                46
                +    *) exit 1 ;;

              
                
                47
                +esac

              
A scripts/dmenu/dmenu-sysmon.sh
···
                
                1
                +#!/bin/sh

              
                
                2
                +

              
                
                3
                +declare options=("htop

              
                
                4
                +bashtop

              
                
                5
                +gtop

              
                
                6
                +quit")

              
                
                7
                +

              
                
                8
                +choice=$(echo -e "${options[@]}" | dmenu -h 24 -p 'System monitor ')

              
                
                9
                +

              
                
                10
                +case "$choice" in

              
                
                11
                +    htop) choice="htop" ;;

              
                
                12
                +    bashtop) choice="bashtop" ;;

              
                
                13
                +    gtop) choice="gtop" ;;

              
                
                14
                +	quit) echo "Program terminated." && exit 1 ;;

              
                
                15
                +    *) exit 1 ;;

              
                
                16
                +esac

              
                
                17
                +kitty -e "$choice"

              
D scripts/gitpush.sh
···
                1
                
                -#!/bin/sh

              
                2
                
                -git add ./

              
                3
                
                -read -p "Commit message: " msg

              
                4
                
                -git commit -am "$msg"

              
                5
                
                -git push origin master

              
D scripts/sceenshot.sh
···
                1
                
                -#!/bin/sh

              
                2
                
                -fileDate=`date +%Y-%m-%d-%H-%M-%S`

              
                3
                
                -machineName=`hostname`

              
                4
                
                -fileName=".png"

              
                5
                
                -FILENAME=$fileDate"-"$machineName$fileName

              
                6
                
                -SHORT=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 7 | head -n 1)

              
                7
                
                -FILENAMESHORT=$fileDate$fileName

              
                8
                
                -

              
                9
                
                -import $FILENAMESHORT

              
M scripts/snap-remove-old-pkg.sh
···
                1
                1
                 #!/bin/sh

              
                2
                2
                 LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |

              
                3
                
                -while read snapname revision

              
                4
                
                -do

              
                
                3
                +while read snapname revision; do

              
                5
                4
                     sudo snap remove "$snapname" --revision="$revision"

              
                6
                5
                 done

              
D scripts/targz-current_folder.sh
···
                1
                
                -#!/bin/sh

              
                2
                
                -tar -czf "../${PWD##*/}.tar.gz" .

              
                3
                
                -echo -e "\033[32mThe archive was created successfully"

              
D scripts/targz-folder.sh
···
                1
                
                -#!/bin/sh

              
                2
                
                -tar -czf "$1.tar.gz" $1

              
                3
                
                -echo -e "\033[32mThe archive was created successfully"

              
M zshrc
···
                1
                1
                 export ZSH="/home/sasha/.oh-my-zsh"

              
                2
                
                -#export ZSH="/root/.oh-my-zsh"

              
                3
                
                -

              
                4
                
                -#ZSH_THEME="bureau"

              
                5
                
                -ZSH_THEME="cyan-simple"

              
                6
                
                -

              
                7
                
                -# Uncomment the following line to use case-sensitive completion.

              
                8
                
                -#CASE_SENSITIVE="true"

              
                9
                
                -

              
                10
                
                -# Case-sensitive completion must be off. _ and - will be interchangeable.

              
                11
                
                -#HYPHEN_INSENSITIVE="true"

              
                12
                
                -

              
                13
                
                -# Uncomment the following line to disable bi-weekly auto-update checks.

              
                14
                
                -#DISABLE_AUTO_UPDATE="true"

              
                15
                
                -

              
                16
                
                -# Uncomment the following line to automatically update without prompting.

              
                17
                
                -#DISABLE_UPDATE_PROMPT="true"

              
                18
                
                -

              
                19
                
                -# Uncomment the following line to change how often to auto-update (in days).

              
                20
                
                -export UPDATE_ZSH_DAYS=24

              
                21
                
                -

              
                22
                
                -# Uncomment the following line if pasting URLs and other text is messed up.

              
                23
                
                -#DISABLE_MAGIC_FUNCTIONS=true

              
                24
                
                -

              
                25
                
                -# Uncomment the following line to disable colors in ls.

              
                26
                
                -#DISABLE_LS_COLORS="true"

              
                27
                
                -

              
                28
                
                -# Uncomment the following line to disable auto-setting terminal title.

              
                29
                
                -export DISABLE_AUTO_TITLE="true"

              
                
                2
                +source ~/.env

              
                30
                3
                 

              
                31
                
                -# Uncomment the following line to enable command auto-correction.

              
                32
                
                -#ENABLE_CORRECTION="true"

              
                33
                4
                 

              
                34
                
                -# You may need to manually set your language environment

              
                35
                
                -export LANG=en_US.UTF-8

              
                36
                
                -

              
                37
                
                -# Uncomment the following line to display red dots whilst waiting for completion.

              
                38
                
                -#COMPLETION_WAITING_DOTS="true"

              
                
                5
                +### Oh my zsh ###

              
                
                6
                +ZSH_THEME="cyan-simple"          # Set theme

              
                
                7
                +#CASE_SENSITIVE="true"           # Use case-sensitive completion.

              
                
                8
                +#HYPHEN_INSENSITIVE="true"       # Case-sensitive completion must be off.

              
                
                9
                +#DISABLE_AUTO_UPDATE="true"      # Disable bi-weekly auto-update checks.

              
                
                10
                +DISABLE_UPDATE_PROMPT="true"     # Automatically update without prompting.

              
                
                11
                +export UPDATE_ZSH_DAYS=13        # Change how often to auto-update.

              
                
                12
                +#DISABLE_MAGIC_FUNCTIONS="true"  # If pasting URLs and other text is messed up.

              
                
                13
                +#DISABLE_LS_COLORS="true"        # Disable colors in ls.

              
                
                14
                +#DISABLE_AUTO_TITLE="true"       # Disable auto-setting terminal title.

              
                
                15
                +#ENABLE_CORRECTION="true"        # Enable command auto-correction.

              
                
                16
                +#COMPLETION_WAITING_DOTS="true"  # Display red dots whilst waiting for completion.

              
                
                17
                +export LANG=en_US.UTF-8          # Set locale

              
                39
                18
                 

              
                40
                
                -# Plugins

              
                41
                
                -plugins=(pip python sudo git tmux taskwarrior) 

              
                
                19
                +plugins=(pip python sudo git taskwarrior)

              
                42
                20
                 source $ZSH/oh-my-zsh.sh

              
                43
                21
                 

              
                44
                
                -# User configuration

              
                45
                
                -export EDITOR="vim"

              
                
                22
                +### Aliases ###

              
                
                23
                +alias cls="clear"

              
                
                24
                +alias :q

              
                46
                25
                 

              
                47
                
                -echo "$(tput bold)Welcome:$(tput sgr0) $(whoami)"

              
                48
                
                -source ~/.env

              
                49
                
                -source ~/.profile

              
                
                26
                +alias ..="cd .."

              
                
                27
                +alias ...="cd ../.."

              
                
                28
                +alias .3="cd ../../.."

              
                
                29
                +alias .4="cd ../../../.."

              
                
                30
                +alias .5="cd ../../../../.."

              
                
                31
                +alias .6="cd ../../../../../.."

              
                50
                32
                 

              
                51
                
                -alias cls='clear'

              
                52
                
                -alias :q="exit"

              
                53
                
                -alias py='python3'

              
                
                33
                +alias tozsh="chsh -s /bin/zsh && echo 'Now log out.'"

              
                
                34
                +alias tofish="chsh -s /bin/fish && echo 'Now log out.'"

              
                
                35
                +alias tobash="chsh -s /bin/bash && echo 'Now log out.'"