mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 10:34:53 +01:00
build
This commit is contained in:
@@ -692,7 +692,11 @@ def on_message(client, userdata, msg):
|
||||
writeLog("Linux Vol Control")
|
||||
if myObj['target'] == "start":
|
||||
writeLog("Getting sound status")
|
||||
out = subprocess.Popen("sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer sget Master | awk -F\"[][]\" '/Left:/ { print $2 }'", shell=True)
|
||||
myCmd = "sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer sget Master | awk -F'[][]' '/Left:/ { print $2 }'"
|
||||
writeLog(myCmd)
|
||||
output = subprocess.Popen(myCmd, shell=True)
|
||||
|
||||
|
||||
writeLog(f"Status of volume {out}")
|
||||
myCmd = f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 20%'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user