From 6f45972265b532365421658f1370742bb82b757b Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 9 Feb 2022 19:50:38 +0100 Subject: Changed default notification system to herbe --- old/dunst-toggle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 old/dunst-toggle (limited to 'old/dunst-toggle') diff --git a/old/dunst-toggle b/old/dunst-toggle new file mode 100755 index 0000000..2de2343 --- /dev/null +++ b/old/dunst-toggle @@ -0,0 +1,14 @@ +#!/bin/sh + +# Toggle "do not disturbe" mode with dunst +# Requires: dunst, notify-send + +if [ "$(dunstctl is-paused)" = "false" ]; then + notify-send -t 3000 "Notifications: OFF" "Notifications will be hidden" + sleep 3 + dunstctl set-paused true +else + dunstctl set-paused false + notify-send -t 3000 "Notifications: ON" "Notifications reactivated" +fi + -- cgit v1.3