mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
No description
- Rust 78.5%
- JavaScript 6.6%
- TypeScript 4%
- HTML 4%
- Shell 2%
- Other 4.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Raise Linux Annotate screen recording from 30 fps to 60 fps across the PipeWire/VA-API, PipeWire/x264, and X11/x264 paths (step L1): - Raise `linux::media::FPS` from 30 to 60 and propagate it to both sampler loops, `ffmpeg` mux/encode args, and VA-API H.264 sequence and VUI timing (`time_scale = 2 * FPS = 120`), replacing the 30 fps cap (`time_scale = 60`). - Offer `SPA_FORMAT_VIDEO_maxFramerate` 60/1 (range 1/1..60/1) and a 60/1 default on `SPA_FORMAT_VIDEO_framerate` in PipeWire `enum_format`, keeping linear modifier negotiation unchanged for now. - Compute VA-API H.264 `level_idc` from macroblocks and frame rate per Table A-1 (e.g. 4.2 at 1080p60, 5.1 at 1440p60, 5.2 at 4K60, replacing hardcoded level 5.1), allocate coded surfaces padded to 16 px macroblocks while setting SPS `frame_cropping_flag` and crop offsets (replacing `fit(..., 16)` truncation that squashed 1920x1080 to 1920x1072 and float-truncating 3840x2160 to 2560x1438), and scale the `small` candidate surface on demand in `small_rgba` at `FRAME_SAMPLE_INTERVAL` instead of on every frame in `load`. - Switch CPU `Writer::x264` from fixed `veryfast` to `superfast` up to 1440p and `ultrafast` above, raise the pipe buffer to 1 MiB, and timestamp piped frames on the wall clock into `fps=60` inside `ffmpeg` instead of duplicating multi-MB raw frames across `pipe:0` when a screen is still or a 4K software frame runs past 16.7 ms. - Borrow the X11 MIT-SHM segment directly into `Writer` instead of copying each frame into a `Vec<u8>`, and cache the XFixes cursor image across frames using `XFixesSelectCursorInput` (`XFixesCursorNotify`), pipelining `QueryPointer` with `shm_get_image` instead of fetching the cursor bitmap every frame. - Update `docs/features/capture.md` (`capture.linux`) with the new behaviour, checks, and T4 verification limits. Verified: - `cargo clippy --locked -p scrawl-capture --target x86_64-unknown-linux-gnu -- -D warnings` and `python3 scripts/code-shape.py --check`. - FFmpeg `trace_headers` bit-level parse of generated VA-API SPS/PPS/IDR headers at 1920x1080@60 (level 42, crop_bottom 4), 2560x1440@60 (level 51), and 3840x2160@60 (level 52), all `time_scale = 120`. - On `hex-linux-nvidia` (`g4dn.2xlarge`, Tesla T4, Ubuntu 24.04): 273/275 `scrawl-capture` unit tests pass (the other 2 fail identically on clean `dev`); native Xorg 1080p60 recorded 598 frames in 9.97 s at 60/1 (`1920x1080`, 597 grabs, 16.5% capture CPU); Xorg 1280x720 Area recorded 298 frames in 4.97 s at 60/1 (297 grabs); rootful Xwayland 4K recorded `2560x1440` at 60/1 (598 frames in 9.97 s from 282 raw 4K grabs); PipeWire 1080p60 SHM -> x264 recorded 598 frames in 9.97 s at 60/1 (594 delivered). VA-API hardware encoding was not exercised live because Tesla T4 has no VA-API encoder. |
||
| .cargo | ||
| .cloudflare/cache | ||
| .config | ||
| .github | ||
| app | ||
| assets/icons | ||
| crates | ||
| design | ||
| docs | ||
| ios | ||
| macos/HexMicrophoneDriver | ||
| native | ||
| nix | ||
| packaging | ||
| perf | ||
| prototypes/app-shell | ||
| release-notes | ||
| resources | ||
| scripts | ||
| sdk | ||
| site | ||
| skills/hex-personal-commands | ||
| src | ||
| tests | ||
| .gitignore | ||
| .hivemind.toml | ||
| .markdownlint-cli2.jsonc | ||
| AGENTS.md | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clippy.toml | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.md | ||
| ROADMAP.md | ||
| SECURITY.md | ||
| strobe.json | ||
| THIRD_PARTY_NOTICES.md | ||
Hex
Hex is local voice dictation for Mac, Windows and Linux. Hold a key, speak, and it pastes.
How it works
- hold the shortcut, speak, then let go
- Hex transcribes on your device and pastes into whatever app you're in
- the first run downloads a speech model; after that nothing leaves your machine
- experimental features live in Labs, at the bottom of the sidebar
Downloads
Stable is the current release. Dev is the newest build of dev and updates
itself from the dev channel.
| Platform | Stable | Dev |
|---|---|---|
| macOS (Apple silicon) | DMG | DMG |
| Windows x64 | Installer | Installer |
| Windows ARM64 | Installer | Installer |
| Linux x86_64 | Executable | Executable |
| Linux x86_64 (Debian, Ubuntu) | .deb | .deb |
| Linux x86_64 (Fedora, openSUSE) | .rpm | .rpm |
| Linux ARM64 | Executable | Executable |
| Linux ARM64 (Debian, Ubuntu) | .deb | .deb |
| Linux ARM64 (Fedora, openSUSE) | .rpm | .rpm |
Or install with:
- Homebrew:
brew install --cask anomalyco/tap/hex - AUR:
yay -S hex-bin - install script (Linux):
curl -fsSL https://anoma.ly/hex/install-linux.sh | sh - Nix:
nix profile add github:anomalyco/hex
More docs are in docs/.
Contributing
We don't take pull requests. Open an issue describing the bug or idea, and our agents usually turn it around fast.
MIT licensed.