mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 12:10:42 +00:00
Rewrite brightness script
This commit is contained in:
parent
5c2f1eed17
commit
3f1d2d31b0
2 changed files with 137 additions and 47 deletions
|
@ -197,13 +197,13 @@ myKeys =
|
|||
, ("<XF86AudioMute>", spawn "pulsemixer --toggle-mute")
|
||||
, ("<XF86AudioLowerVolume>", spawn "pulsemixer --change-volume -5")
|
||||
, ("<XF86AudioRaiseVolume>", spawn "pulsemixer --change-volume +5")
|
||||
, ("<XF86MonBrightnessUp>", spawn "brightness + 5 %")
|
||||
, ("<XF86MonBrightnessDown>", spawn "brightness - 5 %")
|
||||
, ("<XF86MonBrightnessUp>", spawn "brightness -i 5%")
|
||||
, ("<XF86MonBrightnessDown>", spawn "brightness -d 5%")
|
||||
-- Map media keys to meta + arrows for keyboards without special keys
|
||||
, ("M-<Down>", spawn "pulsemixer --change-volume -5")
|
||||
, ("M-<Up>", spawn "pulsemixer --change-volume +5")
|
||||
, ("M-<Right>", spawn "brightness + 5 %")
|
||||
, ("M-<Left>", spawn "brightness - 5 %")
|
||||
, ("M-<Right>", spawn "brightness -i 5%")
|
||||
, ("M-<Left>", spawn "brightness -d 5%")
|
||||
]
|
||||
where nonNSP = WSIs (return (\ws -> W.tag ws /= "NSP"))
|
||||
nonEmptyNonNSP = WSIs (return (\ws -> isJust (W.stack ws) && W.tag ws /= "NSP"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue