#!/usr/bin/env bash count=$(swaync-client -c) if [ "$count" -eq 0 ]; then echo '{"text":"󰂚","class":"none"}' else echo "{\"text\":\"󰂚 $count\",\"class\":\"notification\"}" fi