#!/bin/bash
# curtesy of:
#https://github.com/Alexays/Waybar/wiki/Module:-Custom

COUNT=$(dunstctl count waiting)
ENABLED=""
DISABLED=""
if [ $COUNT != 0 ]; then DISABLED=" $COUNT"; fi
if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED"; else echo "$DISABLED"; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED    "; else echo "$DISABLED    "; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED                  "; else echo "$DISABLED     "; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED       |        "; else echo "$DISABLED     "; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED       |                     "; else echo "$DISABLED     "; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED                                   X  "; else echo "$DISABLED     "; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED               "; else echo "$DISABLED     "; fi
# if dunstctl is-paused | grep -q "false" ; then echo "$ENABLED                "; else echo "$DISABLED     "; fi
