aboutsummaryrefslogtreecommitdiff
path: root/scripts/dnd
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-04 14:16:57 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-12-04 14:16:57 +0530
commitf9b7790d7da11e9f6b8841d16191a2f772e9cbde (patch)
treef82168d5c4fddd86254f615d330434f238163cbe /scripts/dnd
parent17ba2ace998030f5b54b3b0b6f63530f8b10f985 (diff)
merged dnd and dnd-off into one single script
Diffstat (limited to 'scripts/dnd')
-rwxr-xr-xscripts/dnd11
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
+