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:
@@ -679,9 +679,9 @@ def on_message(client, userdata, msg):
|
||||
else:
|
||||
writeLog("Linux Vol Control")
|
||||
if myObj['target'] == "start":
|
||||
myCmd =f'amixer set Master 20%'
|
||||
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 20%'
|
||||
else:
|
||||
myCmd =f'amixer set Master 100%'
|
||||
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 100%'
|
||||
# try:
|
||||
# #percent = 20
|
||||
# #output = subprocess.run(["pactl", "set-sink-volume", "@DEFAULT_SINK@", f"{percent}%"], check=True)
|
||||
|
||||
Reference in New Issue
Block a user