Score:0

How to set keyboard layout when using sway?

ua flag

I am currently running sway 1.4 on Ubuntu 20.4. I would like to permanently switch from us X11 Layout to cz layout coder variant.

I found some posts like this one, where people describe how to do this on other distros. But when I tried some of the solutions they did not work for me. I think this might be distro-specific.

I also read [this manpage][2] and ran

sway input keyboard xkb_layout cz

which returned

[ { "success": true } ]

but the Czech layout has not been applied.

pevik avatar
pk flag
which man page do you mean?
Score:0
ua flag

Adding

 input * {
        xkb_layout "cz"
        xkb_variant "coder"
}

to my sway config ~/.config/i3/config did the trick.

Score:0
et flag

swaymsg input type:keyboard xkb_layout "cz" in terminal worked for me

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.