feat: added polybar config
This commit is contained in:
13
polybar/scripts/dunst.sh
Executable file
13
polybar/scripts/dunst.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user