bind keys for controlling brightness

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

View File

@ -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

View File

@ -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))))