Created
October 14, 2023 13:14
-
-
Save dreness/7983da493f640d1f57d3581aadcc821b to your computer and use it in GitHub Desktop.
LaunchEvents -> com.apple.notifyd.matching
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
find /System/Library/LaunchDaemons /System/Library/LaunchAgents -name "*.plist" \ | |
| while read p ; do plutil -convert json -o - ${p} \ | |
| jq -r ' .. | objects | with_entries(select(.key == "Notification")) | select(. != {}).Notification' | |
done | sort -u > ~/Desktop/all-launchd-notifications.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Various parts of macOS emit system-wide notifications when certain events occur. Using
notifyutil
you can subscribe to these events, e.g.sudo notifyutil -w com.apple.MediaRemote.nowPlayingApplicationIsPlayingDidChange
. In the below example, I listen for three different notification event types, then press the play / pause button on my keyboard a couple times.Below is the output of list_launchd_notifications.sh