Add description
parent
b4050ee797
commit
a6876bb54e
|
@ -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')
|
||||||
|
|
||||||
|
|
|
@ -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" ]
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue