From 26715ad5c2cdcbcad0bc014388ebfaa55cd4104d Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Thu, 27 Jul 2023 03:00:59 -0400 Subject: feat: `toggle-dunst-notifications` & `toggle wibar` --- .local/bin/toggle-dunst-notifications | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/bin/toggle-dunst-notifications (limited to '.local/bin') diff --git a/.local/bin/toggle-dunst-notifications b/.local/bin/toggle-dunst-notifications new file mode 100755 index 0000000..12ad4ab --- /dev/null +++ b/.local/bin/toggle-dunst-notifications @@ -0,0 +1,9 @@ +#!/bin/sh + +current_state=$(dunstctl is-paused) + +if [ "$current_state" = "false" ]; then + dunstctl set-paused true +else + dunstctl set-paused false +fi -- cgit v1.2.3