wm: Add module to set backlight
It's currently not used since it did not work as expected.
This commit is contained in:
parent
617d9c5318
commit
e7df10f4b0
1 changed files with 22 additions and 0 deletions
22
modules/wm/light.nix
Normal file
22
modules/wm/light.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue