wm: Add module to set backlight

It's currently not used since it did not work as expected.
This commit is contained in:
Alexander Kobjolke 2024-02-19 23:21:51 +01:00
parent 617d9c5318
commit e7df10f4b0

22
modules/wm/light.nix Normal file
View file

@ -0,0 +1,22 @@
{ 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";
}
];
};
}