executable_notification-toggle.sh

 1#!/bin/bash
 2
 3if [ "$1" = "toggle" ]; then
 4    dunstctl set-paused toggle
 5fi
 6
 7is_paused=$(dunstctl is-paused)
 8
 9if [ "$is_paused" = "true" ]; then
10    echo "%{F${color_background}}%{B${color_primary}} 󰂛 %{B- F-}"
11else
12    echo "%{F${color_foreground}}%{B${color_background}} 󰂚 %{B- F-}"
13fi