aboutsummaryrefslogtreecommitdiffstats
path: root/sxhkd/scripts/show-keybindings.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sxhkd/scripts/show-keybindings.sh')
-rw-r--r--sxhkd/scripts/show-keybindings.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/sxhkd/scripts/show-keybindings.sh b/sxhkd/scripts/show-keybindings.sh
new file mode 100644
index 0000000..db7863d
--- /dev/null
+++ b/sxhkd/scripts/show-keybindings.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+SXHKD_CONFIG="$HOME/.config/sxhkd/sxhkdrc"
+
+awk '
+ /^#/ {
+ desc = substr($0, 3)
+ }
+ /^[[:alnum:]]/ {
+ cmd = $0
+ getline
+ print cmd " : " desc
+ }
+' "$SXHKD_CONFIG" | rofi -dmenu -i -p "Keybindings"