Использование пользовательской карты клавиатуры

1544
jpic

Я пытаюсь не перезаписывать / usr / share / X11 / symbols / us, даже думал, что делаю это годами.

Поэтому я добавил в ~ / xkb / jpic копию dvorak-alt-intl из / usr / share / X11 / symbols / us, поскольку над этим я буду работать:

default partial alphanumeric_keys xkb_symbols "dvorak-alt-intl" {  name[Group1]= "English (Dvorak alternative international no dead keys)";  include "us(dvorak)"  key <AE04> { [ 9, dollar, EuroSign ] };  key <AD02> { [ comma, less, adiaeresis, dead_caron ] }; key <AD03> { [ period, greater, ecircumflex, periodcentered ] }; key <AD04> { [ p, P, ediaeresis, dead_cedilla ] }; key <AD05> { [ y, Y, udiaeresis ] }; key <AD08> { [ c, C, ccedilla, dead_abovedot ] };  key <AC01> { [ a, A, agrave ] }; key <AC02> { [ o, O, ocircumflex ] }; key <AC03> { [ e, E, eacute ] }; key <AC04> { [ u, U, ucircumflex ] }; key <AC05> { [ i, I, icircumflex ] }; key <AC10> { [ s, S, ssharp ] };  key <AB01> { [ semicolon, colon, acircumflex ] }; key <AB02> { [ q, Q, odiaeresis, dead_ogonek ] }; key <AB03> { [ j, J, egrave, dead_doubleacute ] }; key <AB04> { [ k, K, ugrave ] }; key <AB05> { [ x, X, idiaeresis ] };  include "level3(ralt_switch)" }; 

Но это всегда терпит неудачу:

>>> setxkbmap -v 10 -I ~/xkb/ jpic dvorak-alt-intl  Setting verbose level to 10 locale is C Warning! Multiple definitions of keyboard layout Using command line, ignoring X server Warning! Multiple definitions of layout variant Using command line, ignoring X server Trying to load rules file ./rules/evdev... Trying to load rules file /usr/share/X11/xkb/rules/evdev... Success. Applied rules from evdev: rules: evdev model: evdev layout: jpic variant: dvorak-alt-intl Trying to build keymap using the following components: keycodes: evdev+aliases(qwerty) types: complete compat: complete symbols: pc+jpic(dvorak-alt-intl)+inet(evdev) geometry: pc(pc104) Error loading new keyboard description 
4

1 ответ на вопрос

0
Trudbert

Is it acceptable for you to do this by Xmodmap?

When you run xmodmap -pke > .Xmodmap it will generate a .Xmodmap file containing your current keyboard mapping in a format like keycode 57 = n N with a line for each keycode followed by the keysyms currently mapped to it by your layout and each column corresponing to a different modifier (so in this case 'n' with no modifier and 'N' when used with shift). You can edit your layout there and just run xmodmap .Xmodmap to activate it.

A short, helpful introduction can be found here

Это будет приемлемо, если ответ с использованием setxkbmap -I не отображается. Но в этом случае я сообщу об ошибке в xorg. Спасибо за ответы. jpic 12 лет назад 0

Похожие вопросы