shoestrap/assets/default/mac-bin/dnd_mode_activate

7 lines
275 B
Plaintext
Raw Permalink Normal View History

2021-06-09 01:25:54 +00:00
#! /bin/bash
defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb -bool true
defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturbDate -date "$(date)"
killall NotificationCenter