bind keys for controlling brightness

This commit is contained in:
2020-01-20 21:59:27 +01:00
parent e40a8159d2
commit f2b64bc7dc
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,8 @@
(define-key *top-map* (kbd "XF86AudioMute") "exec amixer set Master toggle")
(define-key *top-map* (kbd "XF86AudioLowerVolume") "exec amixer set Master 5-")
(define-key *top-map* (kbd "XF86AudioRaiseVolume") "exec amixer set Master 5+")
(define-key *top-map* (kbd "XF86MonBrightnessDown") "exec xbacklight -dec 3")
(define-key *top-map* (kbd "XF86MonBrightnessUp") "exec xbacklight -inc 3")
(when (and (= 1 (group-number (current-group)))
(string= "Default" (group-name (current-group))))