commit 0705127054c013c0ca1c862d618f53ec866e8c00
parent 7a2d55b4f8e9743ea5dc4304d0c2d5091024ab73
Author: lou woell <lou@repetitions.de>
Date:   Wed, 29 Apr 2026 17:39:59 +0200

add pause toggle + notification for dunstctl

Diffstat:
Mdunst-history-dmenu.sh | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/dunst-history-dmenu.sh b/dunst-history-dmenu.sh @@ -29,6 +29,22 @@ DMENU_ARGS="-p Notification: " +notify () { + notify-send -a dunst -r 120391209 $@ +} + +if [[ "$1" == "toggle-pause" ]]; then + + dunstctl set-paused toggle + + case $(dunstctl is-paused) in + "true" ) notify "paused" ;; + "false" ) notify "unpaused" ;; + esac + + exit 0 +fi + show () { for id in $@; do dunstctl history-pop $id