1
0
Fork 0

mako: Configure do-not-disturb mode

This commit is contained in:
Jeremy Kaplan 2024-08-15 09:40:06 -07:00
commit c137d50d60
4 changed files with 25 additions and 3 deletions

14
bin/_do-not-disturb Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
modes="$(makoctl mode)"
if [[ "$modes" =~ 'do-not-disturb' ]]; then
makoctl mode -r do-not-disturb
notify-send -t 1000 "Notifications on"
else
notify-send -t 500 "Notifications off"
sleep 1 # Give it a chance to be seen!
makoctl mode -a do-not-disturb
fi