summaryrefslogtreecommitdiff
path: root/machines/common/x11.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/common/x11.nix')
-rw-r--r--machines/common/x11.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/machines/common/x11.nix b/machines/common/x11.nix
index ed2084a..7fca346 100644
--- a/machines/common/x11.nix
+++ b/machines/common/x11.nix
@@ -1,4 +1,25 @@
-{...}: {
+{pkgs, ...}: {
+ environment.systemPackages = [pkgs.brightnessctl];
+
+ # brightness keys, handled at the evdev level so they work in any WM
+ services.actkbd = {
+ enable = true;
+ bindings = [
+ {
+ # XF86MonBrightnessUp
+ keys = [225];
+ events = ["key"];
+ command = "${pkgs.brightnessctl}/bin/brightnessctl set 5%+";
+ }
+ {
+ # XF86MonBrightnessDown
+ keys = [224];
+ events = ["key"];
+ command = "${pkgs.brightnessctl}/bin/brightnessctl set 5%-";
+ }
+ ];
+ };
+
services.displayManager.ly = {
enable = true;
x11Support = true;