all repos

dotfiles @ 4f7f44d7f434f0702b2dc8a2108f9b3139dbb56e

i use rach linux btw
10 files changed, 91 insertions(+), 42 deletions(-)
Update kitty bg color, nvim config. Add bgcolor function in zshrc for set specific bg color, hot keys for archiving in vifm
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-12-13 20:52:29 +0200
Parent: f5a07cf
A bin/arch_upd
···
                
                1
                +#!/bin/sh

              
                
                2
                +sudo pacman -Syyuu --noconfirm

              
                
                3
                +yay -Sua --noconfirm

              
                
                4
                +sudo pacman -Rs $(pacman -Qdtq) --noconfirm

              
A bin/extract
···
                
                1
                +#!/bin/sh

              
                
                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" ;;

              
                
                18
                +esac

              
A bin/giti
···
                
                1
                +#!/bin/sh

              
                
                2
                +add() {

              
                
                3
                +    local file="$1"

              
                
                4
                +    echo $file >> .gitignore

              
                
                5
                +}

              
                
                6
                +del() {

              
                
                7
                +    local file="$1"

              
                
                8
                +    sed -i "/$file/d" .gitignore

              
                
                9
                +}

              
                
                10
                +edit() {

              
                
                11
                +    local oldname="$1"

              
                
                12
                +    local newanme="$2"

              
                
                13
                +    sed -in "s|$oldname|$newanme|g" .gitignore

              
                
                14
                +}

              
                
                15
                +show() {

              
                
                16
                +    if [ -f '/usr/bin/bat' ]

              
                
                17
                +    then

              
                
                18
                +        bat .gitignore

              
                
                19
                +    else

              
                
                20
                +        cat .gitignore

              
                
                21
                +    fi

              
                
                22
                +}

              
                
                23
                +

              
                
                24
                +case "$1" in

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

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

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

              
                
                28
                +    show|s) shift; show      ;;

              
                
                29
                +    help) echo "add/a - filename add to ignore"

              
                
                30
                +          echo "del/d - filename del from ignore"

              
                
                31
                +          echo "mv    - oldname newname chage file name"

              
                
                32
                +          echo "show  - show ignore file"

              
                
                33
                +    ;;

              
                
                34
                +    *) echo "Command is not valid"

              
                
                35
                +esac

              
A bin/kbhl
···
                
                1
                +#!/bin/sh

              
                
                2
                +case "$1" in

              
                
                3
                +    "on"|"-on"|"--on"|1) xset led on     ;;

              
                
                4
                +    "off"|"-off"|"--off"|0) xset led off ;;

              
                
                5
                +esac

              
                
                6
                +

              
M config/kitty/kitty.conf
···
                86
                86
                 

              
                87
                87
                 # Theming

              
                88
                88
                 foreground #dfdfdf

              
                89
                
                -background_opacity 0.85

              
                90
                
                -#background_opacity 1

              
                
                89
                +#background_opacity 0.85

              
                
                90
                +background_opacity 1

              
                91
                91
                 background_image none

              
                92
                92
                 background_image_layout tiled

              
                93
                93
                 background_image_linear no

              ···
                96
                96
                 dim_opacity 0.75

              
                97
                97
                 selection_foreground #edebd7

              
                98
                98
                 selection_background #073642

              
                99
                
                -background #262a3b

              
                
                99
                +background #262a2b

              
                100
                100
                 foreground #ffffff

              
                101
                101
                 cursorColor #d2dae2

              
                102
                102
                 selection_background #262a3b

              
M config/nvim/init.vim
···
                28
                28
                     Plug 'ap/vim-css-color'

              
                29
                29
                 call plug#end()

              
                30
                30
                 

              
                
                31
                +set termguicolors

              
                
                32
                +set background=dark

              
                
                33
                +colorscheme nten16

              
                
                34
                +

              
                31
                35
                 set number

              
                32
                36
                 set relativenumber

              
                33
                37
                 

              ···
                68
                72
                 set smartindent

              
                69
                73
                 

              
                70
                74
                 set visualbell t_vb=

              
                71
                
                -

              
                72
                
                -set termguicolors

              
                73
                
                -set background=dark

              
                74
                
                -colorscheme nten16

              
                75
                
                -

              
                76
                75
                 

              
                77
                76
                 " == Plugins configure

              
                78
                77
                 " Lightline

              
M config/qtile/config.py
···
                237
                237
                         highlight_method="block",

              
                238
                238
                         this_current_screen_border=color[2],

              
                239
                239
                         this_screen_border=color[3],

              
                240
                
                -        foreground=color[0],

              
                241
                240
                     ),

              
                242
                
                -    widget.Prompt(foreground=color[0]),

              
                243
                
                -    widget.WindowName(foreground=color[0]),

              
                
                241
                +    widget.Prompt(),

              
                
                242
                +    widget.WindowName(),

              
                244
                243
                     kblayout.KBLayout(

              
                245
                244
                         foreground=color[5],

              
                246
                245
                         update_interval=0,

              ···
                300
                299
                         {"wname":   "pinentry"},

              
                301
                300
                         {"wmclass": "ssh-askpass"},

              
                302
                301
                 ])

              
                303
                
                -auto_fullscreen = True

              
                
                302
                +auto_fullscreen = False

              
                304
                303
                 focus_on_window_activation = "smart"

              
                305
                304
                 wmname = "LG3D"

              
