- Fixes login/logout and reboot startup issues, delays the start by 5 seconds

This commit is contained in:
Ben Reaves
2020-02-04 19:45:39 -06:00
parent ecaf413fa4
commit d8c516c13c
2 changed files with 13 additions and 2 deletions

View File

@@ -4,9 +4,10 @@ swapcmd="\/bin\/bash\ \/home\/`whoami`\/.config\/kinto\/xactive.sh"
mkdir -p ~/.config/systemd/user
mkdir -p ~/.config/autostart
cp ./system-config/keyswap.service ~/.config/systemd/user/keyswap.service
cp ./system-config/keyswap.timer ~/.config/systemd/user/keyswap.timer
cp ./kintox11/binary/kintox11 ~/.config/kinto/kintox11
cp ./system-config/xactive.sh ~/.config/kinto/xactive.sh
sed -i "s/{username}/`whoami`/g" ~/.config/systemd/user/keyswap.service
sed -i "s/ExecStart=/ExecStart=${swapcmd}/g" ~/.config/systemd/user/keyswap.service
systemctl --user enable keyswap
systemctl --user start keyswap
systemctl --user enable keyswap.timer
systemctl --user start keyswap.timer

View File

@@ -0,0 +1,10 @@
# keyswap.timer
[Unit]
Description=Runs the keyswap.service 5 seconds after boot up
[Timer]
OnBootSec=5s
Unit=keyswap.service
[Install]
WantedBy=default.target