You are not logged in.

#1 2020-11-10 15:57:17

Vir
Member
Registered: 2020-11-08
Posts: 4

Switching keyboard layouts + shortcuts in non-latin layouts

Hi! I have three keyboard layouts (us, ru, fi) and want to make layout switching unique for every language. So far I found one solution: custom system keyboard shortcuts (Ctrl+1, Ctrl+2) with the following command:

setxkbmap -layout us

for the first layout etc.

The problem is, in the non-Latin layout (Russian in my case) global shortcuts, i.e. Ctrl+C, Ctrl+V don't work. They work if I switch layouts with the default Ctrl+Shift, but not after custom Ctrl+2.

The question: how should I modify command for global shortcut to make other shortcuts work with non-Latin layouts? Or is there any better solutions for separate layout switching shortcuts?

Offline

#2 2020-11-10 20:59:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,693

Re: Switching keyboard layouts + shortcuts in non-latin layouts

setxkbmap will generate an event that most clients will respond to by re-allocating shortcuts and there's no "C" in cyrillic - well… that's awkward ;-)
At least not on keycode 54.

Try https://aur.archlinux.org/packages/xkb-switch/ to cycle/select groups.

Sidenote: Ctrl+c/v (copy/paste) are typically not global shortcuts, but implemented in each client.
That's however not relevant here.

Offline

Board footer

Powered by FluxBB