From fc62ca86ac5ee648391ce6453be850e1e73bf6a9 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 16 Feb 2026 19:16:10 +0100 Subject: feat(scripts): autostart steam when a controller is inserted --- scripts/controller-autostart-steam/,controller-add | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/controller-autostart-steam/,controller-add (limited to 'scripts/controller-autostart-steam/,controller-add') 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 -- cgit v1.2.3