diff options
author | devhell <devhell@mailfresser.de> | 2020-03-11 19:55:30 +0000 |
---|---|---|
committer | devhell <devhell@mailfresser.de> | 2020-03-11 20:01:16 +0000 |
commit | 547c4d9a51d7d813fd3ddf1b7e8cae6a5067f6b9 (patch) | |
tree | a44c431f63dcb0172e489eb3ddbebb679b60ac77 /machines | |
parent | 5bc44db54b11b2507ecb9a26575321818c098e04 (diff) |
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.
Diffstat (limited to 'machines')
-rw-r--r-- | machines/devhell/hildr.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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 = '' |