Skip to content

About

See your ZSA Moonlander's keys and layers in an Omarchy overlay: live key and layer highlighting, tap and hold labels, and automatic discovery of the flashed Oryx layout.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Keypeek

See your Moonlander's keys and layers in an Omarchy overlay.

Keypeek showing the Moonlander default layout

UI preview with the Moonlander default layout. Colors and fonts follow your Omarchy theme.

  • Physical key highlighting and live layer changes.
  • Manual layer browsing with a quick return to Follow keyboard.
  • Tap/hold labels, full descriptions on hover, and a 72-key Moonlander schematic.
  • Automatic discovery of the flashed Oryx revision; no layout URL to paste.
  • Offline use after the exact revision has been cached.
  • One-time keyboard access setup through the system's administrator prompt.

Requirements

  • Omarchy with its Quickshell plugin system and shared qs.Ui controls.
  • Python 3.10 or later (standard library only).
  • A USB-connected ZSA Moonlander running compatible Oryx firmware.
  • Internet for the first load of each layout revision.
  • For access setup: polkit (pkexec), an active desktop authentication agent, and systemd/udev with uaccess support. These are supplied by the target Omarchy desktop.

Other keyboards and custom firmware without an Oryx identifier are not supported in this release.

Install

omarchy plugin add https://github.com/windrunner21/omarchy-keypeek.git --enable

Open Keypeek through your plugin launcher, or run:

omarchy-shell shell summon windrunner21.keypeek '{}'

If it says Access required, select Enable keyboard access and approve the system authentication prompt. The overlay temporarily hides so the prompt can receive input. Keypeek retries when setup finishes; reconnect once if requested. Canceling the prompt lets you retry later.

Firmware that does not report its current layer on connection needs one layer change to synchronize. Hold and release a layer key, or choose a layer manually to browse immediately.

Use

Control What it does
Follow keyboard Shows the layer reported by the keyboard
Layer buttons Browse assignments without changing the keyboard's layer
Hover a key Read its full tap/hold actions
Details Show the exact revision, cache source, and connection messages
Refresh Reload the same revision and reconnect live view
×, Escape, or outside click Close the overlay and stop its listener

Small key labels describe hold actions or modes such as toggle. ▽ means transparent, — means unassigned, and × means disabled. Live highlights show physical positions, including while browsing another layer.

Keyboard access

Setup creates /etc/udev/rules.d/70-keypeek-moonlander.rules. It grants the active local desktop session access to HID raw interfaces on Moonlanders with vendor 3297 and product 1969 or 1972. It does not grant world-writable access, add a user to a group, change firmware, or create a passwordless policy.

Only the fixed-purpose setup helper runs with administrator privileges, using isolated Python. The viewer and its device listener run as your normal user. Existing rules with different contents are left unchanged. Other applications may already provide access; in that case setup is unnecessary.

Update and remove

For a Git-managed installation:

omarchy plugin update windrunner21.keypeek

To remove Keypeek's access rule, do this before removing the plugin:

pkexec /usr/bin/python3 -I "$HOME/.config/omarchy/plugins/windrunner21.keypeek/tools/keypeek_access.py" remove

Reconnect the keyboard afterward to reset existing access. Other installed rules may still grant access independently. Then remove the plugin:

omarchy plugin remove windrunner21.keypeek

Removing the plugin does not delete its personal layout cache, located under $XDG_CACHE_HOME/keypeek or ~/.cache/keypeek by default.

Limitations

  • The firmware reports the highest layer, not its full active layer stack. Transparent keys remain explicit rather than guessing what falls through.
  • Keys already held before opening are not highlighted until pressed again.
  • Macros and advanced actions are preserved but may not be fully interpreted. Hover for the full description and limitations.
  • The diagram uses QMK's flattened geometry, including its thumb arrangement.
  • Labels reflect firmware assignments, not OS-level keyboard remapping.
  • Use one live keyboard tool at a time. Keypeek coordinates its own processes but cannot control Oryx or Keymapp sessions.
  • Some firmware needs a three-key pairing sequence. Follow the numbered keys. Reconnect if an interrupted pairing leaves normal typing affected.
  • The inspected firmware does not implement an explicit live disconnect command. Closing stops Keypeek's listener; reconnecting resets the firmware's live session.

Keypeek queries Oryx for the exact flashed layout, caches it locally, and does not upload key events. Cache files can contain your macro assignments and are written with owner-only permissions. There is no telemetry.

Development

PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s tools -p 'test_*.py'
python3 tools/check_session.py

See development, hardware acceptance, and third-party sources. No GitHub release has been published yet.

License

Keypeek's original code is licensed under the GNU General Public License, version 2 only (GPL-2.0-only). Copyright © 2026 Imran Hajiyev.

Third-party code and derived geometry retain their existing notices; see THIRD_PARTY.md and licenses. The software is provided without warranty.

About

See your ZSA Moonlander's keys and layers in an Omarchy overlay: live key and layer highlighting, tap and hold labels, and automatic discovery of the flashed Oryx layout.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages