plugins for wvkbd using swipeGuess
predictor: fix permissions of keylogger
Zach DeCook 2022-06-29
parent c2b5ddd · commit 7756496
-rwxr-xr-xpredictor.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/predictor.sh b/predictor.sh
index 56fc535..bcdae44 100755
--- a/predictor.sh
+++ b/predictor.sh
@@ -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=''