xmonad: Allow to set brightness
This commit is contained in:
parent
0dd08b867e
commit
5364735b8c
2 changed files with 5 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ myConfig = ewmhFullscreen $ ewmh $ Docks.docks $ def
|
||||||
, ("M-b", sendMessage Docks.ToggleStruts)
|
, ("M-b", sendMessage Docks.ToggleStruts)
|
||||||
, ("M-p", spawn appLauncher)
|
, ("M-p", spawn appLauncher)
|
||||||
, ("M-i", spawn passLauncher)
|
, ("M-i", spawn passLauncher)
|
||||||
|
, ("<XF86MonBrightnessDown>", spawn "xbacklight -dec 5")
|
||||||
|
, ("<XF86MonBrightnessUp>", spawn "xbacklight -inc 5")
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
appLauncher = "rofi -show combi -modes combi -combi-modes window,drun,run,ssh"
|
appLauncher = "rofi -show combi -modes combi -combi-modes window,drun,run,ssh"
|
||||||
|
|
|
||||||
|
|
@ -14,5 +14,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# control backlight
|
||||||
|
config.environment.systemPackages = [ pkgs.xorg.xbacklight ];
|
||||||
|
|
||||||
config.systemd.services.upower.enable = true;
|
config.systemd.services.upower.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue