diff --git a/modules/wm/xmonad/config.hs b/modules/wm/xmonad/config.hs index cbc358d..52308da 100644 --- a/modules/wm/xmonad/config.hs +++ b/modules/wm/xmonad/config.hs @@ -48,6 +48,8 @@ myConfig = ewmhFullscreen $ ewmh $ Docks.docks $ def , ("M-b", sendMessage Docks.ToggleStruts) , ("M-p", spawn appLauncher) , ("M-i", spawn passLauncher) + , ("", spawn "xbacklight -dec 5") + , ("", spawn "xbacklight -inc 5") ] where appLauncher = "rofi -show combi -modes combi -combi-modes window,drun,run,ssh" diff --git a/modules/wm/xmonad/default.nix b/modules/wm/xmonad/default.nix index 988cd29..73a3dc6 100644 --- a/modules/wm/xmonad/default.nix +++ b/modules/wm/xmonad/default.nix @@ -14,5 +14,8 @@ }; }; + # control backlight + config.environment.systemPackages = [ pkgs.xorg.xbacklight ]; + config.systemd.services.upower.enable = true; }