PingOff is an Android app that switches Do Not Disturb on when you open apps you have selected, and off when you leave them. It suits people who want quiet while reading, meditating or gaming without having to remember to change the setting.
The app is open source under the GPL-3.0 license, and its source code is published on GitLab. It needs accessibility and usage access permissions to see which app is in the foreground. According to the listing, it only checks package names on the device and does not send that data anywhere.
Alternatives to PingOff
Products that do a similar job in System & Customization.
AlDente
Menu bar tool that caps how far a Mac battery charges
SysReadout Monitor
Android system information shown as a KDE Konsole-style terminal
DoNotNotify
Android app that blocks unwanted notifications by app or text match
cleanyourtv
Removes preinstalled apps from Android TV devices over Wi-Fi
Doll
Shows dock app badge counts in the macOS menu bar
ohmyzsh
Community framework for managing zsh configuration, plugins and themes
Growl
Global notification system for Mac OS X and Windows
glances
Terminal system monitor for Linux, BSD, macOS and Windows