Backlight: Difference between revisions

imported>BenSchaeffner
No edit summary
imported>BenSchaeffner
No edit summary
Line 58: Line 58:


<syntaxhighlight lang="nix">programs.light.enable = true;
<syntaxhighlight lang="nix">programs.light.enable = true;
  services.actkbd = {
services.actkbd = {
    enable = true;
  enable = true;
    bindings = [
  bindings = [
    { keys = [ 224 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -A 10"; }
  { keys = [ 224 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -A 10"; }
    { keys = [ 225 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -U 10"; }
  { keys = [ 225 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -U 10"; }
  ];
  ];
};</syntaxhighlight>
};</syntaxhighlight>
Tested with NixOS 18.03, and in combination with lightdm & i3.
Tested with NixOS 18.03, and in combination with lightdm & i3.