Backlight: Difference between revisions

imported>Hhm
add brightnessctl info
imported>Iceychris
mNo edit summary
Line 68: Line 68:
Follows, an example mapping for use with actkbd:
Follows, an example mapping for use with actkbd:


{{note|This was verified to work NixOS 18.03 on a Lenovo T440; it may work on other models, but is unconfirmed. See [[actkbd]] for details on finding out the proper key bindings.}}
{{note|This was verified to work with
 
* NixOS 18.03 on a Lenovo T440 and
* NixOS 19.09pre173166.373488e6f4c on a Lenovo X240
 
it may work on other models, but is unconfirmed. See [[actkbd]] for details on finding out the proper key bindings. Also check if the path to the light binary is correct. }}
 
 


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 75: Line 82:
     enable = true;
     enable = true;
     bindings = [
     bindings = [
       { keys = [ 224 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -A 10"; }
       { keys = [ 224 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -A 10"; }
       { keys = [ 225 ]; events = [ "key" ]; command = "/run/wrappers/bin/light -U 10"; }
       { keys = [ 225 ]; events = [ "key" ]; command = "/run/current-system/sw/bin/light -U 10"; }
     ];
     ];
   };
   };