pi-cubing
v0.1.4
Published
A cstimer-style Rubik's Cube timer overlay for Pi, with scrambles, averages, ratings, and local solve persistence.
Maintainers
Readme
pi-cubing
A cstimer-style Rubik's Cube timer overlay for Pi.
Features
/cubingcommand opens a modal/overlay timer in the terminal.Ctrl+Shift+Copens the overlay quickly.- 3x3 scramble generation.
- Spacebar timer flow:
- hold
Spacefor ~500ms until ready/green - release
Spaceto start - press
Spaceagain to stop and save
- hold
- Stable, tabular stopwatch digits so centiseconds do not make the timer wiggle.
- Solve table with scrolling selection.
- Stats: mean, mo3, ao5, ao12, ao50, best ao5, best ao12.
- Per-solve rating: first, PB, great, good, ok, slow.
- Penalty editing:
+2,DNF, delete. - Local persistence on your laptop.
Install
From GitHub:
pi install git:github.com/totimorpa/pi-cubingOr while developing locally:
pi install /absolute/path/to/pi-cubing
# or from this repository's parent directory:
pi install ./pi-cubingThen restart Pi or run:
/reloadUsage
Open the timer:
/cubingControls:
| Key | Action |
| --- | --- |
| Space hold/release | Ready and start timer |
| Space while running | Stop and save solve |
| Esc | Reset visible timer to 0.00 |
| Esc twice | Close overlay |
| ↑ / k | Select newer solve |
| ↓ / j | Select older solve |
| h | Show help dialog with one shortcut per line |
| i | Show selected solve info |
| d / Delete / Backspace | Confirm delete selected solve |
| y / n | Confirm/cancel delete dialog |
| p | Toggle +2 penalty |
| x | Toggle DNF |
| n / r | New scramble |
| Shift+C | Confirm clear all solves |
Persistence
Solves are saved locally to:
~/.pi/agent/cubing/solves.jsonIf you used the earlier cube-timer version, the extension will also read and migrate:
~/.pi/agent/cube-timer/solves.jsonDevelopment
Type-check:
npm install
npm run typecheckDry-run npm package contents:
npm run pack:dryPublishing to GitHub
git init
git add .
git commit -m "Initial pi-cubing package"
git branch -M main
git remote add origin [email protected]:totimorpa/pi-cubing.git
git push -u origin mainThen users can install it with:
pi install git:github.com/totimorpa/pi-cubingSecurity note
Pi extensions run with full local system permissions. Review any extension code before installing packages from others.
