xkb
A light wrapper over xkbcommon
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:25 |
Tags
Installation
nimble install xkb
choosenim install xkb
git clone https://github.com/j-james/nim-xkbcommon
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| xkb | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/j-james/nim-xkbcommon |
|---|---|
| Homepage | https://github.com/j-james/nim-xkbcommon |
| Registry Source | nimble_official |
README
nim-xkbcommon
A 1:1 Nim wrapper for libxkbcommon.
These bindings are currently quite C-like, and subject to cleanup in the future (though they do follow Nim naming conventions).
The keysyms.nim file in particular is nasty: Constants describing specific keyboard keys are pretty much the antithesis to style insensitivity.
Installation and Usage
nimble install xkb
Todo
- [ ] Write some tests
- [ ] Replace all the
ptr Tparameters with ptr types - [ ]
init(t: typedesc[T])style init functions - [ ] Potential higher level bindings: look into zig-xkbcommon and xkbcommon-rs