diff options
| author | Blista Kanjo | 2023-07-27 03:00:59 -0400 |
|---|---|---|
| committer | Blista Kanjo | 2023-07-27 03:00:59 -0400 |
| commit | 26715ad5c2cdcbcad0bc014388ebfaa55cd4104d (patch) | |
| tree | 1e9fb850c2e74b66a813b9abbb8dad9cd3d9e200 /.local/bin/toggle-dunst-notifications | |
| parent | af6899cd0b77fdb5fc4bd9094a071e094a73f920 (diff) | |
feat: `toggle-dunst-notifications` & `toggle wibar`
Diffstat (limited to '.local/bin/toggle-dunst-notifications')
| -rwxr-xr-x | .local/bin/toggle-dunst-notifications | 9 |
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 |
