setxkbmap을 사용하여 사용자 정의 키보드 레이아웃을 만들고 설정하고 싶습니다. ~/.xkb/symbols/yr
다음 내용으로 파일을 만들었습니다 .
partial default alphanumeric_keys
xkb_symbols "basic" {
name[Group1]= "European (Dvorak)";
key <TLDE> { [ grave, asciitilde, dead_breve, dead_abovering ] };
key <AE01> { [ 1, exclam, U2216, exclamdown ] };
key <AE02> { [ 2, at, dagger, doubledagger ] };
key <AE03> { [ 3, numbersign, function, sterling ] };
key <AE04> { [ 4, dollar, EuroSign, yen ] };
key <AE05> { [ 5, percent, permille, degree ] };
key <AE06> { [ 6, asciicircum, dead_circumflex, dead_caron ] };
key <AE07> { [ 7, ampersand, paragraph, section ] };
key <AE08> { [ 8, asterisk, ordfeminine, masculine ] };
key <AE09> { [ 9, parenleft, leftdoublequotemark, leftsinglequotemark ] };
key <AE10> { [ 0, parenright, rightdoublequotemark, rightsinglequotemark ] };
key <AE11> { [ bracketleft, braceleft, guillemotleft, U2039 ] };
key <AE12> { [ bracketright, braceright, guillemotright, U203A ] };
key <AD01> { [ apostrophe, quotedbl, aacute, Aacute ] };
key <AD02> { [ comma, less, oacute, Oacute ] };
key <AD03> { [ period, greater, eacute, Eacute ] };
key <AD04> { [ p, P, uacute, Uacute ] };
key <AD05> { [ y, Y, ycircumflex, Ycircumflex ] };
key <AD06> { [ f, F, ssharp, U1E9E ] };
key <AD07> { [ g, G, U01F9, U01F8 ] };
key <AD08> { [ c, C, ccedilla, Ccedilla ] };
key <AD09> { [ r, R, adiaeresis, Adiaeresis ] };
key <AD10> { [ l, L, oe, OE ] };
key <AD11> { [ slash, question, notsign, questiondown ] };
key <AD12> { [ equal, plus, multiply, division ] };
key <AC01> { [ a, A, acircumflex, Acircumflex ] };
key <AC02> { [ o, O, ocircumflex, Ocircumflex ] };
key <AC03> { [ e, E, ecircumflex, Ecircumflex ] };
key <AC04> { [ u, U, ucircumflex, Ucircumflex ] };
key <AC05> { [ i, I, icircumflex, Icircumflex ] };
key <AC06> { [ d, D, U1E11, U1E10 ] };
key <AC07> { [ h, H, dstroke, Eth ] };
key <AC08> { [ t, T, thorn, Thorn ] };
key <AC09> { [ n, N, ntilde, Ntilde ] };
key <AC10> { [ s, S, scedilla, Scedilla ] };
key <AC11> { [ minus, underscore, U2014, overline ] };
key <AB01> { [ semicolon, colon, agrave, Agrave ] };
key <AB02> { [ q, Q, ograve, Ograve ] };
key <AB03> { [ j, J, egrave, Egrave ] };
key <AB04> { [ k, K, ugrave, Ugrave ] };
key <AB05> { [ x, X, U0175, U0174 ] };
key <AB06> { [ b, B, iacute, Iacute ] };
key <AB07> { [ m, M, yacute, Yacute ] };
key <AB08> { [ w, W, oslash, Oslash ] };
key <AB09> { [ v, V, U1E8B, U1E8A ] };
key <AB10> { [ z, Z, U0225, U0224 ] };
key <AC12> { [ backslash, bar, ae, AE ] };
// key <JPCM> { [ ] }; // KPJPComma
// key <AE13> { [ ] }; // Yen
// key <I120> { [ ] }; // KEY_MACRO
// key <I149> { [ ] }; // KEY_SETUP
// key <I154> { [ ] }; // KEY_DELETEFILE
// key <I168> { [ ] }; // KEY_CLOSECD
// key <I178> { [ ] }; // KEY_ISO
// key <I183> { [ ] }; // KEY_MOVE
// key <I184> { [ ] }; // KEY_EDIT
// key <I217> { [ ] }; // KEY_BASSBOOST
// key <I219> { [ ] }; // KEY_HP
// key <I221> { [ ] }; // KEY_SOUND
// key <I222> { [ ] }; // KEY_QUESTION
// key <I230> { [ ] }; // KEY_ALTERASE
// key <I247> { [ ] }; // KEY_UWB
// key <I248> { [ ] }; // KEY_UNKNOWN
// key <I249> { [ ] }; // KEY_VIDEO_NEXT
// key <I250> { [ ] }; // KEY_VIDEO_PREV
// key <I251> { [ ] }; // KEY_BRIGHTNESS_CYCLE
// key <I252> { [ ] }; // KEY_BRIGHTNESS_ZERO
// key <I253> { [ ] }; // KEY_DISPLAY_OFF
// key <FK19> { [ ] }; // 197?
// key <FK24> { [ ] }; // 202?
include "level3(ralt_switch)"
include "level3(lwin_switch)"
};
로드했는데 setxkbmap -I ~/.xkb/ yr -print | xkbcomp -I$HOME/.xkb - $DISPLAY
제대로 작동하지만 xfce4-keyboard-settings에는 없습니다.
거기에 들어가려면 어떻게 해야 하나요?
내가 만든 파일이 ~/.xkb/rules/evdev.xml
효과가 없습니다.
<layout>
<configItem>
<name>yr</name>
<shortDescription>yr</shortDescription>
<description>European (European, Dvorak)</description>
<languageList>
<iso639Id>eur</iso639Id>
</languageList>
</configItem>
<variantList/>
</layout>
또한 이런 식으로 키보드 레이아웃을 설정하려고 하면 왜 오류가 발생합니까? :
[me@myComputer ~]$ setxkbmap -I ~/.xkb/ yr
Error loading new keyboard description
또 다른 이상한 점은 xkbcomp를 사용할 때 경고가 많이 나타난다는 것입니다.
[me@myComputer ~]$ setxkbmap -I ~/.xkb/ yr -print | xkbcomp -I$HOME/.xkb - $DISPLAY
Warning: Key <OUTP> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <KITG> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <KIDN> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <KIUP> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <RO> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I192> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I193> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I194> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I195> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I196> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: Key <I255> not found in evdev+aliases(qwerty) keycodes
Symbols ignored
Warning: No symbols defined for <AB11> (keycode 97)
Warning: No symbols defined for <JPCM> (keycode 103)
Warning: No symbols defined for <I120> (keycode 120)
Warning: No symbols defined for <AE13> (keycode 132)
Warning: No symbols defined for <I149> (keycode 149)
Warning: No symbols defined for <I154> (keycode 154)
Warning: No symbols defined for <I168> (keycode 168)
Warning: No symbols defined for <I178> (keycode 178)
Warning: No symbols defined for <I183> (keycode 183)
Warning: No symbols defined for <I184> (keycode 184)
Warning: No symbols defined for <FK19> (keycode 197)
Warning: No symbols defined for <FK24> (keycode 202)
Warning: No symbols defined for <I217> (keycode 217)
Warning: No symbols defined for <I219> (keycode 219)
Warning: No symbols defined for <I221> (keycode 221)
Warning: No symbols defined for <I222> (keycode 222)
Warning: No symbols defined for <I230> (keycode 230)
Warning: No symbols defined for <I247> (keycode 247)
Warning: No symbols defined for <I248> (keycode 248)
Warning: No symbols defined for <I249> (keycode 249)
Warning: No symbols defined for <I250> (keycode 250)
Warning: No symbols defined for <I251> (keycode 251)
Warning: No symbols defined for <I252> (keycode 252)
Warning: No symbols defined for <I253> (keycode 253)
답변1
xfce4 설정 관리자( Menu > Settings > Settings Manager
)를 열고 키보드 아이콘을 클릭한 후 Layout
탭으로 전환하고 선택을 취소한 Use system defaults
다음 추가 버튼을 클릭해 보세요!
/usr/share/X11/xkb/symbols/
이것이 작동하지 않으면 표시되도록 추가해야 할 수도 있습니다 .
행운을 빌어요!