Skip to content

Simple SwiftUI app that shows if Zoom is actively using the camera or if screen sharing is currently activated.

Notifications You must be signed in to change notification settings

daniel-beard/isZoomUsingCamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

isZoomUsingCamera

Simple SwiftUI app that checks if Zoom is actively using the camera.

Can automatically toggle Do Not Disturb based on when zoom is using the camera.

Usage

There aren't any provided builds yet.

Setting up do not disturb

Note: Do not disturb settings only take effect when the preference: Automatically enable DND when Zoom video is on is set.

Monterey and newer

Use shortcuts. Setup two shortcuts within the Shortcuts.app.

In the examples below, I've named these dndon and dndoff:

Now you can select and save the shortcut names for each do not disturb action in the preferences:

Big Sur

This app doesn't have any native support for setting do not disturb states on Big Sur, but you can emulate the behavior with custom scripts.

Example

Requirements: brew install vitorgalvao/tiny-scripts/calm-notifications

To toggle DnD on camera states:

~/.iszoomusingcamera/camera_enabled.sh

#!/bin/bash

calm-notifications on

~/.iszoomusingcamera/camera_disabled.sh

#!/bin/bash

calm-notifications off

Custom Scripts

There are a few events that can trigger custom scripts if you choose. You must enable the preference: Run custom scripts in ~/.iszoomusingcamera for the following to take effect. Remember to make these scripts user executable with chmod +x ~/.iszoomusingcamera/{name of file}.

Event Path to script
Application started ~/.iszoomusingcamera/app_started.sh
Application ended ~/.iszoomusingcamera/app_ended.sh
Camera enabled ~/.iszoomusingcamera/camera_enabled.sh
Camera disabled ~/.iszoomusingcamera/camera_disabled.sh
Screen sharing started ~/.iszoomusingcamera/screen_sharing_started.sh
Screen sharing ended ~/.iszoomusingcamera/screen_sharing_ended.sh

Custom Script Example

Here's some example scripts that I use. You'll need to brew install terminal-notifier for this to work. Note: paths are correct for M1 machines, if you are on x86_64, change these to /usr/local/bin/:

~/.iszoomusingcamera/camera_enabled.sh:

#!/bin/bash

/opt/homebrew/bin/terminal-notifier -title "isZoomUsingCamera" \
  -message "Camera was STARTED" \
  -contentImage "https://raw.githubusercontent.com/daniel-beard/isZoomUsingCamera/master/isZoomUsingCamera/Assets.xcassets/AppIcon.appiconset/icon_128.png" \

~/.iszoomusingcamera/camera_disabled.sh:

#!/bin/bash

/opt/homebrew/bin/terminal-notifier -title "isZoomUsingCamera" \
  -message "Camera was STOPPED" \
  -contentImage "https://raw.githubusercontent.com/daniel-beard/isZoomUsingCamera/master/isZoomUsingCamera/Assets.xcassets/AppIcon.appiconset/icon_128.png" \

So I get notifications when the camera starts or stops:

About

Simple SwiftUI app that shows if Zoom is actively using the camera or if screen sharing is currently activated.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages