summaryrefslogtreecommitdiffstats
path: root/configs/xserver/xkiller.nix
blob: 2f976309334f7a535506f84d21f917157ae5e1f4 (plain)
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";
  };

}