From 75d6e605a64d2f862942afb57f1ff5668d60ae52 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 8 Oct 2021 00:05:34 +0300 Subject: bin: track bunch of scripts --- .local/bin/toggle_notifications.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .local/bin/toggle_notifications.sh (limited to '.local/bin/toggle_notifications.sh') diff --git a/.local/bin/toggle_notifications.sh b/.local/bin/toggle_notifications.sh new file mode 100755 index 0000000..9b700b5 --- /dev/null +++ b/.local/bin/toggle_notifications.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +TOGGLE=$HOME/.local/share/.pause_notifications + +if [ ! -e $TOGGLE ]; then + touch $TOGGLE + dunstify --appname="notifications" --icon="chronometer-pause" "pausing" -u low + sleep 3 + killall -SIGUSR1 dunst # pause +else + rm $TOGGLE + killall -SIGUSR2 dunst # resume + dunstify --appname="notifications" --icon="chronometer-start" "here's what happened" -u low +fi -- cgit v1.2.3-70-g09d2