clean up scripts
This commit is contained in:
12
.config/polybar/scripts/notification-github.sh
Normal file
12
.config/polybar/scripts/notification-github.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
USER=""
|
||||
TOKEN="1234567890"
|
||||
|
||||
notifications=$(echo "user = \"$USER:$TOKEN\"" | curl -sf -K- https://api.github.com/notifications | jq ".[].unread" | grep -c true)
|
||||
|
||||
if [ "$notifications" -gt 0 ]; then
|
||||
echo "# $notifications"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user