rust-x-bindings / xkbcommon-rs

bindings and safe wrappers for libxkbcommon
MIT License
19 stars 24 forks source link

Re-Create libxkbcommon examples in xkbcommon-rs #7

Open insipx opened 7 years ago

insipx commented 7 years ago

I saw that rust-xcb has an examples/ directory, but xkbcommon-rs does not. However, you do have a toy-xcb repository that is really useful, however, I couldn't find the quick start libxkbcommon example (https://github.com/xkbcommon/libxkbcommon/blob/master/doc/quick-guide.md) and the x11/xcb version: https://github.com/xkbcommon/libxkbcommon/blob/master/test/interactive-x11.c#L24

I think it would be a good addition to xkbcommon-rs. The toy-xcb is really useful, but I always like cross-referencing code with the original library to how it looks with library bindings in another language.

I could work on this (at least the X11 example, dunno about the evdev and wayland ones), if you (@rtbo) think it's a good idea.

rtbo commented 7 years ago

Sure, it is a good idea. I can handle the wayland one using wayland-d. I'm only missing time!