autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks; setsid -f dwmblocks }
Having this line in your dwmblocks automatically recompiles dwmblocks and restarts it, however, on restart, doing a Shift + Left click to edit a module doesn't work, st appears for a split second and disappears again. Killing dwmblocks and starting it again yourself fixes it.
autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks; setsid -f dwmblocks }
Having this line in your dwmblocks automatically recompiles dwmblocks and restarts it, however, on restart, doing a Shift + Left click to edit a module doesn't work, st appears for a split second and disappears again. Killing dwmblocks and starting it again yourself fixes it.