changed xbacklight to brightnessctl

This commit is contained in:
Moritz Böhme 2021-09-10 09:16:00 +00:00
parent bf2e209641
commit 20d49dea9f
2 changed files with 6 additions and 2 deletions

View file

@ -63,6 +63,10 @@
interfaces.wlp1s0.useDHCP = true; interfaces.wlp1s0.useDHCP = true;
}; };
environment.systemPackages = with pkgs; [
brightnessctl
];
# Powersaving # Powersaving
services.tlp.enable = true; services.tlp.enable = true;

View file

@ -142,9 +142,9 @@ XF86AudioPrev
playerctl -p "spotify,firefox" previous playerctl -p "spotify,firefox" previous
XF86MonBrightnessDown XF86MonBrightnessDown
xbacklight -dec 16 brightnessctl s 10%-
XF86MonBrightnessUp XF86MonBrightnessUp
xbacklight -inc 16 brightnessctl s +10%
# Take a screenshot # Take a screenshot
Print Print