diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-01-25 00:32:12 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-01-25 00:32:12 -0500 |
| commit | c58ac0859675ef5a13831070afbb378be15bcb68 (patch) | |
| tree | e8e70a4698095f7d0957f1d7af76266031d33d71 /swipeGuessPicker.sh | |
| parent | 701c0f8d68199176cd5397743afe672b40c2ff69 (diff) | |
| download | SwipeBehaviors-c58ac0859675ef5a13831070afbb378be15bcb68.tar.gz | |
swipeGuessPicker: clear suggestions sometimes
Diffstat (limited to 'swipeGuessPicker.sh')
| -rwxr-xr-x | swipeGuessPicker.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/swipeGuessPicker.sh b/swipeGuessPicker.sh index e90f64e..9e5fbd4 100755 --- a/swipeGuessPicker.sh +++ b/swipeGuessPicker.sh @@ -4,10 +4,12 @@ mkfifo "$XDG_RUNTIME_DIR/sgp.sock" cat 0<> "$XDG_RUNTIME_DIR/sgp.sock"|suggpicker 2>/dev/null|completelyTypeWord.sh & swipeGuess ~/.local/share/sxmo/words.txt 5 | while read -r word; do set -- $word - if ! test "$2"; then + if test "$1" && ! test "$2"; then wtype "${1:1}" + elif ! test "$2"; then + echo "" >> "$XDG_RUNTIME_DIR/sgp.sock" else - echo "$word" > "$XDG_RUNTIME_DIR/sgp.sock" + echo "$word" >> "$XDG_RUNTIME_DIR/sgp.sock" fi done |
