Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

[Feature Request] set kbmap per window #83

Open WLCIssuesBot opened 7 years ago

WLCIssuesBot commented 7 years ago

Issue by Unip0rn Sunday Jan 15, 2017 at 03:44 GMT Originally opened as https://github.com/Cloudef/wlc/issues/226


Idea is to make it possible to set kbmap to something different on different windows. Usecase is german writing where you will want to have german layout on maybe everything except where you code. So you get american layout for your editors and german for everything else (or similar) also translators might like it, when translating from russian to english (just an example) where they change the set of letters used.

WLCIssuesBot commented 7 years ago

Comment by LeonardKoenig Sunday Jan 15, 2017 at 11:14 GMT


Sure this is a nice idea, but as you just happened to mention German vs US layout, at least for that use-case there exists the us altgr-intl layout. You have a standard US layout but eg. type 'ü' with "Alt Gr" / "right Alt" + 'y'.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Sunday Jan 15, 2017 at 23:29 GMT


Doesn't IMEs already handle this?

WLCIssuesBot commented 7 years ago

Comment by gonzote Monday Jan 16, 2017 at 01:58 GMT


alternate use-case: games that provide no options for configuring keyboard controls could be customized by changing the layout. xkb already provides for a global list of layouts to switch through, but a layout specific to one program would just clutter up the global list.

this will probably be something that would need to wait until #6 is implemented anyway, and might be fairly easy depending on how that's done.

WLCIssuesBot commented 7 years ago

Comment by Cloudef Monday Jan 16, 2017 at 12:33 GMT


Yep solving #6 makes this possible. However IME's should already be able to do switching. Though there is no IME support for wayland native programs implemented yet, don't remember if the protocol for that was even in wayland-protocols.