make backlight control work

This commit is contained in:
ChaotiCryptidz 2021-12-29 14:15:52 +00:00
parent bcaa56ee97
commit 2600a9e55d
3 changed files with 6 additions and 6 deletions

View file

@ -41,11 +41,11 @@
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1640592198,
"narHash": "sha256-F5dWVGQMscmGyLTzNLocPB1v8Ijp8ONx8Nq9Dmi5PSw=",
"lastModified": 1640770690,
"narHash": "sha256-Rl2cD8yspug7sPRXXJkVvmjLFS8i9g04iNDzohMEuyg=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0b197562ab7bf114dd5f6716f41d4b5be6ccd357",
"rev": "2f40cd05dc0ffe3ba69a94e9e76e0357c5b9a0b8",
"type": "github"
},
"original": {

View file

@ -140,8 +140,8 @@
"exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle";
"XF86AudioMicMute" =
"exec pactl set-source-mute $(pacmd list-sources |awk '/* index:/{print $3}') toggle";
"XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5";
"XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5";
"XF86MonBrightnessDown" = "exec sudo xbacklight -time 1 -dec +5";
"XF86MonBrightnessUp" = "exec sudo xbacklight -time 1 -inc +5";
"Print" =
"exec ${pkgs.grim}/bin/grim -t png - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png";
"Shift+Print" = ''

View file

@ -3,5 +3,5 @@
services.tlp.enable = true;
powerManagement.enable = true;
powerManagement.powertop.enable = true;
programs.light.enable = true;
hardware.acpilight.enable = true;
}