diff options
Diffstat (limited to 'scripts/controller-autostart-steam/,controller-add')
| -rwxr-xr-x | scripts/controller-autostart-steam/,controller-add | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/controller-autostart-steam/,controller-add b/scripts/controller-autostart-steam/,controller-add new file mode 100755 index 0000000..d52d8b8 --- /dev/null +++ b/scripts/controller-autostart-steam/,controller-add @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +env_file="$HOME/.config/controller-autostart-steam.env" + +. $env_file + +if [[ -f "$lockfile" ]]; then + echo "lockfile present" + exit 0 +fi + +touch "$lockfile" + +XDG_RUNTIME_DIR=/run/user/$(id -u $USER) systemctl --user start controller-steam.service |
