all repos

dotfiles @ 633e8ad6cd8fb3f83ace9a2061d444a996aecf5e

i use rach linux btw
10 files changed, 98 insertions(+), 68 deletions(-)
Add zathura
Author: Smirnov Alexandr ss2316544@gmail.com
Committed at: 2021-03-22 10:55:39 +0200
Parent: e916fc2
M README.md
···
                5
                5
                 

              
                6
                6
                 #### System configuration

              
                7
                7
                 - `OS` Arch

              
                8
                
                -- `WM` bspwm, openbox

              
                
                8
                +- `WM` bspwm

              
                9
                9
                 - `Terminal` kitty

              
                10
                10
                 - `Shell` zsh

              
                11
                11
                 - `Editor` nvim, vscode

              ···
                23
                23
                 

              
                24
                24
                 Install dependency:

              
                25
                25
                 ```bash

              
                26
                
                -sudo pacman -S neovim tmux git openbox tint2 bspwm sxhkd kitty picom dunst zsh rofi ranger firefox ttf-font-awesome ttf-jetbrains

              
                
                26
                +sudo pacman -S neovim tmux git dunst picom bspwm sxhkd kitty rofi zsh ranger ttf-jetbrains-mono ttf-font-awesome

              
                27
                27
                 yay -S polybar

              
                28
                28
                 ```

              
                29
                29
                 

              
                30
                
                -And install config:

              
                
                30
                +And install configs:

              
                31
                31
                 ```bash

              
                32
                
                -git clone https://github.com/Smirnov-O/dotfiles .dotfiles

              
                
                32
                +git clone --recursive https://github.com/Smirnov-O/dotfiles .dotfiles

              
                33
                33
                 rcup

              
                34
                34
                 ```

              
M bin/extract
···
                1
                1
                 #!/bin/sh

              
                2
                2
                 case "$1" in

              
                3
                
                -    *.tar.bz2)   tar xjf $1            ;;

              
                4
                
                -    *.tar.gz)    tar xzf $1            ;;

              
                5
                
                -    *.bz2)       bunzip2 $1            ;;

              
                6
                
                -    *.rar)       unrar x $1            ;;

              
                7
                
                -    *.gz)        gunzip $1             ;;

              
                8
                
                -    *.tar)       tar xf $1             ;;

              
                9
                
                -    *.tbz2)      tar xjf $1            ;;

              
                10
                
                -    *.tgz)       tar xzf $1            ;;

              
                11
                
                -    *.zip)       unzip $1              ;;

              
                12
                
                -    *.Z)         uncompress $1         ;;

              
                13
                
                -    *.7z)        7z x $1               ;;

              
                14
                
                -    *.deb)       ar x $1               ;;

              
                15
                
                -    *.tar.xz)    tar xf $1             ;;

              
                16
                
                -    *.tar.zst)   unzstd $1             ;;

              
                17
                
                -    *) echo "'$1' is not a valid file" ;;

              
                
                3
                +  *.tar.bz2) tar xjf $1    ;;

              
                
                4
                +  *.tar.gz)  tar xzf $1    ;;

              
                
                5
                +  *.bz2)     bunzip2 $1    ;;

              
                
                6
                +  *.rar)     unrar x $1    ;;

              
                
                7
                +  *.gz)      gunzip $1     ;;

              
                
                8
                +  *.tar)     tar xf $1     ;;

              
                
                9
                +  *.tbz2)    tar xjf $1    ;;

              
                
                10
                +  *.tgz)     tar xzf $1    ;;

              
                
                11
                +  *.zip)     unzip $1      ;;

              
                
                12
                +  *.Z)       uncompress $1 ;;

              
                
                13
                +  *.7z)      7z x $1       ;;

              
                
                14
                +  *.deb)     ar x $1       ;;

              
                
                15
                +  *.tar.xz)  tar xf $1     ;;

              
                
                16
                +  *.tar.zst) unzstd $1     ;;

              
                
                17
                +  *) echo "'$1' is not a valid file" ;;

              
                18
                18
                 esac

              
