You are not logged in.

#1 2015-05-11 14:47:38

forGGe
Member
From: Ukraine
Registered: 2014-06-12
Posts: 14

Setxkbmap and single layout mode

Hi everyone!

I have noticed that I can't use some hotkeys, like Ctrl-c or Ctrl-v (and many others) when I'm switching to the single 'ru' layout:

$ setxkbmap ru -model pc104

It happens since a produced keysym belongs to the cyrilic set:

$ xev -event keyboard | grep state
 ...
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    state 0x14, keycode 54 (keysym 0x6d3, Cyrillic_es), same_screen YES,

One of possible workaround that I have found is to set specific variant. Well... it simply fails:

$ setxkbmap ru -model pc104 -variant alt-int
Error loading new keyboard description

But when I'm adding another layout all seems work:

$ setxkbmap ru,us -model pc104 -variant alt-int

Keysyms are all valid in that case:

$ xev -event keyboard | grep state
 ...
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,

So I'm here to find out if it is a bug, or feature? Can someone please explain to me it? Since I can't find any references to this behavior.

Thanks,
Max


You play, you pay, you bastard.

Offline

#2 2015-05-11 14:58:54

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,422
Website

Re: Setxkbmap and single layout mode

Does it work without -model pc104 (and why do you add that option)?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2016-01-31 14:48:13

forGGe
Member
From: Ukraine
Registered: 2014-06-12
Posts: 14

Re: Setxkbmap and single layout mode

I saw it in https://wiki.archlinux.org/index.php/Ke … on_in_Xorg , so I thought: "why not?" smile

Nevertheless, even without model specified, log is the same:

$ setxkbmap ru
$ xev -event keyboard | grep state
...
    state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    state 0x4, keycode 54 (keysym 0x6d3, Cyrillic_es), same_screen YES,
    state 0x4, keycode 54 (keysym 0x6d3, Cyrillic_es), same_screen YES,
...

You play, you pay, you bastard.

Offline

Board footer

Powered by FluxBB