Gotcha: SXHKD doesn't like comments (in bindings)
This post's featured URL for sharing metadata is https://www.jvt.me/img/profile.jpg.
I've written before about my usage of the BSPWM tiling window manager, which goes hand in hand with Simple X HotKey Daemon (SXHKD).
I noticed earlier that while trying to set a SXHKD binding, I suddenly stopped being able to trigger the creation of a window via the keybinding.
For instance, with the following binding:
super + shift + d
# Next float via https://www.jvt.me/posts/2024/08/15/bspwm-next-float/
bspc rule -a '*' -o state=floating; kitty
I was finding that SXHKD silently didn't respond to the keypress, nor could I see anything when running the sxhkd
daemon interactively.
It appears that it was due to the location of the comment, and the following diff fixed it:
+# Next float via https://www.jvt.me/posts/2024/08/15/bspwm-next-float/
super + shift + d
- # Next float via https://www.jvt.me/posts/2024/08/15/bspwm-next-float/
bspc rule -a '*' -o state=floating; kitty
Once this was done, it was able to run correctly. This is another subtle reminder for me not to treat it as a shell script being executed!