summaryrefslogtreecommitdiff
path: root/.config/xmonad/xmonad_keys.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/xmonad/xmonad_keys.sh')
-rwxr-xr-x.config/xmonad/xmonad_keys.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/xmonad/xmonad_keys.sh b/.config/xmonad/xmonad_keys.sh
new file mode 100755
index 0000000..f9d9b3a
--- /dev/null
+++ b/.config/xmonad/xmonad_keys.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+
+sed -n '/START_KEYS/,/END_KEYS/p' ~/.xmonad/xmonad.hs | \
+ grep -e ', ("' \
+ -e '\[ (' \
+ -e 'KB_GROUP' | \
+ grep -v '\-\- , ("' | \
+ sed -e 's/^[ \t]*//' \
+ -e 's/, (/(/' \
+ -e 's/\[ (/(/' \
+ -e 's/-- KB_GROUP /\n/' \
+ -e 's/", /"\t: /' | \
+ yad --text-info --back=#282c34 --fore=#46d9ff --geometry=1200x800