all repos

dotfiles @ f5a07cf3b04b2535095697cb646089f2652d4413

my dotfiles
7 files changed, 174 insertions(+), 46 deletions(-)
Add vifm config & theme, update qtile config & autostart, nvim config, kitty config
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2020-12-13 14:05:56 +0200
Parent: 917b691
M config/kitty/kitty.conf

@@ -2,32 +2,32 @@ # MOD

clear_all_shortcuts yes # Font -font_family Jetbrains Mono -bold_font auto -italic_font auto -bold_italic_font auto -font_size 12.0 +font_family Jetbrains Mono +bold_font auto +italic_font auto +bold_italic_font auto +font_size 12.0 adjust_line_height 0 adjust_column_width 0 -disable_ligatures never -font_features none -box_drawing_scale 0.001, 1, 1.5, 2 +disable_ligatures never +font_features none +box_drawing_scale 0.001, 1, 1.5, 2 # Cursor -cursor #dfdfdf -cursor_text_color #7d7d7d -cursor_shape beam -cursor_beam_thickness 1.5 -cursor_underline_thickness 2.0 -cursor_blink_interval 0 -cursor_stop_blinking_after 15.0 +cursor #dfdfdf +cursor_text_color #7d7d7d +cursor_shape beam +cursor_beam_thickness 1.5 +cursor_underline_thickness 2.0 +cursor_blink_interval 0 +cursor_stop_blinking_after 15.0 # Bell -enable_audio_bell no -visual_bell_duration 0.0 -window_alert_on_bell no -command_on_bell none -bell_on_tab no +enable_audio_bell no +visual_bell_duration 0.0 +window_alert_on_bell no +command_on_bell none +bell_on_tab no # Scrollback (History) scrollback_lines 500

@@ -70,7 +70,9 @@ map ctrl+shift+v paste_from_clipboard

map shift+insert paste_from_selection map ctrl+shift+u kitten unicode_input map shift+up scroll_line_up +map alt+k scroll_line_up map shift+down scroll_line_down +map alt+j scroll_line_down map shift+page_up scroll_page_up map shift+page_down scroll_page_down map shift+home scroll_home
M config/nvim/init.vim

@@ -6,6 +6,7 @@ Plug 'Smirnov-O/nten16.vim'

Plug 'iamcco/markdown-preview.nvim' Plug 'dhruvasagar/vim-table-mode' Plug 'easymotion/vim-easymotion' + Plug 'vifm/vifm.vim' " File manger & seacher Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
M config/qtile/autostart.sh

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

#!/bin/sh -setxkbmap "us,ru,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" +setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & nitrogen --restore & picom -b &
M config/qtile/config.py

@@ -179,15 +179,15 @@ ),

] # Workspaces name, keys -group_names = [("term", {"layout": "monadtall"}), +group_names = [("term", {"layout": "columns"}), ("www", {"layout": "max"}), - ("dev", {"layout": "monadtall"}), - ("sys", {"layout": "monadtall"}), - ("doc", {"layout": "monadtall"}), - ("chat", {"layout": "monadtall"}), - ("pass", {"layout": "monadtall"}), + ("dev", {"layout": "columns"}), + ("sys", {"layout": "columns"}), + ("doc", {"layout": "columns"}), + ("chat", {"layout": "columns"}), + ("pass", {"layout": "columns"}), ("mus", {"layout": "max"}), - ("flo", {"layout": "monadtall"}) + ("flo", {"layout": "floating"}) ] groups = [Group(name, **kwargs) for name, kwargs in group_names] for i, (name, kwargs) in enumerate(group_names, 1):
M config/ranger/rc.conf

@@ -46,7 +46,7 @@ set update_title false

set update_tmux_title false set shorten_title 3 set hostname_in_titlebar false -set tilde_in_titlebar trues +set tilde_in_titlebar true ### History set max_history_size 20

@@ -94,11 +94,12 @@

# "a" key map a rename_append map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%")) -map as shell zip -rf 'file.zip' %s -map ad shell tar -czvf file.tar.gz %s -map az extract -map ax extract_to_dirs -map ac compress + +# "s" key +map sa shell zip -r file.zip %s +map ss shell tar -czvf file.tar.gz %s +map sd shell 7z a file.7z %s +map se shell extract %s # "q"/quit keys map Q quitall

@@ -138,14 +139,10 @@ map <A-k> scroll_preview -1

map ? help map W display_log map w taskview_open -map S shell $SHELL map : console -map ; console map ! console shell%space -map @ console -p6 shell %%s -map # console shell -p%space -map s console shell%space +map @ shell $SHELL map r chain draw_possible_programs; console open_with%space map f console find%space map cd console cd%space

@@ -203,13 +200,12 @@ map ) jump_non

# Go keys map gh cd ~ -map gd cd ~/Code +map gc cd ~/Code map gd cd ~/Documents map gb cd ~/Documents/Books -map dl cd ~/.dotfiles - - - +map gm cd ~/.dotfiles +map gn cd ~/bin +map gz cd ~/.script # File keys map dD shell mv %s /home/${USER}/.local/share/Trash/files/

@@ -229,13 +225,12 @@ map pht paste_hardlinked_subtree

