From 5268935e9c3b45b7f1448f1b7d125e248015146c Mon Sep 17 00:00:00 2001 From: lanxu Date: Sat, 18 May 2019 13:05:19 +0300 Subject: [PATCH] Fixed togglehdmiaudio --- togglehdmiaudio.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/togglehdmiaudio.sh b/togglehdmiaudio.sh index 848e2d1..265fe8a 100755 --- a/togglehdmiaudio.sh +++ b/togglehdmiaudio.sh @@ -3,6 +3,7 @@ # Toggle between HDMI and Analog # Find out current RUNNING sink currentSink=$(pactl list short sinks | grep 'RUNNING' | awk '{print$2}') +#currentSink=$(pactl info | grep "Default Sink:" | awk '{print$3}') sink=NULL # Then find the first hdmi or analog sink