mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 09:00:11 +02:00
ft-gaze reads the Frame's eye tracker (SteamVR's eyetracking action and the two gaze sets in eye-server.mmap, read only) and prints where the gaze lands on the Frametop screens. ft-gazeprobe is a GTK playground on top of it: a Vision Pro style calibration run, an accuracy test, refining the correction model from logged points, and click, drag, and snap practice that learn the tracker's error on the fly. It also follows SteamVR's eyetracking log for restarts and the clicks SteamVR calibrates itself from, which it keeps only in memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
746 B
Bash
Executable File
19 lines
746 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Install (or remove) Frametop Gaze Probe in the desktop's app menu, and build ft-gaze.
|
|
# Usage: gaze/probe/install.sh [install|uninstall]
|
|
set -euo pipefail
|
|
root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
|
|
. "$root/scripts/_env.sh"
|
|
"$root/scripts/sync.sh" >/dev/null
|
|
apps=.local/share/applications
|
|
case ${1:-install} in
|
|
install)
|
|
"$root/gaze/build.sh"
|
|
fill_template "$root/gaze/probe/ft-gazeprobe.desktop" | on_frame "mkdir -p ~/$apps && cat > ~/$apps/ft-gazeprobe.desktop"
|
|
on_frame "chmod +x gaze/probe/ft-gazeprobe"
|
|
echo "installed: Frametop Gaze Probe" ;;
|
|
uninstall)
|
|
on_frame "rm -f ~/$apps/ft-gazeprobe.desktop; echo removed" ;;
|
|
*) echo "usage: $0 [install|uninstall]" >&2; exit 2 ;;
|
|
esac
|