Inital Comit Upload Config Files
This commit is contained in:
8
scripts/notifications.sh
Executable file
8
scripts/notifications.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
count=$(swaync-client -c)
|
||||
|
||||
if [ "$count" -eq 0 ]; then
|
||||
echo '{"text":"","class":"none"}'
|
||||
else
|
||||
echo "{\"text\":\" $count\",\"class\":\"notification\"}"
|
||||
fi
|
||||
Reference in New Issue
Block a user