Skip to content

Instantly share code, notes, and snippets.

@dasmikko
Created June 23, 2020 13:05
Show Gist options
  • Save dasmikko/56a3f77516b1b4cfb0542f4aaf68d1da to your computer and use it in GitHub Desktop.
Save dasmikko/56a3f77516b1b4cfb0542f4aaf68d1da to your computer and use it in GitHub Desktop.
Show rofi menu with sxhkd keybindings
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
# show this help
super + F1
~/.config/sxhkd/show_help.sh
@vredesbyyrd
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment