diff options
-rwxr-xr-x | bin/.local/bin/keyboard | 3 | ||||
-rw-r--r-- | tmux/.tmux.conf | 1 | ||||
-rw-r--r-- | vifm/.config/vifm/vifmrc | 1 | ||||
-rw-r--r-- | vim/.vim/after/plugin/generalized_motion.vim | 6 | ||||
-rw-r--r-- | vim/.vimrc | 2 | ||||
-rw-r--r-- | xdg-open/.config/mimeapps.list | 1 | ||||
-rw-r--r-- | zathura/.config/zathura/zathurarc | 2 |
7 files changed, 13 insertions, 3 deletions
diff --git a/bin/.local/bin/keyboard b/bin/.local/bin/keyboard index 11b13d1..b3fdfe2 100755 --- a/bin/.local/bin/keyboard +++ b/bin/.local/bin/keyboard @@ -26,6 +26,9 @@ xmodmap -e "keysym Caps_Lock = Control_L Control_L" xmodmap -e "add Control = Control_L" xcape -e 'Control_L=Escape' +# Make Shift (Shift, :) +xcape -e 'Shift_L=Shift_L|semicolon' + # Make Tab (Alt_L, Tab) xmodmap -e "keysym Tab = Alt_L" xmodmap -e "keycode any = Tab" diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index e250d1e..c268025 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -3,6 +3,7 @@ unbind r bind r source-file ~/.tmux.conf bind s send-prefix +bind C-s send-prefix bind C-n next-window bind C-p previous-window bind -n C-Left previous-window diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc index a32e4eb..0ef0c26 100644 --- a/vifm/.config/vifm/vifmrc +++ b/vifm/.config/vifm/vifmrc @@ -21,6 +21,7 @@ command! backup !cp -r %f %f.bak " Mappings nnoremap s :shell<cr> nnoremap w :view<cr> +nnoremap x :!xdg-open %f<cr> nnoremap o :file<cr> nnoremap b :marks<cr> nnoremap gm :bmark<space> diff --git a/vim/.vim/after/plugin/generalized_motion.vim b/vim/.vim/after/plugin/generalized_motion.vim index 87ea9ed..112016c 100644 --- a/vim/.vim/after/plugin/generalized_motion.vim +++ b/vim/.vim/after/plugin/generalized_motion.vim @@ -1,4 +1,8 @@ "" More general ; {{{1 +" if exists('g:loaded_sneak_plugin') + +" endif + let g:generalized_motion = "f" function! Generalized_motion(...) if a:0 > 0 @@ -20,7 +24,7 @@ function! Generalized_motion(...) call feedkeys(';', 'n') endtry endfunction -for mapping in ['f', 't', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b'] +for mapping in ['f', 't', 's', ']q', '[q', ']a', '[a', ']f', '[f', ']b', '[b'] exe "nmap <silent>" mapping ":<c-u>call Generalized_motion('".mapping."')<cr>" endfor nnoremap <silent> ; :<c-u>call Generalized_motion()<cr> @@ -158,10 +158,10 @@ nnoremap ,pc :PlugClean<cr> " Remembrall if &runtimepath =~ 'remembrall' + let g:remembrall_auto_accept = 0 nnoremap <buffer> <nowait> <expr> ,p Remembrall(',p') nnoremap <silent> ,, :call remembrall#remind('n', '')<cr> nnoremap <silent> y :<c-u>call remembrall#remind('n', 'y')<cr> - augroup remembrall autocmd FileType tex nnoremap <buffer> <silent> <expr> ,l Remembrall(',l') augroup END diff --git a/xdg-open/.config/mimeapps.list b/xdg-open/.config/mimeapps.list index e7956c6..a8d5c75 100644 --- a/xdg-open/.config/mimeapps.list +++ b/xdg-open/.config/mimeapps.list @@ -6,6 +6,7 @@ # To set default # mimeopen -d <file> [Default Applications] +audio/mpeg=mpv.desktop; text/plain=nvim.desktop; image/jpeg=feh.desktop; image/png=feh.desktop; diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc index 8289c6e..f80d590 100644 --- a/zathura/.config/zathura/zathurarc +++ b/zathura/.config/zathura/zathurarc @@ -2,4 +2,4 @@ map <C-e> scroll down map <C-y> scroll up set font "monospace normal 12" -map H feedkeys ":exec sh -c \"cat ~/.local/share/zathura/history | grep -Po '\[\K[^\]]*' | tail -10 | dmenu | xargs zathura\"" +map H feedkeys ":exec sh -c \"cat ~/.local/share/zathura/history | grep -Po '\[\K[^\]]*' | tail -30 | dmenu | xargs zathura\"" |