rust-windowing / xkeysym

X11 keyboard symbol utilities for Rust
Apache License 2.0
8 stars 4 forks source link

Tracking issue for making xkeysym the source of truth for X11 keyboard symbols #6

Open notgull opened 1 year ago

notgull commented 1 year ago

It was suggested to make this crate serve as a "source of truth" for keyboard symbols across the Rust GUI ecosystem (between X11 and Wayland). This issue serves as a tracking issue for all PRs/issues I file to do this.

Repositories to file PRs against

I'll file draft PRs at first to make sure the interface checks out in all cases. Once I'm sure that we have the API that we want, I'll release xkeysym version 1.0.0 and mark all of these as ready.

Other matters

It was discussed that this repository should be moved to be under either @Smithay or @rust-windowing. Not sure what the organization admins' thoughts on that are. Done! It's been moved to @rust-windowing

I'll also ping @psychon and @eduardosm, since you've both expressed interest in unifying the X11 ecosystem (re as-raw-xcb-connection).

pentamassiv commented 8 months ago

There is also https://gtk-rs.org/gtk3-rs/stable/latest/docs/gdk/keys/struct.Key.html, but since GTK is X11 and Wayland, I am not sure they'd want to switch.

notgull commented 8 months ago

Does GTK use X11 keysyms? If it does it's tempting to at least try

rtbo commented 8 months ago

Gtk-rs binds to the GDK keysyms. (code generation using gir)