Files
templisandClaude Opus 5 e65f9db3ae feat: Linux bulk importer for the Allflame Voyage Solver
Mirrors the solver's Windows-only voyage-import.ahk on KDE Wayland:

- poe-clip-bridge.py: clipboard watcher that keeps only PoE item text,
  serves it on loopback and can trigger a sweep from the browser
- voyage-sweep.py: hovers every cell of the in-game chart grid, Ctrl+C's
  it and hands over the whole batch in one go
- userscript: feeds the batch into the solver page without focusing it

Includes notes on the four Wayland pointer pitfalls this ran into.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-04 21:39:19 +02:00

29 lines
952 B
Bash
Executable File

#!/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