summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-01-07 15:31:55 +0100
committertv <tv@krebsco.de>2019-01-07 15:31:55 +0100
commitc4a8e1380df895e5c5a94fea4d042410b0e850fd (patch)
tree06a37e2090603f45266d61400167ab5c7baa4293
parente0bbedff27bd3ca6d69b147f2f3dbc183de72243 (diff)
tv xkiller service: init
-rw-r--r--tv/2configs/xserver/xkiller.nix14
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";
+ };
+
+}