From 82b6d3246949571498f4722b8609665dc8c5721c Mon Sep 17 00:00:00 2001 From: Junior Date: Sat, 18 May 2024 14:57:41 +0000 Subject: [PATCH] Switch togglemute to catch Mono Master channel --- scripts/homeaudio_togglemute.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/homeaudio_togglemute.pl b/scripts/homeaudio_togglemute.pl index ffba28f..1021ed4 100755 --- a/scripts/homeaudio_togglemute.pl +++ b/scripts/homeaudio_togglemute.pl @@ -20,7 +20,7 @@ if ( $ARGV[0] eq "-show" ) { } $sound = `/usr/bin/amixer sget Master`; -$mute = trim(`/usr/bin/amixer sget Master | grep "Front Left:" | awk '{print \$6}'`); +$mute = trim(`/usr/bin/amixer sget Master | grep "Mono:" | awk '{print \$6}'`); $sth = $dbh->prepare("SELECT value FROM settings WHERE parameter='CURVOLUME'"); $sth->execute(); if ( $sth->rows > 0 ) {