diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dnd | 11 | ||||
-rwxr-xr-x | scripts/run_dmenu | 2 | ||||
-rwxr-xr-x | scripts/undnd | 4 |
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 |