You are not logged in.

#1 2014-11-17 17:43:57

zenolijo
Member
Registered: 2013-03-19
Posts: 36

[SOLVED] How do i set keymap properly in wayland?

So i have been playing around with the velox tiling wayland wm for a while now, but the only big annoyance has been that i've been unable to properly set the keymap to swedish.

loadkeys is only for vt's and doesn't apply.
setxkbmap fixes this issue, but only in applications running under xwayland.
On the wayland page on the wiki there is an example that shows how to do it on weston, but nothing else.

How does the windowmanager handle input under wayland?
I know it's libxkbmap under x11 but what on applications that run natively on wayland?

Last edited by zenolijo (2014-11-21 11:18:43)

Offline

#2 2014-11-17 18:14:59

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,772
Website

Re: [SOLVED] How do i set keymap properly in wayland?

I'm not sure about this myself, but see http://www.linuxfromscratch.org/~krejzi … eston.html for possible hints. I just searched for 'libinput keymap' in $SEARCHENGINE.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-11-18 21:42:12

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [SOLVED] How do i set keymap properly in wayland?

WorMzy wrote:

I'm not sure about this myself, but see http://www.linuxfromscratch.org/~krejzi … eston.html for possible hints. I just searched for 'libinput keymap' in $SEARCHENGINE.

This post also refers to the weston.ini config file which is just for weston.

Offline

#4 2014-11-18 22:13:36

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,772
Website

Re: [SOLVED] How do i set keymap properly in wayland?

Does velox not have a similar configuration file?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2014-11-18 22:17:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,362
Website

Re: [SOLVED] How do i set keymap properly in wayland?

zenolijo wrote:

So i have been playing around with the velox tiling wayland wm for a while now

AHH!  What's this?  Can you provide links?  This is what I've been calling my new X11 WM currently nearing a releasable state (a sibling to alopex).  EDIT: nevermind, it's in our wiki.  I didn't spot it after my first search.

Last edited by Trilby (2014-11-18 22:18:24)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2014-11-19 09:27:31

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [SOLVED] How do i set keymap properly in wayland?

WorMzy wrote:

Does velox not have a similar configuration file?

It does have a config file, but there's no example on how to change the layout in the default config so as far as i know it's not capable of changing the keyboard layout.

My question was if it was dependent on the wm/compositor or if it is a system wide configuration, but it seems like it's wm/compositor dependent.

Should i perhaps open up an issue on github then?

Trilby wrote:
zenolijo wrote:

So i have been playing around with the velox tiling wayland wm for a while now

AHH!  What's this?  Can you provide links?  This is what I've been calling my new X11 WM currently nearing a releasable state (a sibling to alopex).  EDIT: nevermind, it's in our wiki.  I didn't spot it after my first search.

I added the page a few days ago actually. It has been on the AUR for more than a year though.

https://wiki.archlinux.org/index.php/Velox

Offline

#7 2014-11-19 11:06:27

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,772
Website

Re: [SOLVED] How do i set keymap properly in wayland?

zenolijo wrote:
WorMzy wrote:

Does velox not have a similar configuration file?

It does have a config file, but there's no example on how to change the layout in the default config so as far as i know it's not capable of changing the keyboard layout.

My question was if it was dependent on the wm/compositor or if it is a system wide configuration, but it seems like it's wm/compositor dependent.

Should i perhaps open up an issue on github then?

I suppose so. If the reference compositor does it a particular way, then I assume that that's the way other compositors are supposed to do it too, at least for the time being.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2014-11-19 19:40:52

Earnestly
Member
Registered: 2011-08-18
Posts: 805

Re: [SOLVED] How do i set keymap properly in wayland?

XKB_DEFAULT_LAYOUT=gb
XKB_DEFAULT_OPTIONS=compose:ralt,ctrl:nocaps

Last edited by Earnestly (2014-11-21 12:11:55)

Offline

#9 2014-11-21 11:18:27

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [SOLVED] How do i set keymap properly in wayland?

Earnestly wrote:
XKB_DEFAULT_LAYOUT=uk
XKB_DEFAULT_OPTIONS=compose:ralt,ctrl:nocaps

Thanks alot! This works perfectly!

i simply wrote "export XKB_DEFAULT_LAYOUT=sv" for swedish before launching velox and it works just fine.

The tiling wayland wm loliwm has apparently had this on their readme file too https://github.com/Cloudef/loliwm.

Offline

Board footer

Powered by FluxBB