From 5364735b8cf11e56a024231db1f240881d727634 Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Mon, 19 Feb 2024 23:27:08 +0100 Subject: [PATCH] xmonad: Allow to set brightness --- modules/wm/xmonad/config.hs | 2 ++ modules/wm/xmonad/default.nix | 3 +++ 2 files changed, 5 insertions(+) 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; }