commit 531d3a96895e923d194fc4c9fce8f2ee69e5f96b parent 98c7e35218b47b520c2cad6b55467679c560c91e Author: jacob@thinkpad <jacobouno@protonmail.com> Date: Sun, 8 Mar 2020 17:44:26 -0700 systemd:inital commit; adding some services Diffstat:
| A | systemd/.config/systemd/user/git-sync.service | | | 11 | +++++++++++ |
| A | systemd/.config/systemd/user/slock.service | | | 10 | ++++++++++ |
| A | systemd/.config/systemd/user/ssh-agent.service | | | 10 | ++++++++++ |
3 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/systemd/.config/systemd/user/git-sync.service b/systemd/.config/systemd/user/git-sync.service @@ -0,0 +1,11 @@ +[Unit] +Description=sync files via a git repository + +[Service] +Type=simple +ExecStart=/usr/local/bin/git-sync-heavy /home/jacob/.git-sync/ +Restart=on-failure +RestartSec=60s + +[Install] +WantedBy=network-online.target diff --git a/systemd/.config/systemd/user/slock.service b/systemd/.config/systemd/user/slock.service @@ -0,0 +1,10 @@ +[Unit] +Description=Lock X session using slock +Before=sleep.target + +[Service] +Environment=DISPLAY=:0 +ExecStart=/usr/local/bin/slock + +[Install] +WantedBy=sleep.target diff --git a/systemd/.config/systemd/user/ssh-agent.service b/systemd/.config/systemd/user/ssh-agent.service @@ -0,0 +1,10 @@ +[Unit] +Description=SSH key agent + +[Service] +Type=simple +Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket +ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK + +[Install] +WantedBy=default.target