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

Add input.xkb_file option #403

Open
alexherbo2 opened this issue Feb 8, 2020 · 6 comments
Open

Add input.xkb_file option #403

alexherbo2 opened this issue Feb 8, 2020 · 6 comments
Labels
easy Issues that do not require knowledge about the whole codebase
Milestone

Comments

@alexherbo2
Copy link
Contributor

No description provided.

@alexherbo2 alexherbo2 changed the title Add input.xkb_file Add input.xkb_file option Feb 8, 2020
@ammen99
Copy link
Member

ammen99 commented Feb 9, 2020

Can you elaborate why this can be useful?

@ammen99 ammen99 closed this as completed Feb 9, 2020
@ammen99
Copy link
Member

ammen99 commented Feb 9, 2020

Oops. accidentally closed.

@ammen99 ammen99 reopened this Feb 9, 2020
@epsilon-0
Copy link
Contributor

Duplicate of #418

@ammen99 ammen99 added the easy Issues that do not require knowledge about the whole codebase label Oct 8, 2020
@travankor
Copy link
Contributor

travankor commented Dec 2, 2020

Not sure if this is a separate issue, but why does Wayfire's input section read libinput events instead of using the xkb keycodes like sway (and others?) do? This makes it easier to use different keyboard models without having to change configuration files.

For example, the chromebook xkb_model can use XF86AudioMute, which is portable across configs, as opposed to using KEY_F8, which isn't what you would use on a different machine.

Wayfire already uses libxkbcommon, so I wonder if there's any reason for the current behavior?

@ammen99
Copy link
Member

ammen99 commented Dec 2, 2020

Not sure if this is a separate issue, but why does Wayfire's input section read libinput events instead of using the xkb keycodes like sway (and others?) do? This makes it easier to use different keyboard models without having to change configuration files.

For example, the chromebook xkb_model can use XF86AudioMute, which is portable across configs, as opposed to using KEY_F8, which isn't what you would use on a different machine.

Wayfire already uses libxkbcommon, so I wonder if there's any reason for the current behavior?

There is a reason, by using the keycodes we can have bindings which work independently from the current layout (a problem when you have multiple languages). We could in theory have a separate xkb context with a separate set of options for bindings, however so far you are the first one to request that :)

@travankor
Copy link
Contributor

There is a reason, by using the keycodes we can have bindings which work independently from the current layout (a problem when you have multiple languages). We could in theory have a separate xkb context with a separate set of options for bindings, however so far you are the first one to request that :)

Sway has a --to-code flag that seems to be a good compromise for this. I haven't actually tried it, but it's only drawback afaict is that it expects to be started with the same layout every time. So sway can support both methods: layout independent and dependent.

Bindings to keysyms are layout-dependent. This can be changed with the --to-code flag. In this case, the keysyms will be translated into the corresponding keycodes in the first configured layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Issues that do not require knowledge about the whole codebase
Projects
None yet
Development

No branches or pull requests

4 participants