dots-of-war/files/scripts/showMappings.sh

3 lines
195 B
Bash
Raw Normal View History

2020-03-25 17:36:34 +00:00
#!/bin/dash
2020-03-29 18:47:50 +00:00
cat ~/.xmonad/lib/Config.hs | awk '/myKeys = \[/,/\] \+\+ generatedMappings.*/' | sed 's/myKeys = \[//g' | sed 's/\].*generatedMappings.*//g' | sed 's/^\s*,\? //g' | sed 's/^(\|)//g'