summaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
commit0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch)
tree6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript')
-rwxr-xr-xusers/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript b/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript
new file mode 100755
index 0000000..71288a7
--- /dev/null
+++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/scripts/zoom-mute-status.applescript
@@ -0,0 +1,17 @@
1property btnTitle : "Mute audio"
2
3if application "zoom.us" is running then
4 tell application "System Events"
5 tell application process "zoom.us"
6 if exists (menu item btnTitle of menu 1 of menu bar item "Meeting" of menu bar 1) then
7 set returnValue to "on"
8 else
9 set returnValue to "off"
10 end if
11 end tell
12 end tell
13else
14 set returnValue to ""
15end if
16
17return returnValue \ No newline at end of file