diff options
author | tv <tv@krebsco.de> | 2019-01-07 15:31:55 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-01-07 15:31:55 +0100 |
commit | c4a8e1380df895e5c5a94fea4d042410b0e850fd (patch) | |
tree | 06a37e2090603f45266d61400167ab5c7baa4293 | |
parent | e0bbedff27bd3ca6d69b147f2f3dbc183de72243 (diff) |
tv xkiller service: init
-rw-r--r-- | tv/2configs/xserver/xkiller.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tv/2configs/xserver/xkiller.nix b/tv/2configs/xserver/xkiller.nix new file mode 100644 index 000000000..2f9763093 --- /dev/null +++ b/tv/2configs/xserver/xkiller.nix @@ -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"; + }; + +} |