i3 : amélioration de la sélection du canal Pulseaudio par défaut

This commit is contained in:
Olivier DOSSMANN 2021-06-10 08:39:42 +02:00
parent b2fe0072a1
commit 21a4fcce11

View File

@ -181,7 +181,7 @@ exec_always --no-startup-id "killall polybar; polybar -r default"
##### MISCELLANEOUS CONFIGURATION ##### MISCELLANEOUS CONFIGURATION
# Pulse Audio controls # Pulse Audio controls
set $sink `pactl list short sinks | head -n1 | cut -f1` set $sink `pacmd list-sinks | grep -e '* index'|cut -d ':' -f2|tr -d '[:blank:]'`
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $sink +5% #increase sound volume bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $sink +5% #increase sound volume
bindsym XF86AudioLowerVolume exec pactl set-sink-volume $sink -5% #decrease sound volume bindsym XF86AudioLowerVolume exec pactl set-sink-volume $sink -5% #decrease sound volume
bindsym XF86AudioMute exec pactl set-sink-mute $sink toggle # mute sound bindsym XF86AudioMute exec pactl set-sink-mute $sink toggle # mute sound