xkb

A light wrapper over xkbcommon

Wrapper score 15/100 · tests present · no docs generated

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

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 T parameters with ptr types
  • [ ] init(t: typedesc[T]) style init functions
  • [ ] Potential higher level bindings: look into zig-xkbcommon and xkbcommon-rs