Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Wayland #2

Closed
jbriales opened this issue Jan 22, 2020 · 2 comments
Closed

Support for Wayland #2

jbriales opened this issue Jan 22, 2020 · 2 comments

Comments

@jbriales
Copy link

This is an awesome work, which seems awesomely documented (unlike many things around keyboard mapping land) :)
I did a similar work for mapping CapsLock myself in the past (https://github.com/jbriales/xkb-extended-keys) but that's strongly based on XKB and doesn't work on Wayland.

Cutting to the chase: What's the current status of Wayland support for this solution? :)

@exrok
Copy link
Owner

exrok commented Apr 23, 2020

I am currently using evdoublebind with sway (wayland) and I got it working on Gnome using wayland (WIP guide: https://github.com/exrok/evdoublebind/blob/master/guides/gnome.md ). All wayland environments that I am aware of actually still uses XKB for process/mapping keyboard. Further, I not aware of any work to move away from using XKB for wayland environments.

I intend to update/finish wayland documentation soon (along with add a couple more settings to the configuration system)

Some like desktop environments like Gnome don't let you specify custom XKB rules directly so you have to resort modifying the system XKB rules as I showed in the guide. This may have changes since I have not tried on Gnome in months.

I haven't tried but xkb-extended-keys should work with most wayland compositors if you where to modify the system level definitions which for me is in /usr/share/X11/xkb/ for both wayland and X11.

For sway when I am using evdoublebind I place the config in ~/.xkb/symbols/evdoublebind and then configure sway to use it with in the config.

input '*' xkb_rules evdev-doublebind
input '*' xkb_options evdoublebind:mapping

This script is basically the setup for sway https://github.com/exrok/evdoublebind/blob/master/examples/sway_example.sh

@jbriales
Copy link
Author

That answers the question fantastically. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants