mako: Configure do-not-disturb mode
This commit is contained in:
parent
3c4345cea0
commit
c137d50d60
4 changed files with 25 additions and 3 deletions
14
bin/_do-not-disturb
Executable file
14
bin/_do-not-disturb
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue