Thomas De Schampheleire
2017-02-16 15:41:17 UTC
I have a problem related to key binding in the face of different
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?