M bin/giti
···
                3
                3
                     echo $1 >> .gitignore

              
                4
                4
                     echo "[.gitignore] Successful add '$1'."

              
                5
                5
                 }

              
                
                6
                +

              
                6
                7
                 function del() {

              
                7
                8
                     if [ -f '.gitignore' ]; then

              
                8
                9
                         if [ "$(cat .gitignore|wc -l)" = "1" ]

              ···
                13
                14
                     fi

              
                14
                15
                     echo "[.gitignore] Successful del '$1'."

              
                15
                16
                 }

              
                
                17
                +

              
                16
                18
                 function edit() {

              
                17
                19
                     sed -in "s|$1|$2|g" .gitignore

              
                18
                20
                 }

              
                
                21
                +

              
                19
                22
                 function show() {

              
                20
                23
                     if [ -f '.gitignore' ]; then

              
                21
                24
                         if [ -f '/usr/bin/bat' ]

              ···
                27
                30
                 }

              
                28
                31
                 

              
                29
                32
                 case "$1" in

              
                30
                
                -    add|a)  shift; add  "$@" ;;

              
                31
                
                -    del|d)  shift; del  "$@" ;;

              
                32
                
                -    mv)     shift; edit "$@" ;;

              
                33
                
                -    show)   shift; show      ;;

              
                34
                
                -    help)   echo "add|a   - [file name] add to ignore."

              
                35
                
                -            echo "del|d   - [file name] delete from ignore."

              
                36
                
                -            echo "mv      - [old] [new] file name for rename."

              
                37
                
                -            echo "show    - show ignore file."

              
                38
                
                -    ;;

              
                39
                
                -    *) echo "Command is not valid. Type 'giti help' for help." ;;

              
                
                33
                +  add|a)  shift; add  "$@" ;;

              
                
                34
                +  del|d)  shift; del  "$@" ;;

              
                
                35
                +  mv)     shift; edit "$@" ;;

              
                
                36
                +  show)   shift; show      ;;

              
                
                37
                +  help) echo "add|a - [file name] add to ignore."

              
                
                38
                +        echo "del|d - [file name] delete from ignore."

              
                
                39
                +        echo "mv    - [old] [new] file name for rename."

              
                
                40
                +        echo "show  - show ignore file." ;;

              
                
                41
                +  *) echo "Command is not valid. Type 'giti help' for help." ;;

              
                40
                42
                 esac

              
