Config: Prevent warning on the first exec of the btc polybar module

This commit is contained in:
Riyyi
2022-03-18 13:13:31 +01:00
parent e6bddb75c8
commit 9a17694bc9
2 changed files with 8 additions and 3 deletions
+1
View File
@@ -77,6 +77,7 @@ done
pulseTcp()
{
if test "$2" = "off" || test "$2" = "0"; then
echo "Disabling PulseAudio TCP module"
if pactl list modules short | grep -q module-simple-protocol-tcp; then
pactl unload-module module-simple-protocol-tcp
fi