From 215263a67796b3f377a41006a98d4d019a14c736 Mon Sep 17 00:00:00 2001 From: Salman Abedin Date: Fri, 5 Jun 2020 02:53:49 +0600 Subject: [PATCH] Notification toggler --- .local/bin/toggle-notify | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/toggle-notify diff --git a/.local/bin/toggle-notify b/.local/bin/toggle-notify new file mode 100755 index 00000000..2a3f548e --- /dev/null +++ b/.local/bin/toggle-notify @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +pidof dunst && + notify-send -t 1000 '🔕 Do not disturb' && + sleep 1 && + killall dunst && + exit + +dunst & +sleep 0.5 +notify-send -t 1000 '🔔 Disturb all you want'