Skip to content

Commit

Permalink
Merge pull request #21 from rbreaves/dev
Browse files Browse the repository at this point in the history
- Fixes login/logout and reboot startup issues
  • Loading branch information
rbreaves authored Feb 5, 2020
2 parents b763703 + d8c516c commit a6b9b1f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions keyswap_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions system-config/keyswap.timer
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a6b9b1f

Please sign in to comment.