all repos

dotfiles @ e3c8613

my dotfiles
14 files changed, 174 insertions(+), 411 deletions(-)
Update i3, polybar config, del spectrwm config, add catfatch script
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-12-29 16:49:08 +0200
Parent: e8de9a1
A bin/catfetch

@@ -0,0 +1,47 @@

+#!/bin/sh + +# Kernel version +kernel=$(cat /proc/sys/kernel/osrelease|cut -d '-' -f1) + +# Window manager name +[ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && { + wmname="$(xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \")" +} + +# Shell +shell=$(basename $SHELL) + +# Pakages +manager=$(which dnf apt pacman apk yay xbps-query 2>/dev/null) +manager=${manager##*/} +case "$manager" in + apt) packages="$(dpkg-query -f '${binary:Package}\n' -W | wc -l)";; + pacman) packages="$(pacman -Q | wc -l)";; + apk) packages="$(apk list --installed | wc -l)";; + yay) packages="$(yay -Q | wc -l)";; + xbps-query) packages="$(xbps-query -l | wc -l)";; +esac + + + +# Colors #### +bold="\e[1m" +reset="\e[0m" + +blue="\e[36m" +grey="\e[90m" +black='\e[30m' +red='\e[31m' +green='\e[32m' +yellow='\e[33m' +blue='\e[34m' +magenta='\e[35m' +cyan='\e[36m' +white='\e[37m' + +echo -e " ${blue}${bold} WM ${reset}${wmname}" +echo -e " /\_/\ ${blue}${bold} SHELL ${reset}${shell}" +echo -e " (=^.^=) ${blue}${bold}KERNEL ${reset}${kernel}" +echo -e " (\") (\")_/ ${blue}${bold} PKG ${reset}${packages}" +echo -e " ${black}卑${red}卑${green}卑${yellow}卑${blue}卑${magenta}卑${cyan}卑${reset} " +exit 0
A bin/ipp

@@ -0,0 +1,5 @@

+#!/bin/sh +if [ -f '/usr/bin/curl' ] +then curl ipinfo.io/ip +else wget -qO- ipinfo.io/ip +fi
D bin/local-ip

@@ -1,2 +0,0 @@

-#!/bin/sh -ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | grep -v '172.[0-9][0-9].0.1'
D bin/public-ip

@@ -1,7 +0,0 @@

-#!/bin/sh -if [ -f '/usr/bin/curl' ] -then - curl ipinfo.io/ip -else - wget -qO- ipinfo.io/ip -fi
M config/alacritty.yml

@@ -37,8 +37,8 @@ #dynamic_title: true

colors: primary: - background: '0x262A2D' - foreground: '0xDFDFDF' + background: '0x262A2B' + foreground: '0xFFFFFF' cursor: text: '0x7D7D7D' cursor: '0xDFDFDF'

@@ -46,23 +46,23 @@ selection:

text: '0xEDEBD7' background: '0x262A3B' normal: - black: '0x32344a' - red: '0xf7768e' - green: '0x9ece6a' - yellow: '0xe0af68' - blue: '0x7aa2f7' - magenta: '0xad8ee6' - cyan: '0x449dab' - white: '0x9699a8' + black: '0x181818' + red: '0xab4642' + green: '0xa1b56c' + yellow: '0xf7ca88' + blue: '0x7cafc2' + magenta: '0xba8baf' + cyan: '0x86c1b9' + white: '0xd8d8d8' bright: - black: '0x444b6a' - red: '0xff7a93' - green: '0xb9f27c' - yellow: '0xff9e64' - blue: '0x7da6ff' - magenta: '0xbb9af7' - cyan: '0x0db9d7' - white: '0xacb0d0' + black: '0x585858' + red: '0xab4642' + green: '0xa1b56c' + yellow: '0xf7ca88' + blue: '0x7cafc2' + magenta: '0xba8baf' + cyan: '0x86c1b9' + white: '0xf8f8f8' key_bindings: - { key: V, mods: Control|Shift, action: Paste }
M config/i3/config

@@ -16,89 +16,79 @@ # Borders