M config/bspwm/bspwmrc
···
                1
                1
                 #!/bin/sh

              
                2
                
                -###== Function

              
                3
                
                -R() {

              
                
                2
                +###== Functions

              
                
                3
                +A() {

              
                4
                4
                   if ! pgrep $1

              
                5
                5
                      then $@& fi

              
                6
                6
                 }

              
                
                7
                +C() {

              
                
                8
                +    bspc config $@

              
                
                9
                +}

              
                
                10
                +R() {

              
                
                11
                +    bspc rule -a $@

              
                
                12
                +}

              
                7
                13
                 

              
                8
                14
                 ###== Autostart

              
                9
                
                -R feh --randomize --bg-scale ~/Pictures/wallp &

              
                10
                
                -R sxhkd -c ~/.config/bspwm/sxhkd &

              
                11
                
                -R lxsession &

              
                12
                
                -R picom -b &

              
                
                15
                +A feh --randomize --bg-scale ~/Pictures/wallp &

              
                
                16
                +A sxhkd -c ~/.config/bspwm/sxhkd &

              
                
                17
                +A picom -b &

              
                13
                18
                 ~/.config/bspwm/polybar/bar.sh &

              
                14
                19
                 

              
                15
                20
                 ###== BSPWM

              ···
                18
                23
                 bspc monitor -d 1 2 3 4 5 6 7 8 9

              
                19
                24
                 

              
                20
                25
                 # General

              
                21
                
                -bspc config border_width           2

              
                22
                
                -bspc config window_gap             4

              
                23
                
                -bspc config split_ratio            0.50

              
                24
                
                -bspc config borderless_monocle     true

              
                25
                
                -bspc config gapless_monocle        true

              
                26
                
                -bspc config single_monocle         true

              
                27
                
                -bspc config focus_follows_pointer  true

              
                
                26
                +C border_width           2

              
                
                27
                +C window_gap             4

              
                
                28
                +C split_ratio            0.50

              
                
                29
                +C borderless_monocle     true

              
                
                30
                +C gapless_monocle        true

              
                
                31
                +C single_monocle         true

              
                
                32
                +C focus_follows_pointer  true

              
                28
                33
                 

              
                29
                34
                 # Colors

              
                30
                
                -bspc config normal_border_color   "#262A2B"

              
                31
                
                -bspc config active_border_color   "#1F2324"

              
                32
                
                -bspc config focused_border_color  "#008DCD"

              
                33
                
                -bspc config presel_feedback_color "#51AFEF"

              
                34
                
                -bspc config urgent_border_color   "#FF6C6B"

              
                
                35
                +C normal_border_color   "#262A2B"

              
                
                36
                +C active_border_color   "#1F2324"

              
                
                37
                +C focused_border_color  "#008DCD"

              
                
                38
                +C presel_feedback_color "#51AFEF"

              
                
                39
                +C urgent_border_color   "#FF6C6B"

              
                35
                40
                 

              
                36
                41
                 ###== BSPWM Rules

              
                37
                
                -bspc rule -a kitty                desktop='^1' focus=on  follow=on

              
                38
                
                -bspc rule -a Google-chrome        desktop='^2' focus=on  follow=on

              
                39
                
                -bspc rule -a LibreWolf            desktop='^2' focus=on  follow=on

              
                40
                
                -bspc rule -a Code                 desktop='^3' focus=on  follow=on

              
                41
                
                -bspc rule -a '*:nvim'             desktop='^3' focus=on  follow=off

              
                42
                
                -bspc rule -a Todoist              desktop='^4' focus=on  follow=off

              
                43
                
                -bspc rule -a Joplin               desktop='^4' focus=on  follow=on

              
                44
                
                -bspc rule -a Simplenote           desktop='^4' focus=on  follow=on

              
                45
                
                -bspc rule -a '*:ranger'           desktop='^5' focus=on  follow=off

              
                46
                
                -bspc rule -a discord              desktop='^6' focus=off follow=off

              
                47
                
                -bspc rule -a telegram-desktop     desktop='^6' focus=off follow=on

              
                48
                
                -bspc rule -a KeePassXC            desktop='^7' focus=on  follow=off

              
                
                42
                +R kitty            desktop='^1' focus=on  follow=on

              
                
                43
                +R Google-chrome    desktop='^2' focus=on  follow=on

              
                
                44
                +R LibreWolf        desktop='^2' focus=on  follow=on

              
                
                45
                +R Code             desktop='^3' focus=on  follow=on

              
                
                46
                +R '*:nvim'         desktop='^3' focus=on  follow=off

              
                
                47
                +R Todoist          desktop='^4' focus=on  follow=off

              
                
                48
                +R Joplin           desktop='^4' focus=on  follow=on

              
                
                49
                +R Simplenote       desktop='^4' focus=on  follow=on

              
                
                50
                +R '*:ranger'       desktop='^5' focus=on  follow=off

              
                
                51
                +R discord          desktop='^6' focus=off follow=off

              
                
                52
                +R TelegramDesktop  desktop='^6' focus=off follow=on

              
                
                53
                +R KeePassXC        desktop='^7' focus=on  follow=off

              
                
                54
                +R Zathura          desktop='^9' focus=on  follow=on  state=tiled

              
M config/bspwm/polybar/polybar
···
                3
                3
                 [settings]

              
                4
                4
                 enable-ipc = true

              
                5
                5
                 format-padding = 1

              
                6
                
                -screenchange-reload = true

              
                7
                
                -pseudo-transparency = true

              
                
                6
                +#screenchange-reload = true

              
                
                7
                +#pseudo-transparency = true

              
                8
                8
                 

              
                9
                9
                 [colors]

              
                10
                10
                 background = #262A2B

              ···
                34
                34
                 background = ${colors.background}

              
                35
                35
                 foreground = ${colors.foreground}

              
                36
                36
                 wm-restack = bspwm

              
                37
                
                -override-redirect = true

              
                38
                37
                 font-0 = Iosevka Nerd Font:style=Medium:size=8;3

              
                39
                38
                 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5

              
                40
                39
                 modules-left = bspwm

              
M config/bspwm/sxhkd
···
                28
                28
                     bspc node -c

              
                29
                29
                 

              
                30
                30
                 super + control + r

              
                31
                
                -    bspc wm -r; sxhkd -c ~/.config/bspwm/sxhkd

              
                
                31
                +    bspc wm -r && pkill sxhkd && sxhkd -c ~/.config/bspwm/sxhkd

              
                32
                32
                 

              
                33
                33
                 ### == BSPWM windows

              
                34
                34
                 ## Resize window

              
M config/nvim/init.vim
···
                66
                66
                 set visualbell t_vb=

              
                67
                67
                 

              
                68
                68
                 "== Settings for specific files

              
                69
                
                -autocmd FileType python,go,json setlocal et sw=4 ts=4

              
                70
                
                -autocmd FileType css,javascript,javascriptreact,yaml setlocal noet sw=2 ts=2

              
                
                69
                +autocmd FileType python,json setlocal ex sw=4 ts=4

              
                
                70
                +autocmd FileType go setlocal noex sw=4 ts=4

              
                
                71
                +autocmd FileType javascript,javascriptreact setlocal noet sw=2 ts=2

              
                
                72
                +autocmd FileType css,yaml setlocal ex sw=4 ts=4

              
                71
                73
                 

              
                72
                74
                 "== Aliases

              
                73
                75
                 command! WQ :wq

              ···
                109
                111
                 

              
                110
                112
                 " Tab

              
                111
                113
                 nnoremap tn :tabnew<CR>

              
                112
                
                -nnoremap tc :tabclose<CR>

              
                113
                114
                 noremap <A-1> :tabn 1<CR>

              
                114
                115
                 noremap <A-2> :tabn 2<CR>

              
                115
                116
                 noremap <A-3> :tabn 3<CR>

              
M config/ranger/rc.conf
···
                1
                1
                 #== Appearance

              
                2
                2
                 set colorscheme solarized

              
                3
                
                -set confirm_on_delete always

              
                
                3
                +set confirm_on_delete multiple

              
                4
                4
                 set automatically_count_files false

              
                5
                5
                 

              
                6
                6
                 #== General

              ···
                31
                31
                 map dT    trash

              
                32
                32
                 map <c-k> tab_shift 1

              
                33
                33
                 map <c-j> tab_shift -1

              
                
                34
                +map sa shell zip -r archive.zip %s

              
                
                35
                +map ss shell tar -czvf archive.tar.gz %s

              
                
                36
                +map sd shell 7z a archive.7z %s

              
                
                37
                +map se shell extract %s

              
A config/zathura/zathurarc
···
                
                1
                +set font                     "JetBrains Mono 10"

              
                
                2
                +set default-fg               "#DFDFDF"

              
                
                3
                +set default-bg               "#262A2B"

              
                
                4
                +

              
                
                5
                +set statusbar-fg             "#CED4DA"

              
                
                6
                +set statusbar-bg             "#1F2324"

              
                
                7
                +set statusbar-h-padding      10

              
                
                8
                +set statusbar-v-padding      10

              
                
                9
                +

              
                
                10
                +set inputbar-fg              "#FFFFFF"

              
                
                11
                +set inputbar-bg              "#1F2324"

              
                
                12
                +

              
                
                13
                +set completion-bg            "#262A2B"

              
                
                14
                +set completion-fg            "#FFFFFF"

              
                
                15
                +set completion-highlight-bg  "#262A2B"

              
                
                16
                +set completion-highlight-fg  "#51AFEF"

              
                
                17
                +set completion-group-bg      "#262A2B"

              
                
                18
                +set completion-group-fg      "#51AFEF"

              
M zshrc
···
                1
                
                -export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/.local/bin:$PATH"

              
                
                1
                +export PATH="$HOME/.yarn/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/bin:$PATH"

              
                2
                2
                 export EDITOR="nvim"

              
                3
                3
                 

              
                4
                4
                 ### Oh my zsh