aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/toggle-dunst-notifications
diff options
context:
space:
mode:
authorkj_sh6042025-11-09 18:53:25 -0500
committerkj_sh6042025-11-09 18:53:25 -0500
commitf5e03894e96a9c652c39314a2575f52f9c47aac2 (patch)
tree070c9be188abfa1bf6f1b3bca44f2c7fb86b1b80 /.local/bin/toggle-dunst-notifications
parent0e89adbd440b04e5432eb00614f654c9fed93687 (diff)
revert-to: a6675719f73a332f92c30ff5c4948cda26c0e6e3
Diffstat (limited to '.local/bin/toggle-dunst-notifications')
-rwxr-xr-x.local/bin/toggle-dunst-notifications9
1 files changed, 9 insertions, 0 deletions
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