hide_edge_borders smart ############ Variables ########### -set $terminal kitty +set $terminal alacritty set $browser firefox -set $filemanager pcmanfm +set $filemanager thunar ############ Autostart ############ -exec --no-startup-id exec picom -b -exec --no-startup-id exec nmcli radio wifi on && nmcli device wifi connect $(echo $WIFINAME) password $(echo $WIFIPASS) name net -#exec --no-startup-id exec redshift-gtk +exec --no-startup-id exec picom --experimental-backends -b exec --no-startup-id exec nitrogen --restore exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" exec --no-startup-id exec org.telegram.desktop +exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec --no-startup-id xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l" +exec_always --no-startup-id $HOME/.config/i3/bar.sh #exec --no-startup-id exec conky +#exec --no-startup-id exec redshift-gtk #exec --no-startup-id exec discord -exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 -exec_always --no-startup-id $HOME/.config/i3/bar.sh -############ Key bindings ######### +############## WM keys ############ -### I3 -# Kill focus window +# Kill window bindsym $mod+q kill + # Restart i3wm bindsym $mod+Control+r restart -# Focus the parent container -bindsym $mod+a focus parent -# Floating window -bindsym $mod+Shift+space floating toggle + +# Floating layout +bindsym $mod+Tab floating toggle + +# Tab layout +bindsym $mod+w layout tabbed + +# Split layout +bindsym $mod+e layout toggle split + # Splits bindsym $mod+b split h bindsym $mod+v split v -# Change container layout(stacked, tabbed, toggle split) -bindsym $mod+s layout stacking -bindsym $mod+w layout tabbed -bindsym $mod+e layout toggle split + # Scratchpad bindsym $mod+Shift+grave move scratchpad bindsym $mod+grave scratchpad show, floating disable -### Launchers +############## User key ########### + +# Menus bindsym $mod+Shift+apostrophe exec "rofi -show run" bindsym $mod+Shift+Return exec "rofi -show drun" bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh -h 24 bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh -h 24 bindsym $mod+Control+i exec passmenu -h 24 -p Passwords -### Applications +# Apps bindsym $mod+Return exec $terminal bindsym $mod+F2 exec $browser -bindsym $mod+F4 exec $filemanager -bindsym --release $mod+Shift+Escape exec xkill -bindsym $mod+$alt+t exec $terminal nvim .todo - +bindsym $mod+f exec $filemanager -### Sceenshot +# Sceenshot bindsym --release Print exec "scrot -s /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png" bindsym --release Shift+Print exec "scrot /home/${USER}/$(date +%Y-%m-%d-%H-%M-%S).png" +# Lockscreen +bindsym $mod+Shift+z exec betterlockscreen --off 180 -t \"Computer is lockerd\" -l -### Volume -bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +5%" -bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -5%" +# Volume +bindsym $mod+plus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo +2%" +bindsym $mod+minus exec "pactl set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo -2%" bindsym $mod+Shift+minus exec "pactl set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo toggle" ######### Window preferens ######## -#assign [class="Kitty"] $ws1 -#assign [class="(?i)chromium|firefox|qutebrowser"] $ws2 -#assign [class="(?i)subl|code|emacs"] $ws3 -#assign [class="(?i)thunar"] $ws4 -#assign [title="Notable|Simplenote"] $ws5 +assign [class="(?i)firefox|qutebrowser"] $ws2 assign [class="(?i)telegram|discord|viber"] $ws6 -assign [title="KeePassXC"] $ws7 -#for_window [title="Ranger_FM"] move to workspace $ws4 -#for_window [class="Spotify"] move to workspace $ws9 -for_window [class="(?i)mousepad"] floating enable -for_window [class="(?i)lxappearance|qt5ct"] floating enable -for_window [class="(?i)nitrogen"] floating enable #focus_on_window_activation focus -############## Gaps ############### -#gaps inner 4 -#smart_gaps on - -##### Change containet focus ###### +########## Change focus ########## bindsym $mod+h focus left bindsym $mod+Left focus left bindsym $mod+j focus down

@@ -108,7 +98,7 @@ bindsym $mod+Up focus up

bindsym $mod+l focus right bindsym $mod+Right focus right -##### Move focused container ###### +########## Move window ############ bindsym $mod+Shift+h move left bindsym $mod+Shift+Left move left bindsym $mod+Shift+j move down

@@ -118,7 +108,7 @@ bindsym $mod+Shift+Up move up

