Drop mako support
This commit is contained in:
parent
be4fc18caa
commit
84b0d44ac1
2 changed files with 19 additions and 22 deletions
19
scripts/do-not-disturb.sh
Executable file
19
scripts/do-not-disturb.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
# Script to toggle Do not disturb mode for dunst
|
||||
|
||||
# Get current state
|
||||
if [ "$( command -v dunstctl )" ]; then
|
||||
current_state="$( dunstctl is-paused )"
|
||||
fi
|
||||
|
||||
# Toggle
|
||||
if [ "${current_state}" == "false" ] ; then
|
||||
notify-send 'Hiding notifications'
|
||||
sleep 5
|
||||
# makoctl set-mode do-not-disturb
|
||||
dunstctl set-paused true
|
||||
else
|
||||
# makoctl set-mode default
|
||||
dunstctl set-paused false
|
||||
notify-send 'Showing notifications'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue