#!/bin/bash # Install the bridge, the sweep script and the systemd user unit. set -euo pipefail cd "$(dirname "$0")" bindir="$HOME/.local/bin" unitdir="${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user" mkdir -p "$bindir" "$unitdir" install -m 755 bin/poe-clip-bridge.py bin/voyage-sweep.py bin/voyage-bookmarklet.sh "$bindir/" install -m 644 systemd/poe-clip-bridge.service "$unitdir/" systemctl --user daemon-reload systemctl --user enable --now poe-clip-bridge.service echo echo "Installed to $bindir." systemctl --user is-active poe-clip-bridge.service >/dev/null \ && echo "Bridge is running on http://127.0.0.1:8477/clip" cat <<'NEXT' Next steps: 1. systemctl --user enable --now ydotool.service 2. Install userscript/allflame-autopaste.user.js in Violentmonkey 3. Open the Voyage panel in game, then: voyage-sweep.py calibrate --cols 6 --rows 10 4. voyage-sweep.py run (or: voyage-bookmarklet.sh for the browser trigger) NEXT