bindsym $mod+Shift+l move right bindsym $mod+Shift+Right move right -##### Restart focused window ###### +########## Resize window ########## bindsym $mod+Control+h resize shrink width 20 px or 20 ppt bindsym $mod+Control+Left resize shrink width 20 px or 20 ppt bindsym $mod+Control+j resize grow height 20 px or 20 ppt

@@ -158,22 +148,6 @@ bindsym $mod+Shift+6 move container to workspace $ws6

bindsym $mod+Shift+7 move container to workspace $ws7 bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+9 move container to workspace $ws9 - -############## Modes ############## -bindsym $mod+g mode "gaps" -mode "gaps" { - bindsym plus gaps inner current plus 2 - bindsym minus gaps inner current minus 2 - bindsym 0 gaps inner current set 0 - - bindsym Shift+plus gaps inner all plus 4 - bindsym Shift+minus gaps inner all minus 4 - bindsym Shift+0 gaps inner all set 0 - - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $mod+g mode "default" -} ############## Colors ############# # Class Border Backgr Text Indicator Child_border
M config/nvim/init.vim

@@ -1,12 +1,13 @@

+filetype plugin on call plug#begin('~/.vim/plugged') - Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels - Plug 'voldikss/vim-floaterm' " Terminal window - Plug 'frazrepo/vim-rainbow' " Rainbow brackets - Plug 'airblade/vim-gitgutter' " Git indicator - Plug 'ap/vim-css-color' " CSS color preview - Plug 'mhinz/vim-startify' " Start page - Plug 'tpope/vim-surround' " HTML/XML tag cloaser - Plug 'itchyny/lightline.vim' " Status line + Plug 'nathanaelkane/vim-indent-guides' " Displaying indent levels + Plug 'voldikss/vim-floaterm' " Terminal window + Plug 'frazrepo/vim-rainbow' " Rainbow brackets + Plug 'airblade/vim-gitgutter' " Git indicator + Plug 'ap/vim-css-color' " CSS color preview + Plug 'mhinz/vim-startify' " Start page + Plug 'itchyny/lightline.vim' " Status line + Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim " Color sheme Plug 'Smirnov-O/nten16.vim'

@@ -23,20 +24,14 @@ Plug 'jiangmiao/auto-pairs'

Plug 'neoclide/coc.nvim', {'branch': 'release'} " Language support - Plug 'pangloss/vim-javascript', {'for': 'javascript'} Plug 'iamcco/markdown-preview.nvim', {'for': 'markdown'} Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'} Plug 'plasticboy/vim-markdown', {'for': 'markdown'} Plug 'vim-python/python-syntax', {'for': 'python'} - Plug 'vim-scripts/indentpython.vim', {'for': 'python'} - Plug 'Olical/vim-scheme', {'for': 'scheme'} Plug 'kovetskiy/sxhkd-vim', {'for': 'sxhkd'} Plug 'mattn/emmet-vim', {'on': 'Emmet'} Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'} - Plug 'dag/vim-fish', {'for': 'fish'} Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'} - Plug 'fatih/vim-go', {'for': 'go'} - "Plug 'mitsuhiko/vim-jinja' call plug#end() " Colors

@@ -63,7 +58,7 @@ set cursorline

" File encoding set encoding=utf-8 -set fileencodings=utf8,cp1251 +set fileencodings=utf8 " Line wrap set nowrap

@@ -110,7 +105,7 @@ \ [ 'filename', 'fileencoding', 'filetype' ] ]

\ }, } " Nerdtree -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'] +let NERDTreeIgnore = ['__pycache__', '.DS_Store', '.git'] let g:NERDTreeWinPos = "right" let g:NERDTreeWinSize = 28 let NERDTreeMinimalUI = 1

@@ -118,6 +113,14 @@ let NERDTreeShowLineNumbers = 1

let NERDTreeShowHidden = 0 map <C-b> :NERDTreeToggle<CR> +" VimWiki +let g:vimwiki_markdown_link_ext = 0 +let g:vimwiki_list = [{ +\ 'path': '~/Documents/Notes', +\ 'syntax': 'markdown', +\ 'ext': '.md', +\ }] + " Coc inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

@@ -134,6 +137,7 @@ nmap FD <Plug>(easymotion-overwin-f2)

nmap FS <Plug>(easymotion-bd-w) " CtrlP +let g:ctrlp_custom_ignore = '\v[\/]\.git$' imap <C-p> :CtrlP<CR> nmap <C-p> :CtrlP<CR>

