nixos-config/modules/wm/light.nix
Alexander Kobjolke e7df10f4b0 wm: Add module to set backlight
It's currently not used since it did not work as expected.
2024-05-28 20:35:18 +02: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";
}
];
};
}