adding polybar setup

This commit is contained in:
2023-03-09 10:21:15 +01:00
parent c2ae3d5fa0
commit 6f35662f0c
15 changed files with 427 additions and 30 deletions

View File

@@ -37,6 +37,14 @@ case $1 in
echo "$INFO"
fi
;;
"songwhip")
JSON=$(httpGet current)
URL=$(echo "$JSON" | jq -r '.url')
WHIPPED_URL="https://songwhip.com$(curl -s -X POST 'https://songwhip.com/api/songwhip/create' -H 'Content-Type: application/json' --data-raw '{"url":"'"$URL"'","country":"NL"}' | jq -r '.data.item.url')"
echo "$WHIPPED_URL"
;;
"status")
if httpGet current | grep "paused" >/dev/null; then
echo "paused"