Keycade
English | 简体中文
A shortcut recall arcade for Omarchy, herdr, tmux, Vim, Neovim, and LazyVim




Keycade is a native Omarchy desktop overlay that turns shortcut memorization into quick, arcade-style training runs. Keypresses are captured and judged locally through a Wayland inhibitor, never triggering desktop actions during a session.
Six dedicated training grounds can be selected directly from the home screen, just like machines in an arcade. Each cabinet maintains its own card deck, learning curve, and mastery status:
| Ground |
Source of Shortcuts |
| Omarchy |
Active desktop shortcuts read directly from the running compositor |
| herdr |
Active multiplexer bindings obtained from Omarchy’s read-only listing |
| tmux |
Live server prefixes and key table; falls back to static config and standard table if offline |
| VIM |
Operators, motions, text objects, and compositions, verified against Neovim documentation |
| NEOVIM |
Built-in default keybindings collected from a clean Neovim instance |
| LazyVim |
Official keymaps calibrated automatically to your leader key, enabled extras, and overrides |
Omarchy is selected by default on a fresh install or update; all other grounds are just one click away.
Core Features
- Machine-Aware & Reference Tables: The first three grounds inspect your active system and live server state; the other three draw from upstream-verified reference tables.
- Multi-Key Sequences: Supports complex sequences (
<leader>ff, gcc, C-b %) as seamlessly as single chords, providing step-by-step visual feedback as you type.
- Input Isolation: Hardware keypresses are captured directly by the Wayland inhibitor; no desktop window or application responds while you train.
- Spaced Repetition Engine: Each 24-card session balances unlearned, due, weak, and mastered items to build reliable muscle memory.
- Strict Mastery Standard: A card is marked as mastered only after two consecutive first-try successes across separate runs.
- Active Error Correction: Missed cards display the correct answer for immediate follow-up practice and reappear later in the run.
- Seamless State Persistence: Progress is saved locally in real time; interrupted sessions resume seamlessly, and completing a ground triggers a milestone celebration.
- Deck Customization: Exclude awkward or unpressable shortcuts at any time; return them whenever you want without losing learning history.
- Zero-Config Calibration: Automatically detects your custom Neovim leader keys and tmux prefixes without redundant manual setup.
- Themes & Localization: English and Simplified Chinese support, retro sound effects, and five curated palettes: Catppuccin, Tokyo Night, Gruvbox, Everforest, and Ristretto.
- Retro Arcade Aesthetic: CRT scanlines, dot-matrix counters, and marquee borders (animations gracefully disable under Reduced Motion while preserving data displays).
To ensure universal playability across compact (60%/65%) keyboards, bindings requiring keys like the function row, dedicated media keys, Print/Pause/SysRq, or separate navigation clusters (Home/End/Insert/Page/Delete) are omitted by default. Standalone Esc is reserved for instant saving and quitting (chords like Super + Esc remain fully trainable).
Requirements
- Omarchy 4.x
- Quickshell 0.3.1 (with
Quickshell.Wayland._ShortcutsInhibitor.ShortcutInhibitor)
- Hyprland (configured with
binds:disable_keybind_grabbing = false)
- Python 3
Keycade requires active input inhibition to run safely. If Wayland shortcut protection cannot be verified, it refuses to launch rather than falling back to an insecure focus-only mode.
Keyboard Layouts
Keycade evaluates physical keypresses, matching Hyprland’s internal shortcut dispatch logic: a binding matches the physical key that generates its base keysym when unshifted, regardless of what character is produced when Shift is held. This is essential for non-US layouts—for example, in a German layout, SUPER + SHIFT + comma refers to the physical key labeled ,, even though pressing Shift generates ;.
Active keymaps are retrieved directly from Hyprland’s input:kb_* parameters; shortcuts impossible to type on the current layout are automatically excluded. Character comparison fallback only occurs under custom layouts via input:kb_file or user directories (~/.xkb, ~/.config/xkb), where Keycade degrades safely rather than guessing.
Installation
omarchy plugin add https://github.com/luneth90/keycade.git --enable
Bind a shortcut in ~/.config/hypr/bindings.lua, for example:
echo 'o.bind("SUPER + SHIFT + K", "Keycade", "omarchy-shell shell summon luneth90.keycade '\''{}'\''")' >> ~/.config/hypr/bindings.lua
Updating
omarchy plugin update luneth90.keycade
omarchy restart shell
Note: Restarting the shell is required to ensure running Quickshell components reload the updated code.
Usage
User statistics and session data are stored under ${XDG_STATE_HOME:-$HOME/.local/state}/omarchy/keycade/ and persist across updates.
Uninstallation
omarchy plugin remove luneth90.keycade
Saved data remains preserved in ${XDG_STATE_HOME:-$HOME/.local/state}/omarchy/keycade/. Keycade intentionally does not ship destructive scripts that alter Hyprland configurations or erase user progress on uninstall.
Development & Testing
Host System Inspection
Upstream defaults form the core table. For LazyVim, bounded static readers inspect only fixed files to calibrate mapleader / maplocalleader, enabled lazyvim.json extras, the installed LazyVim commit in lazy-lock.json, and top-level literal vim.keymap.set / vim.keymap.del changes in lua/config/keymaps.lua. For tmux without a running server, they inspect only global prefix / prefix2 assignments in ~/.config/tmux/tmux.conf and ~/.tmux.conf. Reads are descriptor-relative, reject symlinks, and accept only documented literal shapes. Complex constructs are skipped and counted; no Lua or shell configuration is executed, no editor is spawned, and no require or source-file chain is followed.
tmux is the only service queried dynamically: once has-session confirms an active server, show-options retrieves prefix and prefix2, and list-keys fetches live bindings. Herdr consumes the bounded plain-text --print listing from Omarchy’s fixed, root-owned binding-list command. Both helpers run behind deadlines and output limits, and QML independently rebuilds bounded whitelist models before retaining them.
Tests & Screenshots
python3 -m unittest discover -s tests -p 'test_*.py' -v
QT_QPA_PLATFORM=offscreen QT_QPA_PLATFORMTHEME= QT_STYLE_OVERRIDE=Fusion \
/usr/lib/qt6/bin/qmltestrunner -input tests/qml/tst_algorithms.qml -import /usr/lib/qt6/qml
./tests/test_state_store_qml.sh
./tests/test_hyprland_source_qml.sh
./tests/test_ground_switching_qml.sh
./tests/test_run_counters_qml.sh
/usr/lib/qt6/bin/qmllint -I /usr/lib/qt6/qml Keycade.qml lib/*.qml lib/sources/*.qml dev/InputProbe.qml
./tools/shoot-screenshots
License
Keycade is released under the MIT License. Copyright © 2026 luneth90.
评论