~earboxer/SwipeBehaviors

ref: 335955649fb0610e8e853aeb4c5746ce9c2a837c SwipeBehaviors/swipeGuessPicker.sh -rwxr-xr-x 439 bytes
33595564Zach DeCook LICENSE: use AGPLv3 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
rm "$XDG_RUNTIME_DIR/sgp.sock"
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 "$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"
	fi
done

killall suggpicker