Add dunst modules in a drawer group

This commit is contained in:
Sravan Balaji
2024-09-29 21:10:43 -04:00
parent d53e47220f
commit 5e04c8685d
4 changed files with 169 additions and 20 deletions

9
waybar/scripts/dunst.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
isPaused=$(dunstctl is-paused)
notificationCount=$(dunstctl count history)
if [[ "$isPaused" == "true" ]]; then
echo "󰂛 $notificationCount"
else
echo "󰂚 $notificationCount"
fi