- Updated xkey service to use tmp location for config, added wordwise script

This commit is contained in:
Ben Reaves
2020-04-22 15:21:56 -05:00
parent 6eedd8b4f7
commit f134e9d13b
4 changed files with 104 additions and 2 deletions

View File

@@ -9,4 +9,7 @@ if systemctl -q --user is-active keyswap; then
fi
if systemctl -q --user is-enabled keyswap; then
systemctl --user disable keyswap
fi
fi
mkdir -p /tmp/kinto
cp /home/{username}/.config/kinto/kinto.py /tmp/kinto/kinto.py

View File

@@ -5,7 +5,7 @@ Description=xkeysnail
Type=simple
KillMode=process
ExecStartPre=/sbin/runuser -l {username} -c /home/{username}/.config/kinto/prexk.sh
ExecStart=/usr/bin/sudo /bin/bash -c '/home/{username}/.config/kinto/xkeystart.sh "/home/{username}/.config/kinto/kinto.py"'
ExecStart=/usr/bin/sudo /bin/bash -c '/home/{username}/.config/kinto/xkeystart.sh "/tmp/kinto/kinto.py"'
ExecStop=/usr/bin/sudo /usr/bin/killall xkeysnail
Restart=on-failure
RestartSec=3