From 3b75d88127be8fb313d57ae0f231e875b1514aa0 Mon Sep 17 00:00:00 2001 From: nomi-nonsz Date: Wed, 11 Feb 2026 07:51:55 +0000 Subject: [PATCH] update readme --- README.md | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 12c36f6..934fc95 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -Steam game automation, by detecting and running specific Steam games, allows you to appear as if you are unemployed, rarely touching the grass, or perhaps looking busy. Without having to worry about automatically logging out on your current device. +# Autorun Steam Game + +Steam game automation, by detecting and running specific Steam games, allows you to appear as if you are unemployed, rarely touching the grass, or perhaps looking busy. Without having the worry of running the game and restarting Steam manually. Required `.env` variables: @@ -12,5 +14,33 @@ Launch it ```shell chmod +x ./launch.sh -./launch.sh 30 # in minutes +./launch.sh 20 # repeating timer in minutes +``` + +## Run after boot + +To ensure that the game runs after the system boots up, create a new systemd user service e.g. `~/.config/systemd/user/autorun-steam.service` + +```ini +[Unit] +Description=Auto run steam game +After=graphical-session.target + +[Service] +Type=simple +WorkingDirectory=//autorun-steam-game +EnvironmentFile=//autorun-steam-game/.env +ExecStart=//autorun-steam-game/launch.sh 20 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=default.target +``` + +Reload systemd and enable service + +```shell +systemctl --user daemon-reload +systemctl --user enable --now autorun-steam.service ``` \ No newline at end of file