shoestrap/assets/default/mac-bin/is_dnd_mode
2021-06-08 18:25:54 -07:00

10 lines
322 B
Bash
Executable File

#! /bin/bash
# if plutil -extract doNotDisturbDate xml1 -o - ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist &> /dev/null; then
if [ "$(defaults -currentHost read ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb)" == "1" ]; then
echo "Yes"
else
echo "No"
exit 1
fi