mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 14:42:04 +00:00
Use dotter
This commit is contained in:
11
config/waybar/scripts/github.sh
Normal file
11
config/waybar/scripts/github.sh
Normal 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
|
||||
Reference in New Issue
Block a user