GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - daniel-beard/isZoomUsingCamera: Simple SwiftUI app that shows if Zoom is actively using the camera or if screen sharing is currently activated.

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
Resources
Resources
 
 
isZoomUsingCamera.xcodeproj
isZoomUsingCamera.xcodeproj
 
 
isZoomUsingCamera
isZoomUsingCamera
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

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

appdnddo-not-disturbmacosswiftswiftuizoom

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.