diff options
Diffstat (limited to 'scripts/p7s')
| -rw-r--r-- | scripts/p7s/google_meet.py | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/scripts/p7s/google_meet.py b/scripts/p7s/google_meet.py index 91c27728..a26dfeef 100644 --- a/scripts/p7s/google_meet.py +++ b/scripts/p7s/google_meet.py @@ -1,6 +1,32 @@ import subprocess -# Needs the https://github.com/ChrisRegado/streamdeck-googlemeet/releases/latest browser extension and websocat +from p7s import multiline_string as _ +from p7s import systemd + +""" +Needs: + +* https://github.com/ChrisRegado/streamdeck-googlemeet/releases/latest +* https://github.com/vi/wsbroad +* https://github.com/vi/websocat/ +""" + + +def install_stream_deck_google_meet_wsbroad_server(): + systemd.create_user_unit("stream-deck-google-meet-wsbroad.service", _(""" + [Unit] + Description=Server for streamdeck-googlemeet browser extension based on wsbroad + + [Service] + ExecStart=/home/alex/.local/bin/wsbroad 127.0.0.1:2394 + + [Install] + WantedBy=default.target + """)) + + systemd.reload() + systemd.enable_now("stream-deck-google-meet-wsbroad.service") + def toggle_mute(): subprocess.run([ @@ -8,5 +34,5 @@ def toggle_mute(): "--text", "--oneshot", 'literal:{"event":"toggleMic"}', - "ws-listen:127.0.0.1:2394" + "ws://127.0.0.1:2394" ], check=True) |
