blob: 91c27728db43e6d9bcc9b67fdcf3fa04ab0f37a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import subprocess
# Needs the https://github.com/ChrisRegado/streamdeck-googlemeet/releases/latest browser extension and websocat
def toggle_mute():
subprocess.run([
"websocat",
"--text",
"--oneshot",
'literal:{"event":"toggleMic"}',
"ws-listen:127.0.0.1:2394"
], check=True)
|