tv xkiller service: init
This commit is contained in:
parent
e0bbedff27
commit
c4a8e1380d
14
tv/2configs/xserver/xkiller.nix
Normal file
14
tv/2configs/xserver/xkiller.nix
Normal file
@ -0,0 +1,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";
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user