No description
  • Rust 97.5%
  • Shell 2.2%
  • Python 0.3%
Find a file
Jimmy Berglund 6208a5c337
fix: turn the clipboard on, and add a hex field to paste colours into
eframe's default features were off, which also dropped its clipboard
support, so every copy and paste did nothing. Each colour button in the
layout editor now has a hex field beside it that also takes r, g, b[, a].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 16:46:58 +01:00
.cargo feat: speedrun-agent runs WASM auto splitters for Steam games 2026-10-28 14:33:19 +01:00
agent fix: tidy the auto splitting UI, and make the agent's greeting reliable 2026-10-30 14:11:52 +01:00
docs/screenshots Add screenshots to README 2026-11-18 16:18:28 +01:00
flatpak fix: turn the clipboard on, and add a hex field to paste colours into 2026-11-21 16:46:58 +01:00
protocol feat: the agent gets its auto splitter from the timer's split file 2026-10-30 13:17:27 +01:00
timer fix: turn the clipboard on, and add a hex field to paste colours into 2026-11-21 16:46:58 +01:00
vendor fix(agent): find games by their current process name 2026-10-30 11:58:30 +01:00
.gitignore feat: Flatpak packaging as se.jimmy_b.Nyx, under the MIT license 2026-10-30 12:41:02 +01:00
Cargo.lock fix: turn the clipboard on, and add a hex field to paste colours into 2026-11-21 16:46:58 +01:00
Cargo.toml fix(agent): attach auto splitters to the game process, not a thread 2026-10-28 14:42:50 +01:00
LICENSE feat: Flatpak packaging as se.jimmy_b.Nyx, under the MIT license 2026-10-30 12:41:02 +01:00
README.md Add screenshots to README 2026-11-18 16:18:28 +01:00
TODO.md docs: drop the Flathub publishing plans 2026-10-30 19:35:43 +01:00

Nyx

A keyboard-driven, Wayland-native speedrun timer for Linux, with auto splitting that works with Flatpak Steam and Proton without loosening any system security settings.

  • Global hotkeys on Wayland through the desktop's Global Shortcuts portal.
  • Splits and comparisons: Personal Best, Sum of Best, Average and Last Run, with golds, live deltas and run history.
  • Real time or game time, with game time following LiveSplit's model, so load removers and in-game timers both work.
  • LiveSplit compatible: speaks LiveSplit's server protocol on its usual port, so existing game mods and tools can drive it, and opens LiveSplit .lss split files.
  • Auto splitters for Steam games: nyx-agent runs LiveSplit's WASM auto splitters against a game, native or Proton, from the game's launch options. Pick one from LiveSplit's list in the split editor and edit its settings there.

The same splits in four layout styles: mid-run, and after a new personal best

The layout editor

The timer next to the layout editor

The times in the screenshots are made up.

Repository

Directory What it is
timer/ The timer itself (nyx)
protocol/ nyx-protocol: the LiveSplit server protocol, shared by the timer and its clients
agent/ nyx-agent: a Steam launch-option wrapper that runs auto splitters
vendor/ A patched copy of LiveSplit's auto-splitting runtime
flatpak/ Flatpak packaging for the timer

Building

Needs a recent stable Rust (1.96 or newer for the agent) and a desktop with the Global Shortcuts portal for hotkeys.

cargo build --release -p nyx
./target/release/nyx [split-file]

A Flatpak (se.jimmy_b.Nyx) can be built from flatpak/.

The agent is built statically so it runs inside Steam's containers; see agent/README.md:

rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl -p nyx-agent

Game integration

Three ways for a game to drive the timer, all on localhost only:

  1. LiveSplit server protocol on TCP port 16834: line-based commands such as startorsplit, pausegametime or getcurrenttime. Anything written for LiveSplit's server works unchanged.
  2. HTTP API on port 28772: simple POST /api/split-style endpoints and a JSON state endpoint, handy for scripts.
  3. nyx-agent: memory-reading auto splitters, no game mod needed. Nyx installs it for Flatpak Steam, finds splitters in LiveSplit's list, and shows their settings in the split editor.

The timer's side of both APIs is described in timer/README.md.

Development

cargo test --workspace
cargo clippy --workspace --all-targets

timer/tests/ has end-to-end scripts that drive a running timer over both APIs, and agent/README.md describes how to test the agent with a minimal auto splitter. Planned work is in TODO.md.

License

MIT; see LICENSE. The vendored auto-splitting runtime is MIT OR Apache-2.0.