summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-04-27 12:51:47 +0200
committerlassulus <lass@aidsballs.de>2016-04-27 12:51:47 +0200
commit1cc4fb02187f51dd0bec89bf53b8d88e6bae8ebe (patch)
tree650d39a40489c011859b745f87ffeac5fcbd6ef4
parent468be84c69e0b0fcdfd9388ef67f3f352b0c2e0d (diff)
l: add brightness controls to xmonad
-rw-r--r--lass/2configs/xserver/default.nix1
-rw-r--r--lass/5pkgs/xmonad-lass/Main.hs2
2 files changed, 3 insertions, 0 deletions
diff --git a/lass/2configs/xserver/default.nix b/lass/2configs/xserver/default.nix
index 2252e3e4e..e775a575d 100644
--- a/lass/2configs/xserver/default.nix
+++ b/lass/2configs/xserver/default.nix
@@ -89,6 +89,7 @@ let
pkgs.rxvt_unicode
pkgs.i3lock
pkgs.pulseaudioLight
+ pkgs.xorg.xbacklight
] ++ config.environment.systemPackages)}:/var/setuid-wrappers
settle() {(
# Use PATH for a clean journal
diff --git a/lass/5pkgs/xmonad-lass/Main.hs b/lass/5pkgs/xmonad-lass/Main.hs
index 277034240..3b9f22c18 100644
--- a/lass/5pkgs/xmonad-lass/Main.hs
+++ b/lass/5pkgs/xmonad-lass/Main.hs
@@ -105,6 +105,8 @@ myKeyMap =
, ("<XF86AudioMute>", spawn "pactl -- set-sink-mute 0 toggle")
, ("<XF86AudioMicMute>", spawn "pactl -- set-source-mute 1 toggle")
, ("<XF86Launch1>", gridselectWorkspace gridConfig W.view)
+ , ("<XF86MonBrightnessUp>", spawn "xbacklight -steps 1 -time 1 -inc 3")
+ , ("<XF86MonBrightnessDown>", spawn "xbacklight -steps 1 -time 1 -dec 3")
, ("M4-a", focusUrgent)
, ("M4-S-r", renameWorkspace def)