Map multimedia actions to more common keys

This commit is contained in:
ItsDrike 2021-08-09 16:10:36 +02:00
parent 49963ea07f
commit a7b98a14a8
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD

View file

@ -178,11 +178,16 @@ myKeys =
, ("M-M1-k", sendMessage MirrorExpand) -- Expand vert window width
-- Multimedia keys
, ("<XF86AudioMute>", spawn "amixer set Master toggle")
, ("<XF86AudioLowerVolume>", spawn "amixer set Master 5%- unmute")
, ("<XF86AudioRaiseVolume>", spawn "amixer set Master 5%+ unmute")
, ("<XF86AudioMute>", spawn "amixer set Master toggle")
, ("<XF86MonBrightnessUp>", spawn "brightness + 10 %")
, ("<XF86MonBrightnessDown>", spawn "brightness - 10 %")
-- Map media keys to meta + arrows for keyboards without special keys
, ("M-<Down>", spawn "amixer set Master 5%- unmute")
, ("M-<Up>", spawn "amixer set Master 5%+ unmute")
, ("M-<Right>", spawn "brightness + 10 %")
, ("M-<Left>", spawn "brightness - 10 %")
]
where nonNSP = WSIs (return (\ws -> W.tag ws /= "NSP"))
nonEmptyNonNSP = WSIs (return (\ws -> isJust (W.stack ws) && W.tag ws /= "NSP"))