@@ -173,7 +177,6 @@ let g:floaterm_height = 0.7

let g:floaterm_width = 0.6 let g:floaterm_autoclose = 2 nmap <A-t> :FloatermNew<CR> -imap <A-t> :FloatermNew<CR> " == Maping let mapleader=","

@@ -207,5 +210,8 @@ noremap <A-8> :tabn 8<CR>

noremap <A-9> :tabn 9<CR> " Buffer(s) -noremap <C-a> :bnext<CR> -noremap <C-s> :bprev<CR> +noremap <leader>p :bnext<CR> +noremap <leader>o :bprev<CR> + +" Autostart +"autocmd VimEnter * execute "source ~/.config/nvim/init.vim"
M config/picom.conf

@@ -49,7 +49,7 @@ use-damage = true;

log-level = "warn"; wintypes: { tooltip = { fade = true; shadow = false; opacity = 1; focus = true; full-shadow = false; }; - menu = { fade = true; shadow = false; }; + menu = { fade = true; shadow = false; opacity = 1; }; popup_menu = { fade = true; shadow = false; }; dropdown_menu = { fade = true; shadow = false; }; utility = { fade = true; shadow = false; };
M config/polybar/config

@@ -1,16 +1,16 @@

[settings] +screenchange-reload = true pseudo-transparency = true [colors] background = #262A2B -foreground = #ffffff +foreground = #DFDFDF secondary = #008DCD -alert = #008DCD +alert = #FF6C6B [bar/i3bar] width = 100% height = 24 - fixed-center = true wm-restack = i3 background = ${colors.background}

@@ -20,15 +20,10 @@ module-margin-right = 1

font-0 = Iosevka Nerd Font:style=Medium:size=8;3 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 font-2 = Weather Icons:size=7;2 - -modules-left = i3 -modules-right = keyboard pulseaudio backlight wifi-signal time +modules-left = i3 pacman-up +modules-right = keyboard pulseaudio backlight wifi-signal time date tray-position = right -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -[settings] -screenchange-reload = true - [module/i3] type = internal/i3 format = <label-state><label-mode>

@@ -69,139 +64,61 @@ ws-icon-6 = "7;7 "

ws-icon-7 = "8;8 " ws-icon-8 = "9;9 " -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; INCLUDE MODULES -;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; [module/backlight] type = internal/xbacklight format = <ramp> <label> label = %percentage%% ramp-0 =  - [module/wifi-name] type = internal/network interface = wlp3s0 format-connected = <ramp-signal> <label-connected> label-connected = %essid% -format-disconnected =  No sig +format-disconnected = ramp-signal-0 =  -interval = 3.0 - +interval = 3 [module/wifi-signal] type = custom/script label =  %output:%% exec = ~/.config/polybar/scripts/wifi-signal.sh -interval = 3.0 - - -[module/filesystem] -type = internal/fs -interval = 25 -mount-0 = / -mount-1 = /home -label-mounted =  %mountpoint%: %percentage_used%% -label-unmounted = %mountpoint% not mounted -label-unmounted-foreground = ${colors.foreground} - +interval = 3 [module/pulseaudio] type = internal/pulseaudio +interval = 2 format-volume = <ramp-volume> <label-volume> label-volume = %percentage%% label-volume-foreground = ${root.foreground} label-muted =  - -ramp-volume-0 =  -ramp-volume-1 =  -ramp-volume-2 =  -ramp-volume-3 =  -ramp-volume-4 =  - - -[module/cpu] -type = internal/cpu -interval = 2 -format-prefix = " " -format-prefix-foreground = ${colors.foreground} -label =  CPU %percentage%% - - -[module/memory] -type = internal/memory -interval = 2 -format-prefix = " " -label =  MEM %percentage_used%% - +ramp-volume-0 =  [module/weather] type = custom/script exec = python3 ~/.config/polybar/scripts/weather.py interval = 60 -label-font = 1 - -[module/spotify] -type = custom/script -interval = 1 -format = <label> -exec = python ~/.config/polybar/scripts/spotify_status.py -f '{artist} - {song}' -format-underline = ${colors.alert} - -[module/updates-pacman] +[module/pacman-up] type = custom/script exec = ~/.config/polybar/scripts/updates-pacman-aur.sh interval = 60 - [module/keyboard] type = internal/xkeyboard -label-NAME-maxlen = 10 format-prefix = "" label-layout =  %layout% - blacklist-0 = num lock blacklist-1 = scroll lock blacklist-2= caps lock - -[module/microphone] -type = custom/script -label = %output:0:40:...% -exec = ~/.config/polybar/scripts/microphone.sh   -click-left = ~/.config/polybar/scripts/microphone.sh --click -interval = 0 - - -[module/sp2] -type = custom/text -content = "┇" - - [module/date] type = internal/date interval = 600 -date = %b %e +date = %d.%m.%Y label =  %date% - [module/time] type = internal/date -interval = 0 time = %H:%M label =  %time% - - -[module/title] -type = internal/xwindow -label = %title:0:50:...% -label-empty = -label-maxlen = 50 - - -[module/clipmenu] -type = custom/text -content = "" -click-left = "CM_LAUNCHER=rofi clipmenu" -interval = 0
M config/vifm/vifmrc

@@ -45,14 +45,20 @@ filetype <text/*> nvim

fileviewer <text/*> env -uCOLORTERM bat --color always --wrap never --pager never %c -p filextype *.pdf zathura %c %i & +fileviewer *.pdf + \ vifmimg pdfpreview %px %py %pw %ph %c + \ %pc + \ vifmimg clear + " \ pdftotext -nopgbrk %c - + filetype <audio/*> mocp %c %i & filetype <video/*> mpv %c %i & filextype <image/*> sxiv %c %i & -fileviewer <image/*> - \ kitty icat --place=%pwx%ph@%pxx%py %c - \ %pc - \ kitty icat --clear +fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm + \ ~/.config/vifm/vifmimg draw %px %py %pw %ph %c + \ %pc + \ ~/.config/vifm/vifmimg clear filextype *.py nvim %c %i &
M script/dmenu/dmenu-config-edit.sh

@@ -1,22 +1,30 @@

#!/bin/sh declare options=("i3 -berry qtile +berry openbox -spectrwm polybar picom dunst qutebrowser taskwarrior tmux -vim +alacritty +kitty +neovim ranger -term sh") choice=$(echo -e "${options[@]}" | dmenu -p 'Edit config file' $@) case "$choice" in + dunst) choice="$HOME/.config/dunst/dunstrc" ;; + neovim) choice="$HOME/.config/nvim/init.vim" ;; + taskwarior) choice="$HOME/.taskrc" ;; + picom) choice="$HOME/.config/picom.conf" ;; + kitty) choice="$HOME/.config/kitty/kitty.conf" ;; + alacritty) choice="$hoME/.config/alacritty.yml" ;; + polybar) choice="$HOME/.config/polybar/config" ;; + tmux) choice="$HOME/.tmux.conf" ;; i3) choice="$HOME/.config/i3/config" ;; qtile) opt=$(echo -e "config.py\nautostart.sh"|dmenu -p 'Qtile' $@)

@@ -42,15 +50,6 @@ "menu") choice="$HOME/.config/openbox/menu.xml" ;;

"reload") openbox --reconfigure && pkill kitty ;; esac ;; - spectrwm) - why=$(echo -e "spectrwm.conf\nsectrwm-bar.sh"|dmenu -p Spectrwm $@) - case "$why" in - "spectrwm.conf") choice="$HOME/.spectrwm.conf" ;; - "spectrwm-bar.sh") choice="$HOME/.script/spectrwm-bar.sh" ;; - esac - ;; - picom) choice="$HOME/.config/picom.conf" ;; - polybar) choice="$HOME/.config/polybar/config" ;; qutebrowser) why=$(echo -e "config.py\nquickmarks"|dmenu -p 'Qutebrowser' $@) case "$why" in

@@ -65,22 +64,6 @@ "rc.conf") choice="$HOME/.config/ranger/rc.conf" ;;

"rifle.conf") choice="$HOME/.config/ranger/rifle.conf" ;; esac ;; - vim) - why=$(echo -e "nvim\nvim"|dmenu -p 'Vim' $@) - case "$why" in - vim) choice="$HOME/.vimrc" ;; - nvim) choice="$HOME/.config/nvim/init.vim" ;; - esac - ;; - tmux) choice="$HOME/.tmux.conf" ;; - term) - why=$(echo -e "kitty\nalacritty"|dmenu -p Term $@) - case "$why" in - kitty) choice="$HOME/.config/kitty/kitty.conf" ;; - alacritty) choice="$hoME/.config/alacritty/alacritty.yml" ;; - esac - ;; - dunst) choice="$HOME/.config/dunst/dunstrc" ;; sh) why=$(echo -e "zsh\nfish\nbash"|dmenu -p "Shell" $@) case "$why" in

@@ -89,7 +72,6 @@ fish) choice="$HOME/.config/fish/config.fish" ;;

bash) choice="$hoME/.bashrc" esac ;; - taskwarior) choice="$HOME/.taskrc" ;; *) exit 1 ;; esac -kitty -e nvim "$choice" +alacritty -e nvim "$choice"
D spectrwm.conf

@@ -1,170 +0,0 @@

-modkey = Mod4 - -# Autostart -autorun = ws[1]:setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" -autorun = ws[1]:nitrogen --restore -autorun = ws[1]:picom -b - -# Program -program[term] = kitty -program[browser] = firefox -program[dmenu] = dmenu_run -h 18 -p Run -program[menu] = j4-dmenu-desktop --dmenu="dmenu -h 18 -p Run" -program[edit-config] = ~/.script/dmenu/dmenu-config-edit.sh -h 18 -program[power-menu] = ~/.script/dmenu/dmenu-power.sh -h 18 -program[passmenu] = passmenu -h 18 -p Password -program[filemanager] = pcmanfm -program[codeeditor] = gnvim - -# User keybindings -bind[term] = MOD+Return -bind[menu] = MOD+Shift+Return -bind[dmenu] = MOD+Shift+apostrophe -bind[browser] = MOD+F2 -bind[codeeditor] = MOD+F3 -bind[filemanager] = MOD+F4 -bind[edit-config] = MOD+Control+U -bind[passmenu] = MOD+Control+i -bind[power-menu] = MOD+Escape - - -# Volume keys -program[volumeplus] = pulseaudio-ctl up -program[volumeminu] = pulseaudio-ctl down -program[volumemute] = pulseaudio-ctl mute -bind[volumeplus] = MOD+equal -bind[volumeminu] = MOD+minus -bind[volumemute] = MOD+Shift+minus - -# Workspace -workspace_limit = 9 -focus_mode = follow -focus_close = last -focus_close_wrap = 1 -focus_default = first -spawn_position = next -workspace_clamp = 0 -warp_focus = 1 -warp_pointer = 1 - -name = ws[1]:term -name = ws[2]:www -name = ws[3]:dev -name = ws[4]:sys -name = ws[5]:doc -name = ws[6]:chat -name = ws[7]:pass -name = ws[8]:mus -name = ws[9]:flo - -# Window Decoration -border_width = 2 -color_focus = rgb:00/8D/CD -color_focus_maximized = rgb:00/8D/CD -color_unfocus = rgb:CE/D4/DA -color_unfocus_maximized = rgb:CE/D4/DA -region_padding = 0 -tile_gap = 0 - -# Bar Settings -bar_action = ~/.script/spectrwm-bar.sh -bar_delay = 0 -bar_action_expand = 1 -bar_enabled = 1 -bar_border_width = 0 -bar_border[1] = rgb:28/2A/36 -bar_border_unfocus[1] = rgb:CE/D4/DA -bar_color[1] = rgb:26/2A/2B -bar_color_selected[1] = rgb:00/80/80 -bar_font_color[1] = rgb:FF/FF/FF, rgb:CE/D4/DA, rgb:C6/78/DD, rgb:FF/6C/6B, rgb:EC/BE/7B, rgb:51/AF/EF -bar_font_color_selected = black -bar_font = Jatbrains Mono:size=12, FontAwesome -bar_font_pua = FontAwesome -bar_format = +|L+1<+I +D +@fg=1;+W +|R+A+1<+@fg=5;  %d.%m.%y  %R -workspace_indicator = listactive,markcurrent -bar_justify = center -stack_enabled = 1 -iconic_enabled = 1 -window_class_enabled = 1 -window_instance_enabled = 1 -window_name_enabled = 1 -verbose_layout = 1 -urgent_enabled = 1 - -# Window keys -bind[width_grow] = MOD+Control+l -bind[width_shrink] = MOD+Control+h -bind[height_grow] = MOD+Control+j -bind[height_shrink] = MOD+Control+k -bind[master_grow] = MOD+Control+l -bind[master_shrink] = MOD+Control+h -#bind[swap_next] = MOD+Shift+j -#bind[swap_prev] = MOD+Shift+k - -# WM keys -bind[wind_kill] = MOD+q -bind[restart] = MOD+Control+r -bind[cycle_layout] = MOD+space -bind[float_toggle] = MOD+t -bind[focus_main] = MOD+m -bind[focus_next] = MOD+j -bind[focus_next] = MOD+Tab -bind[focus_prev] = MOD+k -bind[focus_urgent] = MOD+u -bind[iconify] = MOD+w -bind[initscr] = MOD+Shift+i -bind[master_add] = MOD+Shift+comma -bind[master_del] = MOD+Shift+period -bind[ws_1] = MOD+1 -bind[ws_2] = MOD+2 -bind[ws_3] = MOD+3 -bind[ws_4] = MOD+4 -bind[ws_5] = MOD+5 -bind[ws_6] = MOD+6 -bind[ws_7] = MOD+7 -bind[ws_8] = MOD+8 -bind[ws_9] = MOD+9 -bind[mvws_1] = MOD+Shift+1 -bind[mvws_2] = MOD+Shift+2 -bind[mvws_3] = MOD+Shift+3 -bind[mvws_4] = MOD+Shift+4 -bind[mvws_5] = MOD+Shift+5 -bind[mvws_6] = MOD+Shift+6 -bind[mvws_7] = MOD+Shift+7 -bind[mvws_8] = MOD+Shift+8 -bind[mvws_9] = MOD+Shift+9 - -# Unbind -bind[] = MOD+x -bind[] = MOD+p -bind[] = MOD+w -bind[] = MOD+Down -bind[] = MOD+Left -bind[] = MOD+Right -bind[] = MOD+Up -bind[] = MOD+Shift+Right -bind[] = MOD+Shift+Left -bind[] = MOD+Shift+Down -bind[] = MOD+Shift+Up -bind[] = MOD+v -bind[] = MOD+Shift+v -bind[] = MOD+Shift+w -bind[] = MOD+Shift+backslash -bind[] = MOD+s -bind[] = MOD+Shift+s -bind[] = MOD+f -bind[] = MOD+Shift+period -bind[] = MOD+Shift+End -bind[] = MOD+Shift+Down -bind[] = MOD+Shift+Next -bind[] = MOD+Shift+Left -bind[] = MOD+Shift+Begin -bind[] = MOD+Shift+Right -bind[] = MOD+Shift+Home -bind[] = MOD+Shift+Up -bind[] = MOD+Shift+Prior -bind[] = MOD+Shift+j -bind[] = MOD+Shift+l -bind[] = MOD+Shift+h -bind[] = MOD+Shift+k -bind[] = MOD+e
M zshrc

@@ -17,13 +17,14 @@ #COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion.

export UPDATE_ZSH_DAYS=7 # Change how often to auto-update. export LANG=en_US.UTF-8 # Set locale -plugins=(pip python pass golang sudo heroku git taskwarrior encode64) +plugins=(pip python golang pass sudo heroku git taskwarrior encode64) source $ZSH/oh-my-zsh.sh ### Variables ### export EDITOR="nvim" export VISUAL="nvim" +export GOPATH="$HOME/.go" ### Function ### function bgcolor {

@@ -34,15 +35,20 @@

### Aliases ### alias cls="clear" alias :q="exit" +alias :q!="exit" alias q="exit" alias :qw="exit" alias tmux="tmux -2" alias vim="nvim" alias mkdir="mkdir -p" +alias mkd="mkdir" alias sl="ls" alias cp="cp -r" alias du="du -sh" alias df="df -h" +alias lns="ln -s" +alias uln="unlink" +alias ipython="ipython --no-banner" alias icat="kitty +kitten icat" alias ..="cd .." alias ...="cd ../.."

@@ -50,5 +56,4 @@ alias .3="cd ../../.."

alias .4="cd ../../../.." alias .5="cd ../../../../.." alias .6="cd ../../../../../.." - eval $(thefuck --alias)