Kaynağa Gözat

fix(yabai): don't automatically start OBS for Google Meet (it was getting annoying)

Joe 1 yıl önce
ebeveyn
işleme
8a9d1fdfde
1 değiştirilmiş dosya ile 1 ekleme ve 22 silme
  1. 1 22
      .config/yabai/yabai.py

+ 1 - 22
.config/yabai/yabai.py

@@ -383,27 +383,6 @@ class Yabai(CLIWrapper):
                 f"action=/usr/bin/env python3 {HOME}/.scripts/slack_client.py",
             ]
         )
-        # "Attach" OBS to Google Meet
-        self.message(
-            [
-                "signal",
-                "--add",
-                "event=application_launched",
-                "app=Google Meet",
-                "label=GoogleMeetOBSJoiner",
-                f"action=/usr/bin/env python3 {HOME}/.scripts/obs_client.py Activate Default StartVirtualCam",
-            ]
-        )
-        self.message(
-            [
-                "signal",
-                "--add",
-                "event=application_terminated",
-                "app=Google Meet",
-                "label=GoogleMeetOBSJoinerEnd",
-                f"action=/usr/bin/env python3 {HOME}/.scripts/obs_client.py StopVirtualCam Activate Disabled",
-            ]
-        )
         # Check if dark mode settings have been updated when focusing terminal
         self.message(
             [
@@ -625,7 +604,7 @@ if __name__ == "__main__":
             or argv[1] == "initialize"
             or argv[1] == "invert"
         ):
+            yabai.enable_exit_with_refocus()
             yabai.move_spaces_to_displays()
             # Disabled until moving spaces no longer triggers mission control
             # yabai.sort_spaces()
-            yabai.enable_exit_with_refocus()