stockholm/tv/2configs/xserver/xkiller.nix

15 lines
297 B
Nix
Raw Normal View History

2019-01-07 14:31:55 +00:00
{ 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";
};
}