Меняем ctrl и alt местами

$ cat my.xkb
 
xkb_keymap {
    xkb_keycodes  { include "evdev+aliases(qwerty)"	};
    xkb_types     { include "complete"	};
    xkb_compat    { include "complete+ledcaps(group_lock)"	};
    xkb_geometry  { include "pc(pc105)"	};
    xkb_symbols "my" {
        include "pc+us+ru:2+inet(evdev)+group(toggle)+group(lctrl_toggle)+group(lctrl_rctrl_switch)+compose(rwin)"
        replace key <CAPS> {[ Alt_L, Meta_L]};
        replace key <LALT> {[Control_L]};
    };
};
 
$ xkbcomp my.xkb $DISPLAY

Добавить комментарий