diff options
author | lassulus <lassulus@lassul.us> | 2019-01-16 11:17:20 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-01-16 11:17:20 +0100 |
commit | 879b6d319a18dce6e5f686c997643c78229469a8 (patch) | |
tree | c21b0eef944b80adecb7d95aa79ba4a475ef6dd1 /tv/2configs/xserver | |
parent | a1d9c22bbd8eff9198f378e9007ddf4cb9ee2e5c (diff) | |
parent | 2d2ab95f0707209c4c248d43cb57877a50a37991 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/2configs/xserver')
-rw-r--r-- | tv/2configs/xserver/Xmodmap.nix | 1 | ||||
-rw-r--r-- | tv/2configs/xserver/xkiller.nix | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tv/2configs/xserver/Xmodmap.nix b/tv/2configs/xserver/Xmodmap.nix index d2b1b2604..8e8e3dfdd 100644 --- a/tv/2configs/xserver/Xmodmap.nix +++ b/tv/2configs/xserver/Xmodmap.nix @@ -17,6 +17,7 @@ pkgs.writeText "Xmodmap" '' keycode 39 = s S ssharp keycode 33 = p P Greek_pi Greek_PI + keycode 40 = d D Greek_delta Greek_DELTA keycode 46 = l L Greek_lambda Greek_LAMBDA keycode 54 = c C cacute Cacute 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"; + }; + +} |