~earboxer/SwipeBehaviors

7756496d39dc13296ddee4ebd73a2413f541d0eb — Zach DeCook 3 months ago c2b5ddd
predictor: fix permissions of keylogger
1 files changed, 5 insertions(+), 2 deletions(-)

M predictor.sh
M predictor.sh => predictor.sh +5 -2
@@ 1,12 1,15 @@
#!/bin/sh
sock="$XDG_RUNTIME_DIR/predictor.sock"
lw="$XDG_RUNTIME_DIR/pred.lastword"
tw="$XDG_RUNTIME_DIR/pred.tfw"
kl="$XDG_RUNTIME_DIR/keylog"
lw="$kl/pred.lastword"
tw="$kl/pred.tfw"
complete="$XDG_RUNTIME_DIR/pred.complete.bool"
words=~/.local/share/sxmo/words.txt
twow=~/.local/share/sxmo/count_2w.txt
keymap=~/.local/share/sxmo/keyboard.map.tsv
rm -f "$sock" "$lw" "$complete"
mkdir -p "$kl"
chmod 700 "$kl"
mkfifo "$sock"
saveWord(){
	IFS=''