#!/bin/sh
OUTPUT=$(zenity --list --title="Sortie Audio" --text "Quelle sortie Audio ?" --column="Id" --column="Nom" 1 "Laptop Speakers" 2 "Laptop Jack");
# LAPTOP SPEAKERS
if [ $OUTPUT -eq 1 ]
then
pacmd set-sink-port alsa_output.pci-0000_00_1f.3.analog-stereo analog-output-speaker # laptop speaker
# LAPTOP JACK
else
pacmd set-sink-port alsa_output.pci-0000_00_1f.3.analog-stereo analog-output-headphones
fi
# see https://lehollandaisvolant.net/?d=2017/06/10/23/37/39-linux-changer-de-sortie-audio-en-un-clic