From 30b1f57ebfc2f0822f397f573fa0cea94a17e983 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Fri, 19 Oct 2018 11:19:50 -0400 Subject: [PATCH] Add keybind for current node's mode This is an example of how to use dunst with sxhkd to show notifications on demand. --- .config/sxhkd/sxhkdrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 5a953693..c66e7b64 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -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