diff options
| -rw-r--r-- | scripts/p7s/google_meet.py | 12 | ||||
| -rw-r--r-- | scripts/pyproject.toml | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/scripts/p7s/google_meet.py b/scripts/p7s/google_meet.py new file mode 100644 index 00000000..91c27728 --- /dev/null +++ b/scripts/p7s/google_meet.py @@ -0,0 +1,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) diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml index 8e4ea4c7..132467bb 100644 --- a/scripts/pyproject.toml +++ b/scripts/pyproject.toml @@ -19,6 +19,7 @@ setup-ubpkg = 'p7s.ubpkg:setup_ubpkg' setup-x12 = 'p7s.x12:setup_x12' senpai = 'p7s.senpai:main' ledger = 'p7s.ledger:main' +google-meet-toggle-mute = 'p7s.google_meet:toggle_mute' [tool.uv] package = true |
