[i3-discuss] Re: i3 bindsym does not respect keyboard layout

  • From: Ingo Bürk <admin@xxxxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Thu, 16 Feb 2017 16:45:51 +0100

Your expectation sounds correct to me. What does "i3 --version" say?

On 02/16/2017 04:41 PM, Thomas De Schampheleire wrote:

Hi,

I have a problem related to key binding in the face of different
keyboard layouts.
Essentially, even though I use 'bindsym', the physical key location of
a binding stays the same if I switch keyboard layout via xorg. My
understanding is that this should only happen when using 'bindcode'.

In more detail: in my config I have binding such as:

# split in vertical orientation
bindsym $mod+v split v

My xorg settings are:

      Option "XkbLayout" "us,us"
      Option "XkbVariant" "dvorak,"
      Option "XkbOptions" "grp:shifts_toggle,compose:ralt,caps:ctrl_modifier"

which means dvorak is the default layout, and qwerty is the second
layout reachable by pressing both shift keys.

With the above settings, I can correctly press mod+v to change the
split line of a window, in my default dvorak keyboard layout. The 'v'
is in the natural position of the dvorak layout.

However, when I switch keyboard layout to qwerty, then using mod+v
(with the 'v' position in qwerty) does NOT perform the same action. In
fact, in order to perform the same action, I need to press mod + the
key that is in the same physical location as 'v' in dvorak layout,
which is the period (.).

This is not the behavior I expect of 'bindsym'. My understanding is
that the binding should 'move' along with the logical location of 'v'
in the keyboard layout.

Is my expectation wrong?
Do you know how to fix or debug it?

Thanks,
Thomas



Other related posts: