nixos-config/modules/wm/light.nix
Alexander Kobjolke e3bc43c827 wm: Add module to set backlight
It's currently not used since it did not work as expected.
2024-02-19 23:21:51 +01:00

22 lines
409 B
Nix

{ config, lib, pkgs, ... }:
{
config.programs.light = { enable = true; };
config.services.actkbd = let light = "${pkgs.light}/bin/light";
in {
enable = true;
bindings = [
{
keys = [ 232 ];
events = [ "key" ];
command = "${light} -U 10";
}
{
keys = [ 233 ];
events = [ "key" ];
command = "${light} -A 10";
}
];
};
}