From ec70ec36a898e6dc5752fc777db8786d946b032e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 15 Jan 2024 02:48:40 +0100 Subject: script sync --- .scripts/dnd | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .scripts/dnd (limited to '.scripts/dnd') diff --git a/.scripts/dnd b/.scripts/dnd new file mode 100755 index 0000000..251e1ce --- /dev/null +++ b/.scripts/dnd @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$(dunstctl is-paused)" = "true" ]; then + killall -SIGUSR2 dunst + notify-send "disturb!" +else + notify-send "do not disturb!" + sleep 3 + dunstctl close-all + killall -SIGUSR1 dunst +fi -- cgit v1.2.3