diff options
| author | Zach DeCook <zachdecook@librem.one> | 2023-03-01 19:48:47 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2023-03-01 19:48:47 -0500 |
| commit | ef36d5947bcc80f629a2b77cbd0931ea24a22d43 (patch) | |
| tree | 548e1d7b67e77a7dbfee153a77cc0e4ccb701c38 /sb_picker.sh | |
| parent | 9a3212a2dea813581347efd58810bc16d371cda7 (diff) | |
| download | SwipeBehaviors-ef36d5947bcc80f629a2b77cbd0931ea24a22d43.tar.gz | |
Diffstat (limited to 'sb_picker.sh')
| -rwxr-xr-x | sb_picker.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sb_picker.sh b/sb_picker.sh index 69dda6e..908463b 100755 --- a/sb_picker.sh +++ b/sb_picker.sh @@ -8,7 +8,7 @@ cat 0<> "$sock"|suggpicker 2>/dev/null|completelyTypeWord.sh & swipeGuess "$words" 5 | while read -r word; do set -- $word if test -n "$2"; then - s1="$(echo "$1" | mapScore "$keymap" bee|cut -f1)" + s1="$(echo "$1" | mapScore "$keymap" bee |cut -f1)" s2="$(echo "$2" | mapScore "$keymap" bee |cut -f1)" cutoff="$(( ($s1 * 19 / 20) - 2 ))" if [ "$s2" -lt "$cutoff" ]; then @@ -21,7 +21,7 @@ swipeGuess "$words" 5 | while read -r word; do fi fi if test "$1" && ! test "$2"; then - wtype "${1:1}" + wtype "${1#?}" elif ! test "$2"; then echo "" >> "$sock" else |
