Created
September 25, 2023 22:19
-
-
Save guimondmm/e4010b7b78a076220203d6664db880d3 to your computer and use it in GitHub Desktop.
Bartender 4 "show for update" trigger script for Background Sounds (macOS 13 Ventura or newer)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -NPp $(pgrep -xo heard) 2>/dev/null | grep -cm1 com_apple_MobileAsset_ComfortSoundsAssets |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires Bartender 4 and macOS 13 Ventura or newer.
Display the Hearing Accessibility menu bar icon only when Background Sounds are active:
This simple command returns
1
if any Background Sounds are active (e.g., Balanced Noise, Bright Noise, Dark Noise, Ocean, Rain, Stream, etc.), and0
otherwise.