Added waybar scripts

This commit is contained in:
Kristofers Solo
2023-02-22 22:18:20 +02:00
parent 367533e3bf
commit ae76fa8e9a
6 changed files with 406 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
token=$(cat "${HOME}"/.config/github/notifications.token)
count=$(curl -u kristoferssolo:"${token}" https://api.github.com/notifications | jq '. | length')
# if [[ "$count" != "0" ]]; then
# echo "{'text':$(count),'tooltip':$(tooltip),'class':$(class)}"
# fi
if [[ "$count" != "0" ]]; then
echo '{"text":'$count',"tooltip":"$tooltip","class":"$class"}'
fi