aboutsummaryrefslogtreecommitdiff
path: root/scripts
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
parent17ba2ace998030f5b54b3b0b6f63530f8b10f985 (diff)
merged dnd and dnd-off into one single script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dnd11
-rwxr-xr-xscripts/run_dmenu2
-rwxr-xr-xscripts/undnd4
3 files changed, 11 insertions, 6 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
+
diff --git a/scripts/run_dmenu b/scripts/run_dmenu
index 29683372..ae5c88ae 100755
--- a/scripts/run_dmenu
+++ b/scripts/run_dmenu
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/zsh
# this script makes my dmenu sexier
diff --git a/scripts/undnd b/scripts/undnd
deleted file mode 100755
index 5844f391..00000000
--- a/scripts/undnd
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/zsh
-
-notify-send.py a --hint boolean:deadd-notification-center:true \
- string:type:unpausePopups