From 17d7beb6f899a61d845ee36df2465ad3fcf494fc Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 16 May 2021 12:41:00 +0100 Subject: [PATCH] Add autocommand to compile suckless software --- init.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.vim b/init.vim index 23e4f09..ecb4ae5 100644 --- a/init.vim +++ b/init.vim @@ -208,6 +208,12 @@ augroup modes autocmd BufNewFile * call feedkeys("i") "Go to insert mode when starting a new file augroup END +"Recompile suckless software when updating config +augroup suckless + autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid -f dwmblocks } + autocmd BufWritePost ~/.local/src/dwm/config.h !cd ~/.local/src/dwm/; sudo make clean install + autocmd BufWritePost ~/.local/src/st/config.h !cd ~/.local/st/dwm/; sudo make clean install + " }}} " Notes and tips