From 1402434de5b546f9dd5dd8989b52ec908c042802 Mon Sep 17 00:00:00 2001 From: oreodave Date: Sun, 12 Apr 2020 01:45:11 +0100 Subject: ~keyboard volume commands now use @DEFAULT_SINK@ These commands are to the pulseaudio server, which has a default sink variable so if I decide to go to Bluetooth for my default output, it will adjust for me. --- i3.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/i3.conf b/i3.conf index 21d4c33..d14f36f 100644 --- a/i3.conf +++ b/i3.conf @@ -26,10 +26,10 @@ gaps inner 15 # Volume binds set $refresh_i3status killall -SIGUSR1 i3status -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +10% && $refresh_i3status -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -10% && $refresh_i3status -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle && $refresh_i3status -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +bindsym XF86AudioRaiseVolume 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 XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCe@ toggle && $refresh_i3status ## m and n are the + and - volume buttons bindsym $mod+m exec --no-startup-id pactl set-sink-volume 0 +5% && $refresh_i3status -- cgit v1.2.3-13-gbd6f