From 5df053eb7d031fa10103d7c33d4df2eca34d6cb8 Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Tue, 24 Oct 2017 16:27:05 +0200 Subject: [PATCH] i3: add modifier to change volume --- i3/multi/config | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/i3/multi/config b/i3/multi/config index 8679e41..adf4111 100644 --- a/i3/multi/config +++ b/i3/multi/config @@ -1,6 +1,7 @@ set $mod Mod4 set $leftoutput DVI-I-1 set $rightoutput VGA-1 +set $sink 0 font pango:monospace 8 @@ -218,9 +219,13 @@ bindsym XF86HomePage workspace 2 bindsym XF86Mail workspace 10 # Pulse Audio controls -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +2% +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -2% + +bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume $sink +5% +bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume $sink -5% + +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute $sink toggle # Media player controls bindsym XF86AudioPlay exec --no-startup-id mpc toggle