diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index 0453c57..0c71db4 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -2,32 +2,32 @@ 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 diff --git a/config/nvim/init.vim b/config/nvim/init.vim index b1fc78e..7bde52a 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -6,6 +6,7 @@ call plug#begin('~/.vim/plugged') 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' } diff --git a/config/qtile/autostart.sh b/config/qtile/autostart.sh index 5d8260a..a563ef3 100755 --- a/config/qtile/autostart.sh +++ b/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 & diff --git a/config/qtile/config.py b/config/qtile/config.py index d8d42b4..5fd0372 100644 --- a/config/qtile/config.py +++ b/config/qtile/config.py @@ -179,15 +179,15 @@ keys = [ ] # 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): diff --git a/config/ranger/rc.conf b/config/ranger/rc.conf index 7d0cded..af6a510 100644 --- a/config/ranger/rc.conf +++ b/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 @@ map F set freeze_files! # "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 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,14 +225,13 @@ map pht paste_hardlinked_subtree map pd console paste dest= map p` paste dest=%any_path map p' 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) map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier) diff --git a/config/vifm/colors/nten16.vifm b/config/vifm/colors/nten16.vifm new file mode 100644 index 0000000..4dac5b3 --- /dev/null +++ b/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 diff --git a/config/vifm/vifmrc b/config/vifm/vifmrc new file mode 100644 index 0000000..3b85317 --- /dev/null +++ b/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 nvim +fileviewer 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