mirror of
https://gitlab.sectorq.eu/jaydee/mqtt_srv.git
synced 2025-12-14 18:44:53 +01:00
build
This commit is contained in:
@@ -679,9 +679,9 @@ def on_message(client, userdata, msg):
|
|||||||
else:
|
else:
|
||||||
writeLog("Linux Vol Control")
|
writeLog("Linux Vol Control")
|
||||||
if myObj['target'] == "start":
|
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:
|
else:
|
||||||
myCmd =f'amixer set Master 100%'
|
myCmd =f'sudo XDG_RUNTIME_DIR=/run/user/1000 -u jd amixer set Master 100%'
|
||||||
# try:
|
# try:
|
||||||
# #percent = 20
|
# #percent = 20
|
||||||
# #output = subprocess.run(["pactl", "set-sink-volume", "@DEFAULT_SINK@", f"{percent}%"], check=True)
|
# #output = subprocess.run(["pactl", "set-sink-volume", "@DEFAULT_SINK@", f"{percent}%"], check=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user