Add description

master
Hektor Misplon 2022-05-11 12:34:22 +02:00
parent b4050ee797
commit a6876bb54e
3 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Anki review percentage for statusbar
# Get current card count from Anki # Get current card count from Anki
count=$(curl -s localhost:8765 -X POST -d '{"action": "getNumCardsReviewedToday", "version": 6}' | jq '.result') count=$(curl -s localhost:8765 -X POST -d '{"action": "getNumCardsReviewedToday", "version": 6}' | jq '.result')

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Get Anki review status from exit code
num_reviews="$(cat /tmp/anki-reviews)" num_reviews="$(cat /tmp/anki-reviews)"
if [ "$num_reviews" -ge "400" ] if [ "$num_reviews" -ge "400" ]

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Only allow stremio when I have finished my Anki reviews
get-anki-reviews-status && stremio || $(echo "Do your reviews first" | notify-pipe) get-anki-reviews-status && stremio || $(echo "Do your reviews first" | notify-pipe)