diff options
author | lassulus <lassulus@lassul.us> | 2019-09-22 12:12:29 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-09-22 12:12:29 +0200 |
commit | a58a3476f28b06ec8b339855353a5c68db68d4c8 (patch) | |
tree | 6c60b913a4d915be096c428433d5247421dcf599 /lass | |
parent | 037ca410ef84211eff8b6c53feb925a42f5beccd (diff) |
l baseX: manage brightness via acpilight
Diffstat (limited to 'lass')
-rw-r--r-- | lass/2configs/baseX.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lass/2configs/baseX.nix b/lass/2configs/baseX.nix index 5003d2279..a3b5e967b 100644 --- a/lass/2configs/baseX.nix +++ b/lass/2configs/baseX.nix @@ -59,6 +59,7 @@ in { environment.systemPackages = with pkgs; [ acpi + acpilight ag cabal2nix cholerab @@ -81,7 +82,6 @@ in { termite xclip xephyrify - xorg.xbacklight xorg.xhost xsel zathura @@ -94,6 +94,12 @@ in { xlibs.fontschumachermisc ]; + services.udev.extraRules = '' + SUBSYSTEM=="backlight", ACTION=="add", \ + RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness", \ + RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness" + ''; + services.xserver = { enable = true; layout = "us"; |