Browse Source

added hotkey and script for sxhkd onscreen help (super+/)

master
Marc 4 years ago
parent
commit
bfbd845ef1
2 changed files with 11 additions and 0 deletions
  1. 7
      .config/scripts/show_help_sxhkd.sh
  2. 4
      .config/sxhkd/sxhkdrc

7
.config/scripts/show_help_sxhkd.sh

@ -0,0 +1,7 @@
#!/bin/bash
# requires rofi, obviously
awk '/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {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

4
.config/sxhkd/sxhkdrc

@ -14,6 +14,10 @@ super + Return
super + F11 super + F11
/home/marc/.config/scripts/notify-time /home/marc/.config/scripts/notify-time
# show sxhkd hotkeys in rofi
super + slash
show_help_sxhkd.sh
# program launcher # program launcher
super + @space super + @space
rofi -show run drun ssh window rofi -show run drun ssh window

Loading…
Cancel
Save