diff --git a/.config/scripts/show_help_sxhkd.sh b/.config/scripts/show_help_sxhkd.sh new file mode 100755 index 0000000..ce7abbc --- /dev/null +++ b/.config/scripts/show_help_sxhkd.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# requires rofi, obviously + +awk '/^[a-z]/ && last {print "",$0,"\t",last,""} {last=""} /^#/{last=$0}' ~/.config/sxhkd/sxhkdrc{,.common} | + column -t -s $'\t' | + rofi -dmenu -i -markup-rows -no-show-icons -width 1000 -lines 15 -yoffset 40 diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index a1f19df..dc9bf00 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -14,6 +14,10 @@ super + Return super + F11 /home/marc/.config/scripts/notify-time +# show sxhkd hotkeys in rofi +super + slash + show_help_sxhkd.sh + # program launcher super + @space rofi -show run drun ssh window