From 797055a9b5c5b100f98f9c96d78f754c15009a3a Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 23 May 2019 19:35:07 -0400 Subject: [PATCH] sxhkd dox and perks --- .config/bmfiles | 1 + .config/nvim/init.vim | 4 ++++ .local/share/larbs/readme.mom | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/bmfiles b/.config/bmfiles index b03b0465..6f9c17d7 100644 --- a/.config/bmfiles +++ b/.config/bmfiles @@ -15,3 +15,4 @@ cfmb ~/.config/ncmpcpp/bindings cfmc ~/.config/ncmpcpp/config er ~/Documents/referbib cfB ~/.config/i3blocks/config +cfk ~/.config/sxhkd/sxhkdrc diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 92374902..93580872 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -17,6 +17,7 @@ Plug 'vimwiki/vimwiki' Plug 'bling/vim-airline' Plug 'tpope/vim-commentary' Plug 'vifm/vifm.vim' +Plug 'kovetskiy/sxhkd-vim' call plug#end() set bg=light @@ -104,6 +105,9 @@ set clipboard=unnamedplus " When shortcut files are updated, renew bash and vifm configs with new material: autocmd BufWritePost ~/.config/bmdirs,~/.config/bmfiles !shortcuts +" Update binds when sxhkdrc is updated. + autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd + " Run xrdb whenever Xdefaults or Xresources are updated. autocmd BufWritePost *Xresources,*Xdefaults !xrdb % diff --git a/.local/share/larbs/readme.mom b/.local/share/larbs/readme.mom index 62bc06e0..35cea054 100644 --- a/.local/share/larbs/readme.mom +++ b/.local/share/larbs/readme.mom @@ -102,7 +102,8 @@ This will give you the bindings of what program you want. You can also press specific programs or concepts directly from YouTube. .HEADING 1 "Key Bindings" .PP -All of the bindings below are in the file \f(CW~/.config/i3/config\fP (easily accessible by typing \f(CWcfi\fP in the terminal) and can all be easily changed. +All of the bindings below are in either r\f(CW~/.config/sxhkd/sxhkdrrc\fP (for general bindings) or in \f(CW~/.config/i3/config\fP (for i3-specific commands). +You can change them in either of these files to what you want and both files can be accessed respectively by running \f(CWcfk\fP or \f(CWcfi\fP respectively in the terminal. .HEADING 2 "Window basics" .PP Notice the case sensitivity of the shortcuts\c