dwm-flexipatch/polybar/scripts/dunst-notification-status.sh
Sravan Balaji 56537aa159 Patched DWM Flexipatch Build
- Wrote entire dwm-flexipatch build as org document
- Moved README and README.md into README.org
- Setup keybindings, colors, etc. for dwm-flexipatch
2021-09-19 09:24:00 -04:00

17 lines
316 B
Bash
Executable File

#!/bin/bash
# Check if dunst is running
if pgrep -x "dunst" > /dev/null
then
is_paused=$(dunstctl is-paused)
if [[ $is_paused == 'false' ]]; then
status_icon=" on"
elif [[ $is_paused == 'true' ]]; then
status_icon=" off"
fi
else
status_icon=" off"
fi
echo $status_icon