# Install SyncGames systemd user units set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" UNIT_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user" mkdir -p "$UNIT_DIR" cp "$ROOT/systemd/syncgames-agent.service" "$UNIT_DIR/" cp "$ROOT/systemd/syncgames-watch@.service" "$UNIT_DIR/" systemctl --user daemon-reload echo "Installed units to $UNIT_DIR" echo "Enable a game watcher: systemctl --user enable --now syncgames-watch@elden-ring-seamless.service"