Created
June 23, 2020 13:05
-
-
Save dasmikko/56a3f77516b1b4cfb0542f4aaf68d1da to your computer and use it in GitHub Desktop.
Show rofi menu with sxhkd keybindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ~/.config/sxhkd/sxhkdrc | awk '/^[a-z]/ && last {print $0,"\t",last} {last=""} /^#/{last=$0}' | column -t -s $'\t' | rofi -dmenu -i -no-show-icons -width 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show this help | |
super + F1 | |
~/.config/sxhkd/show_help.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was just going to write a script to display sxhkdrc bindings in rofi / fzf - thanks for already doing so! And nice use of awk.