diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-04 14:16:57 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2020-12-04 14:16:57 +0530 |
commit | f9b7790d7da11e9f6b8841d16191a2f772e9cbde (patch) | |
tree | f82168d5c4fddd86254f615d330434f238163cbe /scripts/dnd | |
parent | 17ba2ace998030f5b54b3b0b6f63530f8b10f985 (diff) |
merged dnd and dnd-off into one single script
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 + |