bind keys for controlling brightness
This commit is contained in:
parent
e40a8159d2
commit
f2b64bc7dc
@ -14,6 +14,8 @@ bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT
|
|||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 3
|
||||||
|
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 3
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
@ -59,6 +59,8 @@
|
|||||||
(define-key *top-map* (kbd "XF86AudioMute") "exec amixer set Master toggle")
|
(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 "XF86AudioLowerVolume") "exec amixer set Master 5-")
|
||||||
(define-key *top-map* (kbd "XF86AudioRaiseVolume") "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)))
|
(when (and (= 1 (group-number (current-group)))
|
||||||
(string= "Default" (group-name (current-group))))
|
(string= "Default" (group-name (current-group))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user