Change keymap for ctrl shortcuts

David Förster david at dfoerster.de
Thu Jun 5 07:08:45 PDT 2008


Hi,

I'm using the dvorak keyboard layout which is great for typing but akward
for
shortcuts like Ctrl+c, Ctrl v.

So what I would like is to have one keymap for normal typing and another
keymap which is used whenever ctrl is pressed.

I managed to build my own grp:ctrl_switch option but the problem is that
the
Ctrl key is eaten by the mode switching while I want it to be still
recognized.

// ctrl keys switch
partial modifier_keys
xkb_symbols "ctrl_switch" {
  key <LCTL> {
    symbols[Group1] = [ Mode_switch, Multi_key ],
    virtualMods= LControl
    };
  key <RCTL> {
    symbols[Group1] = [ Mode_switch, Multi_key ],
    virtualMods= RControl
    };
};

Any help is appreciated.

- David




More information about the xorg mailing list