This commit is contained in:
2025-10-25 21:57:23 +02:00
parent 350597ed35
commit b8c591968e

View File

@@ -682,8 +682,11 @@ def on_message(client, userdata, msg):
myCmd =f'amixer set Master mute'
else:
myCmd =f'amixer set Master unmute'
try:
output = subprocess.run(["amixer", "sset", "Master", "mute"], check=True)
writeLog(output)
except:
writeLog("Failed to mute/unmute")
writeLog(myCmd)
output = subprocess.Popen(myCmd, shell=True)
writeLog(output)