M config/qtile/screen.png

Not showing binary file.

M config/vifm/vifmrc
···
                20
                20
                 set vifminfo=dhistory,chistory,state,shistory,phistory,fhistory,dirstack,registers,bookmarks,bmarks

              
                21
                21
                 

              
                22
                22
                 " === commands

              
                23
                
                -

              
                24
                23
                 command! zip zip -r %f.zip %f

              
                25
                24
                 command! targz tar -czvf %f.tar.gz %f

              
                26
                
                -command! vgrep nvim "+grep %a"

              
                27
                25
                 set rulerformat=

              
                28
                26
                 

              
                
                27
                +" === Key maps

              
                
                28
                +nmap q ZQ

              
                
                29
                +nnoremap gg ggj

              
                
                30
                +nnoremap ! :shell<cr>

              
                
                31
                +nnoremap w :view<cr>

              
                
                32
                +nnoremap S :sort<cr>

              
                
                33
                +nnoremap se :!$HOME/bin/extract %f &<cr>

              
                
                34
                +nnoremap sa :!zip -r %f.zip %f

              
                
                35
                +nnoremap ss :!tar -czvf %f.tar.gz @f

              
                
                36
                +

              
                29
                37
                 " === files

              
                30
                
                -

              
                31
                38
                 filetype *.csv,*.xlsx libreoffice %c %i

              
                32
                39
                 fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - /  /g" | cut -c -%pw

              
                33
                40
                 

              ···
                38
                45
                 fileviewer <text/*> env -uCOLORTERM bat --color always --wrap never --pager never %c -p

              
                39
                46
                 

              
                40
                47
                 filextype *.pdf zathura %c %i &

              
                41
                
                -fileviewer *.pdf

              
                42
                
                -    \ vifmimg pdf %px %py %pw %ph %c

              
                43
                
                -    \ %pc

              
                44
                
                -    \ vifmimg clear

              
                45
                
                -

              
                46
                48
                 filetype <audio/*> mocp %c %i &

              
                47
                
                -fileviewer <audio/*>

              
                48
                
                -    \ vifmimg audio %px %py %pw %ph %c

              
                49
                
                -    \ %pc

              
                50
                
                -    \ vifmimg clear

              
                51
                
                -

              
                52
                49
                 filetype <video/*> mpv %c %i &

              
                53
                
                -fileviewer <video/*>

              
                54
                
                -    \ vifmimg video %px %py %pw %ph %c

              
                55
                
                -    \ %pc

              
                56
                
                -    \ vifmimg clear

              
                57
                50
                 

              
                58
                51
                 filextype <image/*> sxiv %c %i &

              
                59
                52
                 fileviewer <image/*>

              ···
                75
                68
                 filetype * xdg-open %c

              
                76
                69
                 fileviewer * file -b %c

              
                77
                70
                 

              
                78
                
                -" === Key maps

              
                79
                
                -nmap q ZQ

              
                80
                
                -nnoremap gg ggj

              
                81
                
                -nnoremap ! :shell<cr>

              
                82
                
                -nnoremap w :view<cr>

              
                83
                
                -nnoremap S :sort<cr>

              
                84
                
                -nnoremap a cw

              
                85
                
                -

              
                86
                71
                 " go keys 

              
                87
                72
                 nnoremap gh :cd ~<cr>

              
                88
                73
                 nnoremap gc :cd ~/Code<cr>

              ···
                91
                76
                 nnoremap gm :cd ~/.dotfiles<cr>

              
                92
                77
                 nnoremap gn :cd ~/bin<cr>

              
                93
                78
                 nnoremap gz :cd ~/.script<cr>

              
                94
                
                -

              
                95
                
                -" extract

              
                96
                
                -nnoremap se :!$HOME/bin/extract %f &<cr>

              
                97
                79
                 

              
                98
                80
                 " === file icons 

              
                99
                81
                 set classify='  :dir:/,  :exe:,  :reg:,  :link:'

              
M zshrc
···
                1
                1
                 export ZSH="$HOME/.oh-my-zsh"

              
                2
                2
                 export PATH="$HOME/bin:$PATH"

              
                3
                
                -source ~/.env

              
                4
                
                -source ~/.profile

              
                
                3
                +#source ~/.env

              
                
                4
                +#source ~/.profile

              
                5
                5
                 

              
                6
                6
                 

              
                7
                7
                 ### Oh my zsh ###

              ···
                25
                25
                 ### Variables ###

              
                26
                26
                 export EDITOR="nvim"

              
                27
                27
                 export VISUAL="nvim"

              
                
                28
                +

              
                
                29
                +### Function ###

              
                
                30
                +function bgcolor {

              
                
                31
                +    convert -size 1x1 xc:$1 /tmp/bgc.png

              
                
                32
                +    feh --bg-tile /tmp/bgc.png

              
                
                33
                +}

              
                28
                34
                 

              
                29
                35
                 ### Aliases ###

              
                30
                36
                 alias cls="clear"