mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2023-02-13 20:55:19 -05:00
16 lines
379 B
Bash
16 lines
379 B
Bash
|
#!/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
|