diff options
Diffstat (limited to 'scripts/dnd')
-rwxr-xr-x | scripts/dnd | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/dnd b/scripts/dnd index 0a125013..92722f7f 100755 --- a/scripts/dnd +++ b/scripts/dnd @@ -1,4 +1,13 @@ #!/bin/zsh +STATUS=$(</tmp/dnd_status) -notify-send.py a --hint boolean:deadd-notification-center:true \ +if [ $(</tmp/dnd_status) = "off" ]; then + notify-send.py a --hint boolean:deadd-notification-center:true \ string:type:pausePopups + echo "on" > /tmp/dnd_status +elif [ $(</tmp/dnd_status) = "on" ]; then + notify-send.py a --hint boolean:deadd-notification-center:true \ + string:type:unpausePopups + echo "off" > /tmp/dnd_status +fi + |