all repos

dotfiles @ ae9fa70

i use rach linux btw
7 files changed, 12 insertions(+), 28 deletions(-)
Simple update
Author: Smirnov Alexandr ss2316544@gmail.com
Committed at: 2021-03-20 11:30:02 +0200
Parent: c4d5475
M bin/catfetch
···
        1
        1
         #!/bin/sh

      
        2
        
        -

      
        3
        
        -# Kernel version

      
        4
        2
         kernel=$(cat /proc/sys/kernel/osrelease|cut -d '-' -f1)

      
        5
        
        -

      
        6
        
        -# Window manager name

      
        7
        3
         [ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && {

      
        8
        4
             wmname="$(xprop -id $(xprop -root -notype\

      
        9
        
        -        | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t\

      
        10
        
        -        | grep "WM_NAME"\

      
        11
        
        -        | cut -f2 -d \")"

      
        
        5
        +    | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t\

      
        
        6
        +    | grep "WM_NAME"\

      
        
        7
        +    | cut -f2 -d \")"

      
        12
        8
         }

      
        13
        
        -

      
        14
        
        -# Shell

      
        15
        9
         shell=$(basename $SHELL)

      
        16
        
        -

      
        17
        
        -# Packages

      
        18
        
        -manager=$(which apt pacman yay apk xbps-query 2>/dev/null)

      
        
        10
        +manager=$(which apt pacman yay 2>/dev/null)

      
        19
        11
         manager=${manager##*/}

      
        20
        12
         case "$manager" in

      
        21
        13
             apt) packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)";;

      
        22
        14
             yay) packages="$(yay -Q | wc -l)";;

      
        23
        15
             pacman) packages="$(pacman -Q | wc -l)";;

      
        24
        
        -esac 

      
        25
        
        -

      
        26
        
        -

      
        27
        
        -# Colors ####

      
        
        16
        +esac

      
        28
        17
         bold=$(tput bold)

      
        29
        18
         reset="\e[0m"

      
        30
        19
         blue="\e[36m"

      
        31
        20
         

      
        32
        
        -# Fetch ####

      
        33
        21
         echo -e "            ${blue}${bold}    WM ${reset}${wmname}"

      
        34
        22
         echo -e "   /\_/\    ${blue}${bold} SHELL ${reset}${shell}"

      
        35
        23
         echo -e "  (=^.^=)   ${blue}${bold}KERNEL ${reset}${kernel}"

      
M bin/kbhl
···
        3
        3
             "on"|"-on"|"--on"|1) xset led on ;;

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

      
        5
        5
         esac

      
        6
        
        -

      
M config/bspwm/bspwmrc
···
        39
        39
         bspc rule -a LibreWolf            desktop='^2' focus=on  follow=on

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

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

      
        42
        
        -bspc rule -a '*:ranger'           desktop='^4' focus=on  follow=off

      
        43
        
        -bspc rule -a Todoist              desktop='^5' focus=on  follow=off

      
        44
        
        -bspc rule -a Joplin               desktop='^5' focus=on  follow=on

      
        45
        
        -bspc rule -a Simplenote           desktop='^5' focus=on  follow=on

      
        
        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
        46
         bspc rule -a discord              desktop='^6' focus=off follow=off

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

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

      
M config/bspwm/sxhkd
···
        6
        6
             {kitty,                       \

      
        7
        7
              rofi -show drun -theme ntenV2}

      
        8
        8
         

      
        9
        
        -super + shift + {w, e, f, c, a, q}

      
        
        9
        +super + shift + {w, e, f, c, t, q}

      
        10
        10
             {google-chrome-stable,           \

      
        11
        11
              kitty --class nvim   -e nvim,   \

      
        12
        12
              kitty --class ranger -e ranger, \

      
M config/nvim/init.vim
···
        70
        70
         autocmd FileType css,javascript,javascriptreact,yaml setlocal noet sw=2 ts=2

      
        71
        71
         

      
        72
        72
         "== Aliases

      
        73
        
        -command! W  :w

      
        74
        
        -command! Q  :q

      
        75
        73
         command! WQ :wq

      
        76
        74
         command! Wq :wq

      
        77
        75
         command! Wiki :e ~/doc/index.md

      
M vscode/settings.json
···
        28
        28
           "vim.useSystemClipboard": true,

      
        29
        29
           "vim.normalModeKeyBindings": [{"before": ["f"], "after" : ["leader","leader","s"]}],

      
        30
        30
         

      
        31
        
        -  "cSpell.userWords": ["getenv"],

      
        32
        
        -

      
        
        31
        +  "cSpell.userWords": ["getenv", "popen"],

      
        33
        32
           "emmet.includeLanguages": {

      
        34
        33
             "javascript": "javascriptreact"

      
        35
        34
           },

      
M zshrc
···
        5
        5
         export OMH="$HOME/.oh-my-zsh"

      
        6
        6
         ZSH_THEME="simple"

      
        7
        7
         DISABLE_AUTO_TITLE="true"

      
        8
        
        -plugins=(yarn nvm)

      
        
        8
        +plugins=(yarn nvm golang)

      
        9
        9
         source $OMH/oh-my-zsh.sh

      
        10
        10
         

      
        11
        11
         ### Aliases