dots-of-war/files/scripts/showMappings.sh
2020-04-19 17:49:39 +02:00

6 lines
187 B
Bash
Executable file

#!/bin/dash
cat ~/.xmonad/lib/Config.hs \
| awk '/myKeys = \[/,/\] \+\+ generatedMappings.*/' \
| sed 's/myKeys = \[ (\|\].*generatedMappings.*//g' \
| sed 's/^\s*, \?(\|)//g'