From 60052659b98832c78c902e4f27ecee2663d8e913 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 6 May 2026 08:30:49 +0200 Subject: Added scripts --- scripts/old/dunst-toggle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/old/dunst-toggle (limited to 'scripts/old/dunst-toggle') diff --git a/scripts/old/dunst-toggle b/scripts/old/dunst-toggle new file mode 100755 index 0000000..2de2343 --- /dev/null +++ b/scripts/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