This commit is contained in:
2025-10-25 21:37:06 +02:00
parent 19ba9b38b7
commit 441851ff2f

View File

@@ -676,9 +676,9 @@ def on_message(client, userdata, msg):
myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1' myCmd =f'powershell "& ""c:\\Program Files\\jaydee\\vol_control.ps1""" 1'
else: else:
if myObj['target'] == "start": if myObj['target'] == "start":
myCmd =f'amixer set Master 100%' myCmd =f'amixer set Master mute'
else: else:
myCmd =f'amixer set Master 20%' myCmd =f'amixer set Master unmute'
status, output = subprocess.getstatusoutput(myCmd) status, output = subprocess.getstatusoutput(myCmd)
writeLog(myCmd) writeLog(myCmd)
output = subprocess.Popen(myCmd, shell=True) output = subprocess.Popen(myCmd, shell=True)