dotfiles/modules/config/bin/sxhkdHelp.nix

11 lines
354 B
Nix
Raw Normal View History

2021-12-26 23:34:42 +01:00
{ 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
2022-02-07 15:30:54 +01:00
'';
2021-12-26 23:34:42 +01:00
}