Merge branch 'i3-volume'
* i3-volume: i3: Add volume control binding group
This commit is contained in:
commit
0a507140a1
@ -204,6 +204,20 @@ bar {
|
|||||||
exec_always --no-startup-id compton -f -D 4 --backend glx --vsync opengl
|
exec_always --no-startup-id compton -f -D 4 --backend glx --vsync opengl
|
||||||
|
|
||||||
# Multimedia Keybindings
|
# Multimedia Keybindings
|
||||||
|
set $mode_multimedia Volume: [=,+]up [-]down [m]ute output [r]mute input
|
||||||
|
mode "$mode_multimedia" {
|
||||||
|
bindsym equal exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||||
|
bindsym plus exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||||
|
bindsym minus exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||||
|
bindsym m exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
bindsym r exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
bindsym $mod+m mode "$mode_multimedia"
|
||||||
|
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user