Add keybind for current node's mode

This is an example of how to use dunst with sxhkd to show notifications
on demand.
This commit is contained in:
Donovan Glover 2018-10-19 11:19:50 -04:00
parent fdad3fe1fa
commit 30b1f57ebf
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -195,4 +195,13 @@ alt + backslash
alt + m
wal -o ~/.config/wal/done.sh -i ~/Pictures/Wallpapers
# =====================
# ======= dunst =======
# =====================
# Get the current node's mode
alt + n
SXHKD_NODE=$(bspc query -T -n) && \
notify-send "Current window $(echo $SXHKD_NODE | jq '.client.className') is in mode" "$(echo $SXHKD_NODE | jq '.client.state')"
# vim:ft=sxhkdrc