i3: Enable volume control from polybar
This commit is contained in:
parent
892a1185b4
commit
40577ea5c6
1 changed files with 8 additions and 0 deletions
|
|
@ -200,3 +200,11 @@ bindsym Control+Shift+Q exec i3lock -c 000000 && xset dpms force off
|
||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
default_floating_border pixel 2
|
default_floating_border pixel 2
|
||||||
|
|
||||||
|
# Audio settings
|
||||||
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue