You are not logged in.

#1 2024-01-08 10:57:04

kox
Member
Registered: 2015-05-01
Posts: 149

[SOLVED] How do I set the keymap in Wayland / Sway?

The Wayland wiki entry points to this article for keymap for both Xorg and Wayland: https://wiki.archlinux.org/title/Xorg/K … figuration I have tried setxbmap and it does not have an effect (why would it after all - if it's for X), possibly has an effect on xwayland apps of which I use none.

I have searched everywhere and I only found keyd - which seems somewhat of an overkill for what I want to do - I just want to load the standard keymap for a latin script language that has some extended characters which are normally typed with Alt+[key].  I'm looking for the most standard, simple solution. keyd is an aur package and may prove to be a maintenance hassle down the road.

Any recommendations? Thanks!

Last edited by kox (2024-01-08 14:01:33)

Offline

#2 2024-01-08 11:34:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,273

Re: [SOLVED] How do I set the keymap in Wayland / Sway?

xkb as in the format is not for X but a standard specification everyone supports. As for setting this on sway read the sway-input manpage https://man.archlinux.org/man/sway-inpu … FIGURATION and https://wiki.archlinux.org/title/Sway#Input_devices

Last edited by V1del (2024-01-08 11:36:32)

Offline

#3 2024-01-08 14:01:19

kox
Member
Registered: 2015-05-01
Posts: 149

Re: [SOLVED] How do I set the keymap in Wayland / Sway?

Thanks!

I got this working by adding the following to sway config:

input "type:keyboard" {
  xkb_layout *lang_code*
}

Offline

Board footer

Powered by FluxBB