From 547c4d9a51d7d813fd3ddf1b7e8cae6a5067f6b9 Mon Sep 17 00:00:00 2001 From: devhell Date: Wed, 11 Mar 2020 19:55:30 +0000 Subject: machines/hildr: Enable and configure actkbd Until now I've been controlling screen brightness using `xbindkeysrc`. However, I also like to have as much as possible in vuizvui. Here I'm moving my screen brightness configuration. Unfortunately the wiki article [1] seems outdated. Although `light` is enabled using `programs.light.enable` it does not live in `/run/wrappers/bin/light` like the wiki article suggests. I could choose the `/run/current-system/sw/bin/light` path, but I figured that the committed approach might be better. Dunno yet. --- machines/devhell/hildr.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'machines/devhell/hildr.nix') diff --git a/machines/devhell/hildr.nix b/machines/devhell/hildr.nix index 41cfbda9..d667b84b 100644 --- a/machines/devhell/hildr.nix +++ b/machines/devhell/hildr.nix @@ -114,6 +114,14 @@ }; }; + services.actkbd = { + enable = true; + bindings = [ + { keys = [ 224 ]; events = [ "key" ]; command = "${pkgs.light}/bin/light -U 5"; } + { keys = [ 225 ]; events = [ "key" ]; command = "${pkgs.light}/bin/light -A 5"; } + ]; + }; + services.acpid = { enable = true; lidEventCommands = '' -- cgit 1.4.1