dotfiles/modules/config/bin/sxhkdHelp.nix

11 lines
354 B
Nix

{ pkgs }:
pkgs.writeShellApplication {
name = "sxhkd-help";
runtimeInputs = with pkgs; [ rofi ];
text = ''
awk '/^[a-z]/ && last {print "<small>",$0,"\t",last,"</small>"} {last=""} /^#/{last=$0}' ~/.config/sxhkd/sxhkdrc |
column -t -s $'\t' |
rofi -dmenu -i -markup-rows -no-show-icons -width 1000 -lines 15 -yoffset 40
'';
}