diff --git a/keyswap_service.sh b/keyswap_service.sh index fef6436..da4b32e 100755 --- a/keyswap_service.sh +++ b/keyswap_service.sh @@ -2,15 +2,15 @@ systemctl --user stop keyswap >/dev/null 2>&1 systemctl --user disable keyswap >/dev/null 2>&1 +systemctl --user stop keyswap.timer >/dev/null 2>&1 +systemctl --user disable keyswap.timer >/dev/null 2>&1 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.timer -systemctl --user start keyswap.timer -systemctl --user start keyswap \ No newline at end of file +systemctl --user daemon-reload +systemctl --user start keyswap diff --git a/system-config/keyswap.timer b/system-config/keyswap.timer deleted file mode 100644 index 3274a88..0000000 --- a/system-config/keyswap.timer +++ /dev/null @@ -1,10 +0,0 @@ -# keyswap.timer -[Unit] -Description=Runs the keyswap.service 5 seconds after boot up - -[Timer] -OnBootSec=5s -Unit=keyswap.service - -[Install] -WantedBy=default.target