diff options
| author | not_a_robot06 <temporarythrowaway@tutamail.com> | 2025-07-06 23:07:38 +0100 |
|---|---|---|
| committer | not_a_robot06 <temporarythrowaway@tutamail.com> | 2025-07-06 23:07:38 +0100 |
| commit | be35de785e659cc080dd902cf296b5ce270e2e3f (patch) | |
| tree | d2c5f630b79aaa299d8922f7584a406d15c00672 /flashcards.sh | |
| parent | b8fc75f962891aa7def3b1829d83534350dfe21d (diff) | |
| download | flashot-be35de785e659cc080dd902cf296b5ce270e2e3f.tar.gz flashot-be35de785e659cc080dd902cf296b5ce270e2e3f.tar.bz2 flashot-be35de785e659cc080dd902cf296b5ce270e2e3f.zip | |
first proper version
- use hyphens only for separation
- only two scripts: one for screenshots and one for making the cards
- add README
- a little bit of error checking
- TODO: if question or answer non existent, then don't break cards.txt
Diffstat (limited to 'flashcards.sh')
| -rwxr-xr-x | flashcards.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/flashcards.sh b/flashcards.sh deleted file mode 100755 index 242d44a..0000000 --- a/flashcards.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -action=$(echo "make flashcards\nreset" | dmenu -i -p "action?") -if [ "$action" = "make flashcards" ]; then - confirm=$(echo "no\nyes" | dmenu -i -p "are you sure? screenshot names can overwrite others in media folder") - if [ "$confirm" = "yes" ]; then - cd /tmp/question_shots - combine.sh - cd final - cards.sh - cp *.png ~/.local/share/Anki2/Main/collection.media/ - thunar /tmp/question_shots/final & - echo "yay" | dmenu -p "done! import cards.txt into Anki. remember to reset if done" - fi -elif [ "$action" = "reset" ]; then - confirm=$(echo "no\nyes" | dmenu -i -p "are you sure? this action cannot be undone") - if [ "$confirm" = "yes" ]; then - rm -rf /tmp/question_shots/ - fi -fi |
