1 2 3 4 5 6 7 8 9 10 11 12 13 14
{ pkgs, ... }: { services.acpid.enable = true; services.acpid.handlers.xkiller = { action = /* sh */ '' event=($1) if test "''${event[2]}" = 00000080; then ${pkgs.systemd}/bin/systemd-cat -t xkiller ${pkgs.xkiller} fi ''; event = "button/prog1"; }; }