9 lines
282 B
Bash
Executable File
9 lines
282 B
Bash
Executable File
#! /bin/bash
|
|
# Copied from https://github.com/Alexays/Waybar/wiki/Module:-Custom#dunst
|
|
|
|
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
|