xmonad: Allow to set brightness

This commit is contained in:
Alexander Kobjolke 2024-02-19 23:27:08 +01:00
parent 0dd08b867e
commit 5364735b8c
2 changed files with 5 additions and 0 deletions

View file

@ -48,6 +48,8 @@ myConfig = ewmhFullscreen $ ewmh $ Docks.docks $ def
, ("M-b", sendMessage Docks.ToggleStruts)
, ("M-p", spawn appLauncher)
, ("M-i", spawn passLauncher)
, ("<XF86MonBrightnessDown>", spawn "xbacklight -dec 5")
, ("<XF86MonBrightnessUp>", spawn "xbacklight -inc 5")
]
where
appLauncher = "rofi -show combi -modes combi -combi-modes window,drun,run,ssh"

View file

@ -14,5 +14,8 @@
};
};
# control backlight
config.environment.systemPackages = [ pkgs.xorg.xbacklight ];
config.systemd.services.upower.enable = true;
}