map pd console paste dest= map p`<any> paste dest=%any_path map p'<any> paste dest=%any_path - - map yy copy map uy uncut map ya copy mode=add map yr copy mode=remove map yt copy mode=toggle + map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier) map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
A config/vifm/colors/nten16.vifm

@@ -0,0 +1,25 @@

+highlight clear + +highlight Win cterm=none ctermfg=default ctermbg=default +highlight Directory cterm=bold ctermfg=blue ctermbg=default +highlight Link cterm=bold ctermfg=cyan ctermbg=default +highlight BrokenLink cterm=bold ctermfg=red ctermbg=default +highlight Socket cterm=bold ctermfg=magenta ctermbg=default +highlight Device cterm=bold ctermfg=red ctermbg=default +highlight Fifo cterm=bold ctermfg=cyan ctermbg=default +highlight Executable cterm=bold ctermfg=green ctermbg=default +highlight Selected cterm=bold ctermfg=magenta ctermbg=default +highlight CurrLine cterm=bold,reverse ctermfg=4 ctermbg=black +highlight TopLine cterm=none ctermfg=white ctermbg=32 +highlight TopLineSel cterm=bold ctermfg=white ctermbg=default +highlight StatusLine cterm=bold ctermfg=white ctermbg=default +highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black +highlight CmdLine cterm=none ctermfg=white ctermbg=default +highlight ErrorMsg cterm=none ctermfg=red ctermbg=default +highlight Border cterm=none ctermfg=default ctermbg=default +highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white +highlight SuggestBox cterm=bold ctermfg=default ctermbg=default +highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red +highlight AuxWin cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default +highlight TabLine cterm=none ctermfg=white ctermbg=default +highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default
A config/vifm/vifmrc

@@ -0,0 +1,105 @@

+colorscheme nten16 +set vicmd=nvim +set syscalls +view +set history=100 +set nofollowlinks +set sortnumbers +set undolevels=100 +set norunexec +set timefmt=%m/%d\ %H:%M +set wildmenu +set wildstyle=popup +set suggestoptions=normal,visual,view,otherpane,keys,marks,registers +set ignorecase +set smartcase +set nohlsearch +set incsearch +set scrolloff=4 +set trashdir=$HOME/.local/share/Trash/files +set vifminfo=dhistory,chistory,state,shistory,phistory,fhistory,dirstack,registers,bookmarks,bmarks + +" === commands + +command! zip zip -r %f.zip %f +command! targz tar -czvf %f.tar.gz %f +command! vgrep nvim "+grep %a" +set rulerformat= + +" === files + +filetype *.csv,*.xlsx libreoffice %c %i +fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw + +fileviewer *.html w3m -dump %c +filextype *.html,*.htm qutebrowser %f 2>/dev/null & + +filetype <text/*> nvim +fileviewer <text/*> env -uCOLORTERM bat --color always --wrap never --pager never %c -p + +filextype *.pdf zathura %c %i & +fileviewer *.pdf + \ vifmimg pdf %px %py %pw %ph %c + \ %pc + \ vifmimg clear + +filetype <audio/*> mocp %c %i & +fileviewer <audio/*> + \ vifmimg audio %px %py %pw %ph %c + \ %pc + \ vifmimg clear + +filetype <video/*> mpv %c %i & +fileviewer <video/*> + \ vifmimg video %px %py %pw %ph %c + \ %pc + \ vifmimg clear + +filextype <image/*> sxiv %c %i & +fileviewer <image/*> + \ kitty icat --place=%pwx%ph@%pxx%py %c + \ %pc + \ kitty icat --clear + +filextype *.py nvim %c %i & + +fileviewer *.zip,*.jar zip -sf %c +fileviewer *.tgz,*.tar.gz tar -tzf %c +fileviewer *.tar tar -tf %c +fileviewer *.rar unrar v %c +fileviewer *.7z 7z l %c + +fileviewer */ ls --color --group-directories-first +fileviewer .*/ ls --color --group-directories-first + +filetype * xdg-open %c +fileviewer * file -b %c + +" === Key maps +nmap q ZQ +nnoremap gg ggj +nnoremap ! :shell<cr> +nnoremap w :view<cr> +nnoremap S :sort<cr> +nnoremap a cw + +" go keys +nnoremap gh :cd ~<cr> +nnoremap gc :cd ~/Code<cr> +nnoremap gd :cd ~/Documents<cr> +nnoremap gb :cd ~/Documents/Books<cr> +nnoremap gm :cd ~/.dotfiles<cr> +nnoremap gn :cd ~/bin<cr> +nnoremap gz :cd ~/.script<cr> + +" extract +nnoremap se :!$HOME/bin/extract %f &<cr> + +" === file icons +set classify=' :dir:/, :exe:, :reg:, :link:' +set classify+=' ::../::, ::*.sh::, ::*.[hc]pp::, ::*.[hc]::, ::/^copying|license$/::, ::.git/,,*.git/::, ::*.epub,,*.fb2,,*.djvu::, ::*.pdf::, ::*.htm,,*.html,,**.[sx]html,,*.xml::' +set classify+=' ::*.7z,,*.ace,,*.arj,,*.bz2,,*.cpio,,*.deb,,*.dz,,*.gz,,*.jar,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.rz,,*.tar,,*.taz,,*.tb2,,*.tbz,,*.tbz2,,*.tgz,,*.tlz,,*.trz,,*.txz,,*.tz,,*.tz2,,*.xz,,*.z,,*.zip,,*.zoo::' +set classify+=' ::*.bmp,,*.gif,,*.jpeg,,*.jpg,,*.ico,,*.png,,*.ppm,,*.svg,,*.svgz,,*.tga,,*.tif,,*.tiff,,*.xbm,,*.xcf,,*.xpm,,*.xspf,,*.xwd::' +set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::' +set classify+=' ::*.avi,,*.ts,,*.axv,,*.divx,,*.m2v,,*.m4p,,*.m4v,,.mka,,*.mkv,,*.mov,,*.mp4,,*.flv,,*.mp4v,,*.mpeg,,*.mpg,,*.nuv,,*.ogv,,*.pbm,,*.pgm,,*.qt,,*.vob,,*.wmv,,*.xvid::' +set classify+=' ::*.doc,,*.docx::, ::*.xls,,*.xls[mx]::, ::*.pptx,,*.ppt::'