summaryrefslogtreecommitdiffstats
path: root/tv/2configs
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
commit56b1783854a81d13711fb168f0a3a458f7bfb06b (patch)
tree0595797450f224908110e07b5f9083d14f9442ac /tv/2configs
parent69cc947a4a1d3b257d926351ed19d94336fd347c (diff)
tv xkiller service: init
Diffstat (limited to 'tv/2configs')
-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 0000000..2f97630
--- /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";
+ };
+
+}