I am using bspwm so I added this line to my .vimrc:
au BufWritePost $XDG_CONFIG_HOME/sxhkd/sxhkdrc silent exec "!pkill -USR1 -x sxhkd && sxhkd &
So that when I edit sxhkdrc, it automatically reloads it. However, even though I added "silent exec", it still prints a lot of junk all over the text, forcing me to do
redraw!. I thought of adding
| redraw! and the end of the above line, but the junk still appears, I believe because it will redraw before sxhkd prints all the crap over the terminal.
What would be the best way to "fix" this? I could make a function that sleeps some time and only redraws after, but that doesn't feel very clean, is there a better way?