14 lines
249 B
Bash
Executable File
14 lines
249 B
Bash
Executable File
#!/bin/bash
|
|
|
|
status=$(dunstctl history | jq '.data[0] | length' || echo '?')
|
|
# todo clear
|
|
|
|
if [ "$status" = '?' ]; then
|
|
echo "$status"
|
|
elif [ "$status" -gt 0 ]; then
|
|
echo "%{F#4B8783}%{F-} $status"
|
|
else
|
|
echo "%{F#4B8783}%{F-}"
|
|
fi
|
|
|