1 2 3 4 5 6
#!/bin/bash # source: https://my-take-on.tech/2020/07/03/some-tricks-for-sxhkd-and-bspwm/ 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
You can clone a snippet to your computer for local editing. Learn more.