From 3d534c36b1f423ee98c17efe57ab560096f60eb1 Mon Sep 17 00:00:00 2001 From: Diego Nieto Cid Date: Wed, 6 Apr 2011 16:14:34 -0300 Subject: Remove default keymap. * console-client/xkb/default.xkb: Removed file. * console-client/xkb/makeconf.sh: Likewise. * console-client/xkb/xkbdefaults.c: Likewise. * console-client/xkb/parser.y(parse_xkbconfig): Don't use harcoded defaults, return error when no keymap file is given. --- console-client/Makefile | 5 +- console-client/xkb/default.xkb | 1316 ------------------------------------- console-client/xkb/makeconf.sh | 26 - console-client/xkb/parser.y | 19 +- console-client/xkb/xkbdefaults.c | 1318 -------------------------------------- 5 files changed, 5 insertions(+), 2679 deletions(-) delete mode 100644 console-client/xkb/default.xkb delete mode 100644 console-client/xkb/makeconf.sh delete mode 100644 console-client/xkb/xkbdefaults.c diff --git a/console-client/Makefile b/console-client/Makefile index 6fb96275..7629e06a 100644 --- a/console-client/Makefile +++ b/console-client/Makefile @@ -55,7 +55,7 @@ XKB_DATA_FILES = keymap/hurd types/hurd symbols/hurd CPPFLAGS += -DQUAERENDO_INVENIETIS DIST_FILES = xkb/HACKING xkb/MISSING-FEATURES xkb/README xkb/TODO \ - xkb/default.xkb xkb/makeconf.sh xkb/kstoucs_map.sh \ + xkb/kstoucs_map.sh \ $(addprefix xkb/xkb-data/, $(XKB_DATA_FILES)) include ../Makeconf @@ -112,8 +112,7 @@ parser.tab.h: parser.y fi XKB_SRCS = xkb/compose.c xkb/kstoucs.c xkb/parser.y xkb/lex.l \ - xkb/xkb.c xkb/xkbdata.c xkb/xkbdefaults.c \ - xkb/xkbtimer.c + xkb/xkb.c xkb/xkbdata.c xkb/xkbtimer.c ifeq ($(HAVE_X11),yes) XKB_UNITS = $(basename $(notdir $(XKB_SRCS))) pc_kbd.so.$(hurd-version): $(addsuffix _pic.o,$(XKB_UNITS)) diff --git a/console-client/xkb/default.xkb b/console-client/xkb/default.xkb deleted file mode 100644 index 64f5c1fc..00000000 --- a/console-client/xkb/default.xkb +++ /dev/null @@ -1,1316 +0,0 @@ -xkb_keymap { -xkb_keycodes "xfree86" { - minimum = 8; - maximum = 255; - = 9; - = 10; - = 11; - = 12; - = 13; - = 14; - = 15; - = 16; - = 17; - = 18; - = 19; - = 20; - = 21; - = 22; - = 23; - = 24; - = 25; - = 26; - = 27; - = 28; - = 29; - = 30; - = 31; - = 32; - = 33; - = 34; - = 35; - = 36; - = 37; - = 38; - = 39; - = 40; - = 41; - = 42; - = 43; - = 44; - = 45; - = 46; - = 47; - = 48; - = 49; - = 50; - = 51; - = 52; - = 53; - = 54; - = 55; - = 56; - = 57; - = 58; - = 59; - = 60; - = 61; - = 62; - = 63; - = 64; - = 65; - = 66; - = 67; - = 68; - = 69; - = 70; - = 71; - = 72; - = 73; - = 74; - = 75; - = 76; - = 77; - = 78; - = 79; - = 80; - = 81; - = 82; - = 83; - = 84; - = 85; - = 86; - = 87; - = 88; - = 89; - = 90; - = 91; - = 92; - = 94; - = 95; - = 96; - = 97; - = 98; - = 99; - = 100; - = 102; - = 103; - = 104; - = 105; - = 106; - = 107; - = 108; - = 109; - = 110; - = 111; - = 112; - = 113; - = 114; - = 115; - = 116; - = 117; - = 118; - = 119; - = 120; - = 121; - = 122; - = 123; - = 129; - = 130; - = 131; - = 132; - = 133; - = 134; - = 135; - = 136; - = 137; - = 138; - = 139; - = 140; - = 141; - = 142; - = 143; - = 144; - = 145; - = 146; - = 147; - = 148; - = 149; - = 150; - = 151; - = 152; - = 153; - = 154; - = 155; - = 158; - = 159; - = 160; - = 161; - = 162; - = 163; - = 164; - = 165; - = 166; - = 167; - = 168; - = 169; - = 171; - = 172; - = 173; - = 174; - = 175; - = 176; - = 177; - = 178; - = 179; - = 180; - = 185; - = 186; - = 187; - = 188; - = 194; - = 195; - = 196; - = 197; - = 202; - = 212; - = 213; - = 214; - = 215; - = 216; - = 217; - = 218; - = 222; - = 223; - = 224; - = 225; - = 226; - = 227; - = 228; - = 229; - = 230; - = 231; - = 232; - = 233; - = 234; - = 235; - = 236; - = 237; - = 238; - = 239; - = 240; - = 241; - = 242; - = 243; - = 244; - = 245; - = 246; - = 247; - = 248; - = 249; - = 250; - = 251; - = 252; - = 253; - = 254; - = 255; - indicator 1 = "Caps Lock"; - indicator 2 = "Num Lock"; - indicator 3 = "Scroll Lock"; - virtual indicator 4 = "Shift Lock"; - virtual indicator 5 = "Group 2"; - virtual indicator 6 = "Mouse Keys"; - alias = ; - alias = ; - alias = ; - alias = ; - alias = ; -}; - -xkb_types "complete" { - - virtual_modifiers NumLock,Alt,LevelThree,AltGr,ScrollLock; - - type "ONE_LEVEL" { - modifiers= none; - level_name[Level1]= "Any"; - }; - type "TWO_LEVEL" { - modifiers= Shift; - map[Shift]= Level2; - level_name[Level1]= "Base"; - level_name[Level2]= "Shift"; - }; - type "ALPHABETIC" { - modifiers= Shift+Lock; - map[Shift]= Level2; - map[Lock]= Level1; - preserve[Lock]= Lock; - level_name[Level1]= "Base"; - level_name[Level2]= "Caps"; - }; - type "KEYPAD" { - modifiers= Shift+NumLock; - map[Shift]= Level2; - map[NumLock]= Level2; - level_name[Level1]= "Base"; - level_name[Level2]= "Number"; - }; - type "SHIFT+ALT" { - modifiers= Shift+Alt; - map[Shift+Alt]= Level2; - level_name[Level1]= "Base"; - level_name[Level2]= "Shift+Alt"; - }; - type "PC_BREAK" { - modifiers= Control; - map[Control]= Level2; - level_name[Level1]= "Base"; - level_name[Level2]= "Control"; - }; - type "PC_SYSRQ" { - modifiers= Alt; - map[Alt]= Level2; - level_name[Level1]= "Base"; - level_name[Level2]= "Alt"; - }; - type "CTRL+ALT" { - modifiers= Control+Alt; - map[Control+Alt]= Level2; - level_name[Level1]= "Base"; - level_name[Level2]= "Ctrl+Alt"; - }; - type "THREE_LEVEL" { - modifiers= Shift+LevelThree; - map[Shift]= Level2; - map[LevelThree]= Level3; - map[Shift+LevelThree]= Level3; - level_name[Level1]= "Base"; - level_name[Level2]= "Shift"; - level_name[Level3]= "Level3"; - }; - type "FOUR_LEVEL" { - modifiers= Shift+LevelThree; - map[Shift]= Level2; - map[LevelThree]= Level3; - map[Shift+LevelThree]= Level4; - level_name[Level1]= "Base"; - level_name[Level2]= "Shift"; - level_name[Level3]= "Alt Base"; - level_name[Level4]= "Shift Alt"; - }; - type "FOUR_LEVEL_KEYPAD" { - modifiers= Shift+NumLock+LevelThree; - map[Shift]= Level2; - map[NumLock]= Level2; - map[LevelThree]= Level3; - map[Shift+LevelThree]= Level4; - map[NumLock+LevelThree]= Level4; - map[Shift+NumLock+LevelThree]= Level3; - level_name[Level1]= "Base"; - level_name[Level2]= "Number"; - level_name[Level3]= "Alt Base"; - level_name[Level4]= "Alt Number"; - }; -}; - -xkb_compatibility "complete" { - - virtual_modifiers NumLock,Alt,LevelThree,AltGr,ScrollLock; - - interpret.useModMapMods= AnyLevel; - interpret.repeat= False; - interpret.locking= False; - interpret ISO_Level2_Latch+Exactly(Shift) { - useModMapMods=level1; - action= LatchMods(modifiers=Shift,clearLocks,latchToLock); - }; - interpret Shift_Lock+AnyOf(Shift+Lock) { - action= LockMods(modifiers=Shift); - }; - interpret Num_Lock+AnyOf(all) { - virtualModifier= NumLock; - action= LockMods(modifiers=NumLock); - }; - interpret ISO_Lock+AnyOf(all) { - action= ISOLock(modifiers=modMapMods,affect=all); - }; - interpret ISO_Level3_Shift+AnyOf(all) { - virtualModifier= LevelThree; - useModMapMods=level1; - action= SetMods(modifiers=LevelThree,clearLocks); - }; - interpret ISO_Level3_Latch+AnyOf(all) { - virtualModifier= LevelThree; - useModMapMods=level1; - action= LatchMods(modifiers=LevelThree,clearLocks,latchToLock); - }; - interpret Alt_L+AnyOf(all) { - virtualModifier= Alt; - action= SetMods(modifiers=modMapMods,clearLocks); - }; - interpret Alt_R+AnyOf(all) { - virtualModifier= Alt; - action= SetMods(modifiers=modMapMods,clearLocks); - }; - interpret Scroll_Lock+AnyOf(all) { - virtualModifier= ScrollLock; - action= LockMods(modifiers=modMapMods); - }; - interpret Mode_switch+AnyOfOrNone(all) { - virtualModifier= AltGr; - useModMapMods=level1; - action= SetGroup(group=+1); - }; - interpret ISO_Group_Latch+AnyOfOrNone(all) { - virtualModifier= AltGr; - useModMapMods=level1; - action= LatchGroup(group=2); - }; - interpret ISO_Next_Group+AnyOfOrNone(all) { - virtualModifier= AltGr; - useModMapMods=level1; - action= LockGroup(group=+1); - }; - interpret ISO_Prev_Group+AnyOfOrNone(all) { - virtualModifier= AltGr; - useModMapMods=level1; - action= LockGroup(group=-1); - }; - interpret ISO_First_Group+AnyOfOrNone(all) { - action= LockGroup(group=1); - }; - interpret ISO_Last_Group+AnyOfOrNone(all) { - action= LockGroup(group=2); - }; - interpret KP_1+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=-1,y=+1); - }; - interpret KP_End+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=-1,y=+1); - }; - interpret KP_2+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+0,y=+1); - }; - interpret KP_Down+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+0,y=+1); - }; - interpret KP_3+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+1,y=+1); - }; - interpret KP_Next+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+1,y=+1); - }; - interpret KP_4+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=-1,y=+0); - }; - interpret KP_Left+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=-1,y=+0); - }; - interpret KP_6+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+1,y=+0); - }; - interpret KP_Right+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+1,y=+0); - }; - interpret KP_7+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=-1,y=-1); - }; - interpret KP_Home+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=-1,y=-1); - }; - interpret KP_8+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+0,y=-1); - }; - interpret KP_Up+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+0,y=-1); - }; - interpret KP_9+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+1,y=-1); - }; - interpret KP_Prior+AnyOfOrNone(all) { - repeat= True; - action= MovePtr(x=+1,y=-1); - }; - interpret KP_5+AnyOfOrNone(all) { - repeat= True; - action= PtrBtn(button=default); - }; - interpret KP_Begin+AnyOfOrNone(all) { - repeat= True; - action= PtrBtn(button=default); - }; - interpret KP_F2+AnyOfOrNone(all) { - repeat= True; - action= SetPtrDflt(affect=button,button=1); - }; - interpret KP_Divide+AnyOfOrNone(all) { - repeat= True; - action= SetPtrDflt(affect=button,button=1); - }; - interpret KP_F3+AnyOfOrNone(all) { - repeat= True; - action= SetPtrDflt(affect=button,button=2); - }; - interpret KP_Multiply+AnyOfOrNone(all) { - repeat= True; - action= SetPtrDflt(affect=button,button=2); - }; - interpret KP_F4+AnyOfOrNone(all) { - repeat= True; - action= SetPtrDflt(affect=button,button=3); - }; - interpret KP_Subtract+AnyOfOrNone(all) { - repeat= True; - action= SetPtrDflt(affect=button,button=3); - }; - interpret KP_Separator+AnyOfOrNone(all) { - repeat= True; - action= PtrBtn(button=default,count=2); - }; - interpret KP_Add+AnyOfOrNone(all) { - repeat= True; - action= PtrBtn(button=default,count=2); - }; - interpret KP_0+AnyOfOrNone(all) { - repeat= True; - action= LockPtrBtn(button=default,affect=lock); - }; - interpret KP_Insert+AnyOfOrNone(all) { - repeat= True; - action= LockPtrBtn(button=default,affect=lock); - }; - interpret KP_Decimal+AnyOfOrNone(all) { - repeat= True; - action= LockPtrBtn(button=default,affect=unlock); - }; - interpret KP_Delete+AnyOfOrNone(all) { - repeat= True; - action= LockPtrBtn(button=default,affect=unlock); - }; - interpret Pointer_Button_Dflt+AnyOfOrNone(all) { - action= PtrBtn(button=default); - }; - interpret Pointer_Button1+AnyOfOrNone(all) { - action= PtrBtn(button=1); - }; - interpret Pointer_Button2+AnyOfOrNone(all) { - action= PtrBtn(button=2); - }; - interpret Pointer_Button3+AnyOfOrNone(all) { - action= PtrBtn(button=3); - }; - interpret Pointer_DblClick_Dflt+AnyOfOrNone(all) { - action= PtrBtn(button=default,count=2); - }; - interpret Pointer_DblClick1+AnyOfOrNone(all) { - action= PtrBtn(button=1,count=2); - }; - interpret Pointer_DblClick2+AnyOfOrNone(all) { - action= PtrBtn(button=2,count=2); - }; - interpret Pointer_DblClick3+AnyOfOrNone(all) { - action= PtrBtn(button=3,count=2); - }; - interpret Pointer_Drag_Dflt+AnyOfOrNone(all) { - action= LockPtrBtn(button=default,affect=both); - }; - interpret Pointer_Drag1+AnyOfOrNone(all) { - action= LockPtrBtn(button=1,affect=both); - }; - interpret Pointer_Drag2+AnyOfOrNone(all) { - action= LockPtrBtn(button=2,affect=both); - }; - interpret Pointer_Drag3+AnyOfOrNone(all) { - action= LockPtrBtn(button=3,affect=both); - }; - interpret Pointer_EnableKeys+AnyOfOrNone(all) { - action= LockControls(controls=MouseKeys); - }; - interpret Pointer_Accelerate+AnyOfOrNone(all) { - action= LockControls(controls=MouseKeysAccel); - }; - interpret Pointer_DfltBtnNext+AnyOfOrNone(all) { - action= SetPtrDflt(affect=button,button=+1); - }; - interpret Pointer_DfltBtnPrev+AnyOfOrNone(all) { - action= SetPtrDflt(affect=button,button=-1); - }; - interpret AccessX_Enable+AnyOfOrNone(all) { - action= LockControls(controls=AccessXKeys); - }; - interpret AccessX_Feedback_Enable+AnyOfOrNone(all) { - action= LockControls(controls=AccessXFeedback); - }; - interpret RepeatKeys_Enable+AnyOfOrNone(all) { - action= LockControls(controls=RepeatKeys); - }; - interpret SlowKeys_Enable+AnyOfOrNone(all) { - action= LockControls(controls=SlowKeys); - }; - interpret BounceKeys_Enable+AnyOfOrNone(all) { - action= LockControls(controls=BounceKeys); - }; - interpret StickyKeys_Enable+AnyOfOrNone(all) { - action= LockControls(controls=StickyKeys); - }; - interpret MouseKeys_Enable+AnyOfOrNone(all) { - action= LockControls(controls=MouseKeys); - }; - interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) { - action= LockControls(controls=MouseKeysAccel); - }; - interpret Overlay1_Enable+AnyOfOrNone(all) { - action= LockControls(controls=Overlay1); - }; - interpret Overlay2_Enable+AnyOfOrNone(all) { - action= LockControls(controls=Overlay2); - }; - interpret AudibleBell_Enable+AnyOfOrNone(all) { - action= LockControls(controls=AudibleBell); - }; - interpret Terminate_Server+AnyOfOrNone(all) { - action= Terminate(); - }; - interpret Any+Exactly(Lock) { - action= LockMods(modifiers=Lock); - }; - interpret Any+AnyOf(all) { - action= SetMods(modifiers=modMapMods,clearLocks); - }; - group 2 = AltGr; - group 3 = AltGr; - group 4 = AltGr; - indicator "Caps Lock" { - !allowExplicit; - whichModState= locked; - modifiers= Lock; - }; - indicator "Num Lock" { - !allowExplicit; - whichModState= locked; - modifiers= NumLock; - }; - indicator "Scroll Lock" { - whichModState= locked; - modifiers= ScrollLock; - }; - indicator "Shift Lock" { - !allowExplicit; - whichModState= locked; - modifiers= Shift; - }; - indicator "Group 2" { - !allowExplicit; - groups= 0xfe; - }; - indicator "Mouse Keys" { - indicatorDrivesKeyboard; - controls= mouseKeys; - }; -}; - -xkb_symbols "en_US(pc104)" { - - name[group1]="US/ASCII"; - name[group2]="ISO9995-3"; - - key { [ Escape ] }; - key { - symbols[Group1]= [ 1, exclam ], - symbols[Group2]= [ onesuperior, exclamdown ] - }; - key { - symbols[Group1]= [ 2, at ], - symbols[Group2]= [ twosuperior, oneeighth ] - }; - key { - symbols[Group1]= [ 3, numbersign ], - symbols[Group2]= [ threesuperior, sterling ] - }; - key { - symbols[Group1]= [ 4, dollar ], - symbols[Group2]= [ onequarter, dollar ] - }; - key { - symbols[Group1]= [ 5, percent ], - symbols[Group2]= [ onehalf, threeeighths ] - }; - key { - symbols[Group1]= [ 6, asciicircum ], - symbols[Group2]= [ threequarters, fiveeighths ] - }; - key { - symbols[Group1]= [ 7, ampersand ], - symbols[Group2]= [ braceleft, seveneighths ] - }; - key { - symbols[Group1]= [ 8, asterisk ], - symbols[Group2]= [ bracketleft, trademark ] - }; - key { - symbols[Group1]= [ 9, parenleft ], - symbols[Group2]= [ bracketright, plusminus ] - }; - key { - symbols[Group1]= [ 0, parenright ], - symbols[Group2]= [ braceright, degree ] - }; - key { - symbols[Group1]= [ minus, underscore ], - symbols[Group2]= [ backslash, questiondown ] - }; - key { - symbols[Group1]= [ equal, plus ], - symbols[Group2]= [ dead_cedilla, dead_ogonek ] - }; - key { [ BackSpace ] }; - key { [ Tab, ISO_Left_Tab ] }; - key { - symbols[Group1]= [ q, Q ], - symbols[Group2]= [ at, Greek_OMEGA ] - }; - key { - symbols[Group1]= [ w, W ], - symbols[Group2]= [ lstroke, Lstroke ] - }; - key { - symbols[Group1]= [ e, E ], - symbols[Group2]= [ EuroSign ] - }; - key { - symbols[Group1]= [ r, R ], - symbols[Group2]= [ paragraph, registered ] - }; - key { - symbols[Group1]= [ t, T ], - symbols[Group2]= [ tslash, Tslash ] - }; - key { - symbols[Group1]= [ y, Y ], - symbols[Group2]= [ leftarrow, yen ] - }; - key { - symbols[Group1]= [ u, U ], - symbols[Group2]= [ downarrow, uparrow ] - }; - key { - symbols[Group1]= [ i, I ], - symbols[Group2]= [ rightarrow, idotless ] - }; - key { - symbols[Group1]= [ o, O ], - symbols[Group2]= [ oslash, Ooblique ] - }; - key { - symbols[Group1]= [ p, P ], - symbols[Group2]= [ thorn, THORN ] - }; - key { - symbols[Group1]= [ bracketleft, braceleft ], - symbols[Group2]= [ dead_diaeresis, dead_abovering ] - }; - key { - symbols[Group1]= [ bracketright, braceright ], - symbols[Group2]= [ dead_tilde, dead_macron ] - }; - key { [ Return ] }; - key { - symbols[Group1]= [ Control_L ], - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ] - }; - key { - symbols[Group1]= [ a, A ], - symbols[Group2]= [ ae, AE ] - }; - key { - symbols[Group1]= [ s, S ], - symbols[Group2]= [ ssharp, section ] - }; - key { - symbols[Group1]= [ d, D ], - symbols[Group2]= [ eth, ETH ] - }; - key { - symbols[Group1]= [ f, F ], - symbols[Group2]= [ dstroke, ordfeminine ] - }; - key { - symbols[Group1]= [ g, G ], - symbols[Group2]= [ eng, ENG ] - }; - key { - symbols[Group1]= [ h, H ], - symbols[Group2]= [ hstroke, Hstroke ] - }; - key { [ j, J ] }; - key { - symbols[Group1]= [ k, K ], - symbols[Group2]= [ kra, ampersand ] - }; - key { - symbols[Group1]= [ l, L ], - symbols[Group2]= [ lstroke, Lstroke ] - }; - key { - symbols[Group1]= [ semicolon, colon ], - symbols[Group2]= [ dead_acute, dead_doubleacute ] - }; - key { - symbols[Group1]= [ apostrophe, quotedbl ], - symbols[Group2]= [ dead_circumflex, dead_caron ] - }; - key { - symbols[Group1]= [ grave, asciitilde ], - symbols[Group2]= [ notsign ] - }; - key { - symbols[Group1]= [ Shift_L ], - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ] - }; - key { - symbols[Group1]= [ backslash, bar ], - symbols[Group2]= [ dead_grave, dead_breve ] - }; - key { - symbols[Group1]= [ z, Z ], - symbols[Group2]= [ guillemotleft, less ] - }; - key { - symbols[Group1]= [ x, X ], - symbols[Group2]= [ guillemotright, greater ] - }; - key { - symbols[Group1]= [ c, C ], - symbols[Group2]= [ cent, copyright ] - }; - key { - symbols[Group1]= [ v, V ], - symbols[Group2]= [ leftdoublequotemark, grave ] - }; - key { - symbols[Group1]= [ b, B ], - symbols[Group2]= [ rightdoublequotemark, apostrophe ] - }; - key { [ n, N ] }; - key { - symbols[Group1]= [ m, M ], - symbols[Group2]= [ mu, masculine ] - }; - key { - symbols[Group1]= [ comma, less ], - symbols[Group2]= [ horizconnector, multiply ] - }; - key { - symbols[Group1]= [ period, greater ], - symbols[Group2]= [ periodcentered, division ] - }; - key { - symbols[Group1]= [ slash, question ], - symbols[Group2]= [ dead_belowdot, dead_abovedot ] - }; - key { - symbols[Group1]= [ Shift_R ], - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ] - }; - key { - symbols[Group1]= [ KP_Multiply ], - actions[Group1]= [ SetPtrDflt(affect=button,button=2) ] - }; - key { - symbols[Group1]= [ Alt_L, Meta_L ], - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks), SetMods(modifiers=modMapMods,clearLocks) ] - }; - key { [ space ] }; - key { - symbols[Group1]= [ Caps_Lock ], - actions[Group1]= [ LockMods(modifiers=Lock) ] - }; - key { [ F1 ] }; - key { [ F2 ] }; - key { [ F3 ] }; - key { [ F4 ] }; - key { [ F5 ] }; - key { [ F6 ] }; - key { [ F7 ] }; - key { [ F8 ] }; - key { [ F9 ] }; - key { [ F10 ] }; - key { - symbols[Group1]= [ Num_Lock, Pointer_EnableKeys ], - actions[Group1]= [ LockMods(modifiers=NumLock), LockControls(controls=MouseKeys) ] - }; - key { - symbols[Group1]= [ Scroll_Lock ], - actions[Group1]= [ LockMods(modifiers=modMapMods) ] - }; - key { - symbols[Group1]= [ KP_Home, KP_7 ], - actions[Group1]= [ MovePtr(x=-1,y=-1), MovePtr(x=-1,y=-1) ] - }; - key { - symbols[Group1]= [ KP_Up, KP_8 ], - actions[Group1]= [ MovePtr(x=+0,y=-1), MovePtr(x=+0,y=-1) ] - }; - key { - symbols[Group1]= [ KP_Prior, KP_9 ], - actions[Group1]= [ MovePtr(x=+1,y=-1), MovePtr(x=+1,y=-1) ] - }; - key { - symbols[Group1]= [ KP_Subtract ], - actions[Group1]= [ SetPtrDflt(affect=button,button=3) ] - }; - key { - symbols[Group1]= [ KP_Left, KP_4 ], - actions[Group1]= [ MovePtr(x=-1,y=+0), MovePtr(x=-1,y=+0) ] - }; - key { - symbols[Group1]= [ KP_Begin, KP_5 ], - actions[Group1]= [ PtrBtn(button=default), PtrBtn(button=default) ] - }; - key { - symbols[Group1]= [ KP_Right, KP_6 ], - actions[Group1]= [ MovePtr(x=+1,y=+0), MovePtr(x=+1,y=+0) ] - }; - key { - symbols[Group1]= [ KP_Add ], - actions[Group1]= [ PtrBtn(button=default,count=2) ] - }; - key { - symbols[Group1]= [ KP_End, KP_1 ], - actions[Group1]= [ MovePtr(x=-1,y=+1), MovePtr(x=-1,y=+1) ] - }; - key { - symbols[Group1]= [ KP_Down, KP_2 ], - actions[Group1]= [ MovePtr(x=+0,y=+1), MovePtr(x=+0,y=+1) ] - }; - key { - symbols[Group1]= [ KP_Next, KP_3 ], - actions[Group1]= [ MovePtr(x=+1,y=+1), MovePtr(x=+1,y=+1) ] - }; - key { - symbols[Group1]= [ KP_Insert, KP_0 ], - actions[Group1]= [ LockPtrBtn(button=default,affect=lock), LockPtrBtn(button=default,affect=lock) ] - }; - key { - symbols[Group1]= [ KP_Delete, KP_Decimal ], - actions[Group1]= [ LockPtrBtn(button=default,affect=unlock), LockPtrBtn(button=default,affect=unlock) ] - }; - key { - type= "PC_SYSRQ", - symbols[Group1]= [ Print, Sys_Req ] - }; - key { [ F11 ] }; - key { [ F12 ] }; - key { [ Home ] }; - key { [ Up ] }; - key { [ Prior ] }; - key { [ Left ] }; - key { [ Right ] }; - key { [ End ] }; - key { [ Down ] }; - key { [ Next ] }; - key { [ Insert ] }; - key { [ Delete ] }; - key { [ KP_Enter ] }; - key { - symbols[Group1]= [ Control_R ], - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ] - }; - key { - type= "PC_BREAK", - symbols[Group1]= [ Pause, Break ] - }; - key { - type= "PC_SYSRQ", - symbols[Group1]= [ Print, Sys_Req ] - }; - key { - symbols[Group1]= [ KP_Divide ], - actions[Group1]= [ SetPtrDflt(affect=button,button=1) ] - }; - key { - symbols[Group1]= [ Mode_switch ], - actions[Group1]= [ SetGroup(group=+1) ] - }; - key { - type= "PC_BREAK", - symbols[Group1]= [ Pause, Break ] - }; - key { - symbols[Group1]= [ Super_L ], - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ] - }; - key { [ Multi_key ] }; - key { [ Menu ] }; - modifier_map Control { }; - modifier_map Shift { }; - modifier_map Shift { }; - modifier_map Mod1 { }; - modifier_map Lock { }; - modifier_map Mod2 { }; - modifier_map Mod5 { }; - modifier_map Control { }; - modifier_map Mod3 { }; - modifier_map Mod4 { }; -}; - -xkb_geometry "pc(pc104)" { - - width= 470; - height= 210; - - alias = ; - alias = ; - - baseColor= "white"; - labelColor= "black"; - xfont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; - description= "Generic 104"; - - shape "NORM" { - corner= 1, - { [ 18, 18 ] }, - { [ 2, 1 ], [ 16, 16 ] } - }; - shape "BKSP" { - corner= 1, - { [ 38, 18 ] }, - { [ 2, 1 ], [ 36, 16 ] } - }; - shape "TABK" { - corner= 1, - { [ 28, 18 ] }, - { [ 2, 1 ], [ 26, 16 ] } - }; - shape "BKSL" { - corner= 1, - { [ 28, 18 ] }, - { [ 2, 1 ], [ 26, 16 ] } - }; - shape "RTRN" { - corner= 1, - { [ 42, 18 ] }, - { [ 2, 1 ], [ 40, 16 ] } - }; - shape "CAPS" { - corner= 1, - { [ 33, 18 ] }, - { [ 2, 1 ], [ 31, 16 ] } - }; - shape "LFSH" { - corner= 1, - { [ 42, 18 ] }, - { [ 2, 1 ], [ 40, 16 ] } - }; - shape "RTSH" { - corner= 1, - { [ 52, 18 ] }, - { [ 2, 1 ], [ 50, 16 ] } - }; - shape "MODK" { - corner= 1, - { [ 27, 18 ] }, - { [ 2, 1 ], [ 25, 16 ] } - }; - shape "SMOD" { - corner= 1, - { [ 23, 18 ] }, - { [ 2, 1 ], [ 21, 16 ] } - }; - shape "SPCE" { - corner= 1, - { [ 113, 18 ] }, - { [ 2, 1 ], [ 111, 16 ] } - }; - shape "KP0" { - corner= 1, - { [ 37, 18 ] }, - { [ 2, 1 ], [ 35, 16 ] } - }; - shape "KPAD" { - corner= 1, - { [ 18, 37 ] }, - { [ 2, 1 ], [ 16, 35 ] } - }; - shape "LEDS" { { [ 75, 20 ] } }; - shape "LED" { { [ 5, 1 ] } }; - section "Function" { - key.color= "grey20"; - priority= 7; - top= 52; - left= 19; - width= 351; - height= 19; - row { - top= 1; - left= 1; - keys { - { , "NORM", 1 }, - { , "NORM", 20, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 11, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 11, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 8, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" } - }; - }; - }; // End of "Function" section - - section "Alpha" { - key.color= "white"; - priority= 8; - top= 91; - left= 19; - width= 287; - height= 95; - row { - top= 1; - left= 1; - keys { - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, - { , "BKSP", 1, color="grey20" } - }; - }; - row { - top= 20; - left= 1; - keys { - { , "TABK", 1, color="grey20" }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "BKSL", 1 } - }; - }; - row { - top= 39; - left= 1; - keys { - { , "CAPS", 1, color="grey20" }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, - { , "RTRN", 1, color="grey20" } - }; - }; - row { - top= 58; - left= 1; - keys { - { , "LFSH", 1, color="grey20" }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 }, - { , "RTSH", 1, color="grey20" } - }; - }; - row { - top= 77; - left= 1; - keys { - { , "MODK", 1, color="grey20" }, - { , "SMOD", 1, color="grey20" }, - { , "SMOD", 1, color="grey20" }, - { , "SPCE", 1 }, - { , "SMOD", 1, color="grey20" }, - { , "SMOD", 1, color="grey20" }, - { , "SMOD", 1, color="grey20" }, - { , "SMOD", 1, color="grey20" } - }; - }; - }; // End of "Alpha" section - - section "Editing" { - key.color= "grey20"; - priority= 9; - top= 91; - left= 312; - width= 58; - height= 95; - row { - top= 1; - left= 1; - keys { - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 } - }; - }; - row { - top= 20; - left= 1; - keys { - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 } - }; - }; - row { - top= 58; - left= 20; - keys { - { , "NORM", 1 } - }; - }; - row { - top= 77; - left= 1; - keys { - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 } - }; - }; - }; // End of "Editing" section - - section "Keypad" { - key.color= "grey20"; - priority= 10; - top= 91; - left= 376; - width= 77; - height= 95; - row { - top= 1; - left= 1; - keys { - { , "NORM", 1 }, { , "NORM", 1 }, - { , "NORM", 1 }, { , "NORM", 1 } - }; - }; - row { - top= 20; - left= 1; - keys { - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "KPAD", 1 } - }; - }; - row { - top= 39; - left= 1; - keys { - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" } - }; - }; - row { - top= 58; - left= 1; - keys { - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "NORM", 1, color="white" }, - { , "KPAD", 1 } - }; - }; - row { - top= 77; - left= 1; - keys { - { , "KP0", 1, color="white" }, - { , "NORM", 1, color="white" } - }; - }; - }; // End of "Keypad" section - - solid "LedPanel" { - top= 52; - left= 377; - priority= 0; - color= "grey10"; - shape= "LEDS"; - }; - indicator "NumLock" { - top= 67; - left= 382; - priority= 1; - onColor= "green"; - offColor= "green30"; - shape= "LED"; - }; - indicator "CapsLock" { - top= 67; - left= 407; - priority= 2; - onColor= "green"; - offColor= "green30"; - shape= "LED"; - }; - indicator "ScrollLock" { - top= 67; - left= 433; - priority= 3; - onColor= "green"; - offColor= "green30"; - shape= "LED"; - }; - text "NumLockLabel" { - top= 55; - left= 378; - priority= 4; - width= 19.8; - height= 10; - XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; - text= "Num\nLock"; - }; - text "CapsLockLabel" { - top= 55; - left= 403; - priority= 5; - width= 26.4; - height= 10; - XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; - text= "Caps\nLock"; - }; - text "ScrollLockLabel" { - top= 55; - left= 428; - priority= 6; - width= 39.6; - height= 10; - XFont= "-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1"; - text= "Scroll\nLock"; - }; -}; - -}; diff --git a/console-client/xkb/makeconf.sh b/console-client/xkb/makeconf.sh deleted file mode 100644 index 15ce9bf1..00000000 --- a/console-client/xkb/makeconf.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# Update the default configuration with default.xkb - -# As input the file "default.xkb" is used. -# You can generate this file with "xkbcomp": -# "xkbcomp :0 -o default.xkb" -# This extract the configuration out of the ":0" X server. -# After that add the Hurd features to switch VCs, scroll, etc!!!! -# -# Hurd feature checklist: -# Alt + F1...F12: Switch VC. -# Alt + Left, Right: Switch to the console left or right of the current -# console. -# Alt + Up, Down: Scroll the console by one line up or down. -# Ctrl + PgUp, PgDown: Scroll the console up or down with 1/2 screen. -# Alt + Home: Scroll the console to the 0% of the scrollback buffer. -# Ctrl + Home: Scroll the console to the 25% of the scrollback buffer. -# Alt + End: Scroll the console to the 100% of the scrollback buffer. -# Alt + End: Scroll the console to the 75% of the scrollback buffer. - - -# Really ugly code, but it works :) -echo "char *default_xkb_keymap = \"\\" > xkbdefaults.c -# Escape " and \ -sed "s/\([\\\"]\)/\\\\\1/g" < default.xkb|awk ' { print $0 "\\n\\" } ' >> xkbdefaults.c -echo "\\0\";" >> xkbdefaults.c diff --git a/console-client/xkb/parser.y b/console-client/xkb/parser.y index 1ce52f8e..48009457 100644 --- a/console-client/xkb/parser.y +++ b/console-client/xkb/parser.y @@ -1582,23 +1582,10 @@ parse_xkbconfig (char *xkbdir, char *xkbkeymapfile, char *xkbkeymap) else skip_to_defaultsection(); } - else /* Use defaults. */ + else { - extern char *default_xkb_keymap; - filename = "<>"; - - yyin = tmpfile (); - //yyin = fopen ("TEST", "w+"); - - if (yyin == NULL) - { - fprintf (stderr, "Couldn't create tmp file.\n"); - return errno; - } - /* XXX: error handling. */ - fprintf (yyin, "%s\n", default_xkb_keymap); - - rewind (yyin); + free (cwd); + return EINVAL; } err = yyparse (); fclose (yyin); diff --git a/console-client/xkb/xkbdefaults.c b/console-client/xkb/xkbdefaults.c deleted file mode 100644 index e64f471a..00000000 --- a/console-client/xkb/xkbdefaults.c +++ /dev/null @@ -1,1318 +0,0 @@ -char *default_xkb_keymap = "\ -xkb_keymap {\n\ -xkb_keycodes \"xfree86\" {\n\ - minimum = 8;\n\ - maximum = 255;\n\ - = 9;\n\ - = 10;\n\ - = 11;\n\ - = 12;\n\ - = 13;\n\ - = 14;\n\ - = 15;\n\ - = 16;\n\ - = 17;\n\ - = 18;\n\ - = 19;\n\ - = 20;\n\ - = 21;\n\ - = 22;\n\ - = 23;\n\ - = 24;\n\ - = 25;\n\ - = 26;\n\ - = 27;\n\ - = 28;\n\ - = 29;\n\ - = 30;\n\ - = 31;\n\ - = 32;\n\ - = 33;\n\ - = 34;\n\ - = 35;\n\ - = 36;\n\ - = 37;\n\ - = 38;\n\ - = 39;\n\ - = 40;\n\ - = 41;\n\ - = 42;\n\ - = 43;\n\ - = 44;\n\ - = 45;\n\ - = 46;\n\ - = 47;\n\ - = 48;\n\ - = 49;\n\ - = 50;\n\ - = 51;\n\ - = 52;\n\ - = 53;\n\ - = 54;\n\ - = 55;\n\ - = 56;\n\ - = 57;\n\ - = 58;\n\ - = 59;\n\ - = 60;\n\ - = 61;\n\ - = 62;\n\ - = 63;\n\ - = 64;\n\ - = 65;\n\ - = 66;\n\ - = 67;\n\ - = 68;\n\ - = 69;\n\ - = 70;\n\ - = 71;\n\ - = 72;\n\ - = 73;\n\ - = 74;\n\ - = 75;\n\ - = 76;\n\ - = 77;\n\ - = 78;\n\ - = 79;\n\ - = 80;\n\ - = 81;\n\ - = 82;\n\ - = 83;\n\ - = 84;\n\ - = 85;\n\ - = 86;\n\ - = 87;\n\ - = 88;\n\ - = 89;\n\ - = 90;\n\ - = 91;\n\ - = 92;\n\ - = 94;\n\ - = 95;\n\ - = 96;\n\ - = 97;\n\ - = 98;\n\ - = 99;\n\ - = 100;\n\ - = 102;\n\ - = 103;\n\ - = 104;\n\ - = 105;\n\ - = 106;\n\ - = 107;\n\ - = 108;\n\ - = 109;\n\ - = 110;\n\ - = 111;\n\ - = 112;\n\ - = 113;\n\ - = 114;\n\ - = 115;\n\ - = 116;\n\ - = 117;\n\ - = 118;\n\ - = 119;\n\ - = 120;\n\ - = 121;\n\ - = 122;\n\ - = 123;\n\ - = 129;\n\ - = 130;\n\ - = 131;\n\ - = 132;\n\ - = 133;\n\ - = 134;\n\ - = 135;\n\ - = 136;\n\ - = 137;\n\ - = 138;\n\ - = 139;\n\ - = 140;\n\ - = 141;\n\ - = 142;\n\ - = 143;\n\ - = 144;\n\ - = 145;\n\ - = 146;\n\ - = 147;\n\ - = 148;\n\ - = 149;\n\ - = 150;\n\ - = 151;\n\ - = 152;\n\ - = 153;\n\ - = 154;\n\ - = 155;\n\ - = 158;\n\ - = 159;\n\ - = 160;\n\ - = 161;\n\ - = 162;\n\ - = 163;\n\ - = 164;\n\ - = 165;\n\ - = 166;\n\ - = 167;\n\ - = 168;\n\ - = 169;\n\ - = 171;\n\ - = 172;\n\ - = 173;\n\ - = 174;\n\ - = 175;\n\ - = 176;\n\ - = 177;\n\ - = 178;\n\ - = 179;\n\ - = 180;\n\ - = 185;\n\ - = 186;\n\ - = 187;\n\ - = 188;\n\ - = 194;\n\ - = 195;\n\ - = 196;\n\ - = 197;\n\ - = 202;\n\ - = 212;\n\ - = 213;\n\ - = 214;\n\ - = 215;\n\ - = 216;\n\ - = 217;\n\ - = 218;\n\ - = 222;\n\ - = 223;\n\ - = 224;\n\ - = 225;\n\ - = 226;\n\ - = 227;\n\ - = 228;\n\ - = 229;\n\ - = 230;\n\ - = 231;\n\ - = 232;\n\ - = 233;\n\ - = 234;\n\ - = 235;\n\ - = 236;\n\ - = 237;\n\ - = 238;\n\ - = 239;\n\ - = 240;\n\ - = 241;\n\ - = 242;\n\ - = 243;\n\ - = 244;\n\ - = 245;\n\ - = 246;\n\ - = 247;\n\ - = 248;\n\ - = 249;\n\ - = 250;\n\ - = 251;\n\ - = 252;\n\ - = 253;\n\ - = 254;\n\ - = 255;\n\ - indicator 1 = \"Caps Lock\";\n\ - indicator 2 = \"Num Lock\";\n\ - indicator 3 = \"Scroll Lock\";\n\ - virtual indicator 4 = \"Shift Lock\";\n\ - virtual indicator 5 = \"Group 2\";\n\ - virtual indicator 6 = \"Mouse Keys\";\n\ - alias = ;\n\ - alias = ;\n\ - alias = ;\n\ - alias = ;\n\ - alias = ;\n\ -};\n\ -\n\ -xkb_types \"complete\" {\n\ -\n\ - virtual_modifiers NumLock,Alt,LevelThree,AltGr,ScrollLock;\n\ -\n\ - type \"ONE_LEVEL\" {\n\ - modifiers= none;\n\ - level_name[Level1]= \"Any\";\n\ - };\n\ - type \"TWO_LEVEL\" {\n\ - modifiers= Shift;\n\ - map[Shift]= Level2;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Shift\";\n\ - };\n\ - type \"ALPHABETIC\" {\n\ - modifiers= Shift+Lock;\n\ - map[Shift]= Level2;\n\ - map[Lock]= Level1;\n\ - preserve[Lock]= Lock;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Caps\";\n\ - };\n\ - type \"KEYPAD\" {\n\ - modifiers= Shift+NumLock;\n\ - map[Shift]= Level2;\n\ - map[NumLock]= Level2;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Number\";\n\ - };\n\ - type \"SHIFT+ALT\" {\n\ - modifiers= Shift+Alt;\n\ - map[Shift+Alt]= Level2;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Shift+Alt\";\n\ - };\n\ - type \"PC_BREAK\" {\n\ - modifiers= Control;\n\ - map[Control]= Level2;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Control\";\n\ - };\n\ - type \"PC_SYSRQ\" {\n\ - modifiers= Alt;\n\ - map[Alt]= Level2;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Alt\";\n\ - };\n\ - type \"CTRL+ALT\" {\n\ - modifiers= Control+Alt;\n\ - map[Control+Alt]= Level2;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Ctrl+Alt\";\n\ - };\n\ - type \"THREE_LEVEL\" {\n\ - modifiers= Shift+LevelThree;\n\ - map[Shift]= Level2;\n\ - map[LevelThree]= Level3;\n\ - map[Shift+LevelThree]= Level3;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Shift\";\n\ - level_name[Level3]= \"Level3\";\n\ - };\n\ - type \"FOUR_LEVEL\" {\n\ - modifiers= Shift+LevelThree;\n\ - map[Shift]= Level2;\n\ - map[LevelThree]= Level3;\n\ - map[Shift+LevelThree]= Level4;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Shift\";\n\ - level_name[Level3]= \"Alt Base\";\n\ - level_name[Level4]= \"Shift Alt\";\n\ - };\n\ - type \"FOUR_LEVEL_KEYPAD\" {\n\ - modifiers= Shift+NumLock+LevelThree;\n\ - map[Shift]= Level2;\n\ - map[NumLock]= Level2;\n\ - map[LevelThree]= Level3;\n\ - map[Shift+LevelThree]= Level4;\n\ - map[NumLock+LevelThree]= Level4;\n\ - map[Shift+NumLock+LevelThree]= Level3;\n\ - level_name[Level1]= \"Base\";\n\ - level_name[Level2]= \"Number\";\n\ - level_name[Level3]= \"Alt Base\";\n\ - level_name[Level4]= \"Alt Number\";\n\ - };\n\ -};\n\ -\n\ -xkb_compatibility \"complete\" {\n\ -\n\ - virtual_modifiers NumLock,Alt,LevelThree,AltGr,ScrollLock;\n\ -\n\ - interpret.useModMapMods= AnyLevel;\n\ - interpret.repeat= False;\n\ - interpret.locking= False;\n\ - interpret ISO_Level2_Latch+Exactly(Shift) {\n\ - useModMapMods=level1;\n\ - action= LatchMods(modifiers=Shift,clearLocks,latchToLock);\n\ - };\n\ - interpret Shift_Lock+AnyOf(Shift+Lock) {\n\ - action= LockMods(modifiers=Shift);\n\ - };\n\ - interpret Num_Lock+AnyOf(all) {\n\ - virtualModifier= NumLock;\n\ - action= LockMods(modifiers=NumLock);\n\ - };\n\ - interpret ISO_Lock+AnyOf(all) {\n\ - action= ISOLock(modifiers=modMapMods,affect=all);\n\ - };\n\ - interpret ISO_Level3_Shift+AnyOf(all) {\n\ - virtualModifier= LevelThree;\n\ - useModMapMods=level1;\n\ - action= SetMods(modifiers=LevelThree,clearLocks);\n\ - };\n\ - interpret ISO_Level3_Latch+AnyOf(all) {\n\ - virtualModifier= LevelThree;\n\ - useModMapMods=level1;\n\ - action= LatchMods(modifiers=LevelThree,clearLocks,latchToLock);\n\ - };\n\ - interpret Alt_L+AnyOf(all) {\n\ - virtualModifier= Alt;\n\ - action= SetMods(modifiers=modMapMods,clearLocks);\n\ - };\n\ - interpret Alt_R+AnyOf(all) {\n\ - virtualModifier= Alt;\n\ - action= SetMods(modifiers=modMapMods,clearLocks);\n\ - };\n\ - interpret Scroll_Lock+AnyOf(all) {\n\ - virtualModifier= ScrollLock;\n\ - action= LockMods(modifiers=modMapMods);\n\ - };\n\ - interpret Mode_switch+AnyOfOrNone(all) {\n\ - virtualModifier= AltGr;\n\ - useModMapMods=level1;\n\ - action= SetGroup(group=+1);\n\ - };\n\ - interpret ISO_Group_Latch+AnyOfOrNone(all) {\n\ - virtualModifier= AltGr;\n\ - useModMapMods=level1;\n\ - action= LatchGroup(group=2);\n\ - };\n\ - interpret ISO_Next_Group+AnyOfOrNone(all) {\n\ - virtualModifier= AltGr;\n\ - useModMapMods=level1;\n\ - action= LockGroup(group=+1);\n\ - };\n\ - interpret ISO_Prev_Group+AnyOfOrNone(all) {\n\ - virtualModifier= AltGr;\n\ - useModMapMods=level1;\n\ - action= LockGroup(group=-1);\n\ - };\n\ - interpret ISO_First_Group+AnyOfOrNone(all) {\n\ - action= LockGroup(group=1);\n\ - };\n\ - interpret ISO_Last_Group+AnyOfOrNone(all) {\n\ - action= LockGroup(group=2);\n\ - };\n\ - interpret KP_1+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=-1,y=+1);\n\ - };\n\ - interpret KP_End+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=-1,y=+1);\n\ - };\n\ - interpret KP_2+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+0,y=+1);\n\ - };\n\ - interpret KP_Down+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+0,y=+1);\n\ - };\n\ - interpret KP_3+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+1,y=+1);\n\ - };\n\ - interpret KP_Next+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+1,y=+1);\n\ - };\n\ - interpret KP_4+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=-1,y=+0);\n\ - };\n\ - interpret KP_Left+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=-1,y=+0);\n\ - };\n\ - interpret KP_6+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+1,y=+0);\n\ - };\n\ - interpret KP_Right+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+1,y=+0);\n\ - };\n\ - interpret KP_7+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=-1,y=-1);\n\ - };\n\ - interpret KP_Home+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=-1,y=-1);\n\ - };\n\ - interpret KP_8+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+0,y=-1);\n\ - };\n\ - interpret KP_Up+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+0,y=-1);\n\ - };\n\ - interpret KP_9+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+1,y=-1);\n\ - };\n\ - interpret KP_Prior+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= MovePtr(x=+1,y=-1);\n\ - };\n\ - interpret KP_5+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= PtrBtn(button=default);\n\ - };\n\ - interpret KP_Begin+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= PtrBtn(button=default);\n\ - };\n\ - interpret KP_F2+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= SetPtrDflt(affect=button,button=1);\n\ - };\n\ - interpret KP_Divide+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= SetPtrDflt(affect=button,button=1);\n\ - };\n\ - interpret KP_F3+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= SetPtrDflt(affect=button,button=2);\n\ - };\n\ - interpret KP_Multiply+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= SetPtrDflt(affect=button,button=2);\n\ - };\n\ - interpret KP_F4+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= SetPtrDflt(affect=button,button=3);\n\ - };\n\ - interpret KP_Subtract+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= SetPtrDflt(affect=button,button=3);\n\ - };\n\ - interpret KP_Separator+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= PtrBtn(button=default,count=2);\n\ - };\n\ - interpret KP_Add+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= PtrBtn(button=default,count=2);\n\ - };\n\ - interpret KP_0+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= LockPtrBtn(button=default,affect=lock);\n\ - };\n\ - interpret KP_Insert+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= LockPtrBtn(button=default,affect=lock);\n\ - };\n\ - interpret KP_Decimal+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= LockPtrBtn(button=default,affect=unlock);\n\ - };\n\ - interpret KP_Delete+AnyOfOrNone(all) {\n\ - repeat= True;\n\ - action= LockPtrBtn(button=default,affect=unlock);\n\ - };\n\ - interpret Pointer_Button_Dflt+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=default);\n\ - };\n\ - interpret Pointer_Button1+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=1);\n\ - };\n\ - interpret Pointer_Button2+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=2);\n\ - };\n\ - interpret Pointer_Button3+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=3);\n\ - };\n\ - interpret Pointer_DblClick_Dflt+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=default,count=2);\n\ - };\n\ - interpret Pointer_DblClick1+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=1,count=2);\n\ - };\n\ - interpret Pointer_DblClick2+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=2,count=2);\n\ - };\n\ - interpret Pointer_DblClick3+AnyOfOrNone(all) {\n\ - action= PtrBtn(button=3,count=2);\n\ - };\n\ - interpret Pointer_Drag_Dflt+AnyOfOrNone(all) {\n\ - action= LockPtrBtn(button=default,affect=both);\n\ - };\n\ - interpret Pointer_Drag1+AnyOfOrNone(all) {\n\ - action= LockPtrBtn(button=1,affect=both);\n\ - };\n\ - interpret Pointer_Drag2+AnyOfOrNone(all) {\n\ - action= LockPtrBtn(button=2,affect=both);\n\ - };\n\ - interpret Pointer_Drag3+AnyOfOrNone(all) {\n\ - action= LockPtrBtn(button=3,affect=both);\n\ - };\n\ - interpret Pointer_EnableKeys+AnyOfOrNone(all) {\n\ - action= LockControls(controls=MouseKeys);\n\ - };\n\ - interpret Pointer_Accelerate+AnyOfOrNone(all) {\n\ - action= LockControls(controls=MouseKeysAccel);\n\ - };\n\ - interpret Pointer_DfltBtnNext+AnyOfOrNone(all) {\n\ - action= SetPtrDflt(affect=button,button=+1);\n\ - };\n\ - interpret Pointer_DfltBtnPrev+AnyOfOrNone(all) {\n\ - action= SetPtrDflt(affect=button,button=-1);\n\ - };\n\ - interpret AccessX_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=AccessXKeys);\n\ - };\n\ - interpret AccessX_Feedback_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=AccessXFeedback);\n\ - };\n\ - interpret RepeatKeys_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=RepeatKeys);\n\ - };\n\ - interpret SlowKeys_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=SlowKeys);\n\ - };\n\ - interpret BounceKeys_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=BounceKeys);\n\ - };\n\ - interpret StickyKeys_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=StickyKeys);\n\ - };\n\ - interpret MouseKeys_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=MouseKeys);\n\ - };\n\ - interpret MouseKeys_Accel_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=MouseKeysAccel);\n\ - };\n\ - interpret Overlay1_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=Overlay1);\n\ - };\n\ - interpret Overlay2_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=Overlay2);\n\ - };\n\ - interpret AudibleBell_Enable+AnyOfOrNone(all) {\n\ - action= LockControls(controls=AudibleBell);\n\ - };\n\ - interpret Terminate_Server+AnyOfOrNone(all) {\n\ - action= Terminate();\n\ - };\n\ - interpret Any+Exactly(Lock) {\n\ - action= LockMods(modifiers=Lock);\n\ - };\n\ - interpret Any+AnyOf(all) {\n\ - action= SetMods(modifiers=modMapMods,clearLocks);\n\ - };\n\ - group 2 = AltGr;\n\ - group 3 = AltGr;\n\ - group 4 = AltGr;\n\ - indicator \"Caps Lock\" {\n\ - !allowExplicit;\n\ - whichModState= locked;\n\ - modifiers= Lock;\n\ - };\n\ - indicator \"Num Lock\" {\n\ - !allowExplicit;\n\ - whichModState= locked;\n\ - modifiers= NumLock;\n\ - };\n\ - indicator \"Scroll Lock\" {\n\ - whichModState= locked;\n\ - modifiers= ScrollLock;\n\ - };\n\ - indicator \"Shift Lock\" {\n\ - !allowExplicit;\n\ - whichModState= locked;\n\ - modifiers= Shift;\n\ - };\n\ - indicator \"Group 2\" {\n\ - !allowExplicit;\n\ - groups= 0xfe;\n\ - };\n\ - indicator \"Mouse Keys\" {\n\ - indicatorDrivesKeyboard;\n\ - controls= mouseKeys;\n\ - };\n\ -};\n\ -\n\ -xkb_symbols \"en_US(pc104)\" {\n\ -\n\ - name[group1]=\"US/ASCII\";\n\ - name[group2]=\"ISO9995-3\";\n\ -\n\ - key { [ Escape ] };\n\ - key {\n\ - symbols[Group1]= [ 1, exclam ],\n\ - symbols[Group2]= [ onesuperior, exclamdown ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 2, at ],\n\ - symbols[Group2]= [ twosuperior, oneeighth ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 3, numbersign ],\n\ - symbols[Group2]= [ threesuperior, sterling ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 4, dollar ],\n\ - symbols[Group2]= [ onequarter, dollar ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 5, percent ],\n\ - symbols[Group2]= [ onehalf, threeeighths ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 6, asciicircum ],\n\ - symbols[Group2]= [ threequarters, fiveeighths ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 7, ampersand ],\n\ - symbols[Group2]= [ braceleft, seveneighths ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 8, asterisk ],\n\ - symbols[Group2]= [ bracketleft, trademark ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 9, parenleft ],\n\ - symbols[Group2]= [ bracketright, plusminus ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ 0, parenright ],\n\ - symbols[Group2]= [ braceright, degree ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ minus, underscore ],\n\ - symbols[Group2]= [ backslash, questiondown ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ equal, plus ],\n\ - symbols[Group2]= [ dead_cedilla, dead_ogonek ]\n\ - };\n\ - key { [ BackSpace ] };\n\ - key { [ Tab, ISO_Left_Tab ] };\n\ - key {\n\ - symbols[Group1]= [ q, Q ],\n\ - symbols[Group2]= [ at, Greek_OMEGA ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ w, W ],\n\ - symbols[Group2]= [ lstroke, Lstroke ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ e, E ],\n\ - symbols[Group2]= [ EuroSign ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ r, R ],\n\ - symbols[Group2]= [ paragraph, registered ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ t, T ],\n\ - symbols[Group2]= [ tslash, Tslash ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ y, Y ],\n\ - symbols[Group2]= [ leftarrow, yen ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ u, U ],\n\ - symbols[Group2]= [ downarrow, uparrow ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ i, I ],\n\ - symbols[Group2]= [ rightarrow, idotless ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ o, O ],\n\ - symbols[Group2]= [ oslash, Ooblique ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ p, P ],\n\ - symbols[Group2]= [ thorn, THORN ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ bracketleft, braceleft ],\n\ - symbols[Group2]= [ dead_diaeresis, dead_abovering ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ bracketright, braceright ],\n\ - symbols[Group2]= [ dead_tilde, dead_macron ]\n\ - };\n\ - key { [ Return ] };\n\ - key {\n\ - symbols[Group1]= [ Control_L ],\n\ - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ a, A ],\n\ - symbols[Group2]= [ ae, AE ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ s, S ],\n\ - symbols[Group2]= [ ssharp, section ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ d, D ],\n\ - symbols[Group2]= [ eth, ETH ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ f, F ],\n\ - symbols[Group2]= [ dstroke, ordfeminine ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ g, G ],\n\ - symbols[Group2]= [ eng, ENG ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ h, H ],\n\ - symbols[Group2]= [ hstroke, Hstroke ]\n\ - };\n\ - key { [ j, J ] };\n\ - key {\n\ - symbols[Group1]= [ k, K ],\n\ - symbols[Group2]= [ kra, ampersand ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ l, L ],\n\ - symbols[Group2]= [ lstroke, Lstroke ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ semicolon, colon ],\n\ - symbols[Group2]= [ dead_acute, dead_doubleacute ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ apostrophe, quotedbl ],\n\ - symbols[Group2]= [ dead_circumflex, dead_caron ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ grave, asciitilde ],\n\ - symbols[Group2]= [ notsign ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ Shift_L ],\n\ - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ backslash, bar ],\n\ - symbols[Group2]= [ dead_grave, dead_breve ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ z, Z ],\n\ - symbols[Group2]= [ guillemotleft, less ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ x, X ],\n\ - symbols[Group2]= [ guillemotright, greater ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ c, C ],\n\ - symbols[Group2]= [ cent, copyright ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ v, V ],\n\ - symbols[Group2]= [ leftdoublequotemark, grave ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ b, B ],\n\ - symbols[Group2]= [ rightdoublequotemark, apostrophe ]\n\ - };\n\ - key { [ n, N ] };\n\ - key {\n\ - symbols[Group1]= [ m, M ],\n\ - symbols[Group2]= [ mu, masculine ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ comma, less ],\n\ - symbols[Group2]= [ horizconnector, multiply ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ period, greater ],\n\ - symbols[Group2]= [ periodcentered, division ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ slash, question ],\n\ - symbols[Group2]= [ dead_belowdot, dead_abovedot ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ Shift_R ],\n\ - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Multiply ],\n\ - actions[Group1]= [ SetPtrDflt(affect=button,button=2) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ Alt_L, Meta_L ],\n\ - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks), SetMods(modifiers=modMapMods,clearLocks) ]\n\ - };\n\ - key { [ space ] };\n\ - key {\n\ - symbols[Group1]= [ Caps_Lock ],\n\ - actions[Group1]= [ LockMods(modifiers=Lock) ]\n\ - };\n\ - key { [ F1 ] };\n\ - key { [ F2 ] };\n\ - key { [ F3 ] };\n\ - key { [ F4 ] };\n\ - key { [ F5 ] };\n\ - key { [ F6 ] };\n\ - key { [ F7 ] };\n\ - key { [ F8 ] };\n\ - key { [ F9 ] };\n\ - key { [ F10 ] };\n\ - key {\n\ - symbols[Group1]= [ Num_Lock, Pointer_EnableKeys ],\n\ - actions[Group1]= [ LockMods(modifiers=NumLock), LockControls(controls=MouseKeys) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ Scroll_Lock ],\n\ - actions[Group1]= [ LockMods(modifiers=modMapMods) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Home, KP_7 ],\n\ - actions[Group1]= [ MovePtr(x=-1,y=-1), MovePtr(x=-1,y=-1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Up, KP_8 ],\n\ - actions[Group1]= [ MovePtr(x=+0,y=-1), MovePtr(x=+0,y=-1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Prior, KP_9 ],\n\ - actions[Group1]= [ MovePtr(x=+1,y=-1), MovePtr(x=+1,y=-1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Subtract ],\n\ - actions[Group1]= [ SetPtrDflt(affect=button,button=3) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Left, KP_4 ],\n\ - actions[Group1]= [ MovePtr(x=-1,y=+0), MovePtr(x=-1,y=+0) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Begin, KP_5 ],\n\ - actions[Group1]= [ PtrBtn(button=default), PtrBtn(button=default) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Right, KP_6 ],\n\ - actions[Group1]= [ MovePtr(x=+1,y=+0), MovePtr(x=+1,y=+0) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Add ],\n\ - actions[Group1]= [ PtrBtn(button=default,count=2) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_End, KP_1 ],\n\ - actions[Group1]= [ MovePtr(x=-1,y=+1), MovePtr(x=-1,y=+1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Down, KP_2 ],\n\ - actions[Group1]= [ MovePtr(x=+0,y=+1), MovePtr(x=+0,y=+1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Next, KP_3 ],\n\ - actions[Group1]= [ MovePtr(x=+1,y=+1), MovePtr(x=+1,y=+1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Insert, KP_0 ],\n\ - actions[Group1]= [ LockPtrBtn(button=default,affect=lock), LockPtrBtn(button=default,affect=lock) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Delete, KP_Decimal ],\n\ - actions[Group1]= [ LockPtrBtn(button=default,affect=unlock), LockPtrBtn(button=default,affect=unlock) ]\n\ - };\n\ - key {\n\ - type= \"PC_SYSRQ\",\n\ - symbols[Group1]= [ Print, Sys_Req ]\n\ - };\n\ - key { [ F11 ] };\n\ - key { [ F12 ] };\n\ - key { [ Home ] };\n\ - key { [ Up ] };\n\ - key { [ Prior ] };\n\ - key { [ Left ] };\n\ - key { [ Right ] };\n\ - key { [ End ] };\n\ - key { [ Down ] };\n\ - key { [ Next ] };\n\ - key { [ Insert ] };\n\ - key { [ Delete ] };\n\ - key { [ KP_Enter ] };\n\ - key {\n\ - symbols[Group1]= [ Control_R ],\n\ - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ]\n\ - };\n\ - key {\n\ - type= \"PC_BREAK\",\n\ - symbols[Group1]= [ Pause, Break ]\n\ - };\n\ - key {\n\ - type= \"PC_SYSRQ\",\n\ - symbols[Group1]= [ Print, Sys_Req ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ KP_Divide ],\n\ - actions[Group1]= [ SetPtrDflt(affect=button,button=1) ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ Mode_switch ],\n\ - actions[Group1]= [ SetGroup(group=+1) ]\n\ - };\n\ - key {\n\ - type= \"PC_BREAK\",\n\ - symbols[Group1]= [ Pause, Break ]\n\ - };\n\ - key {\n\ - symbols[Group1]= [ Super_L ],\n\ - actions[Group1]= [ SetMods(modifiers=modMapMods,clearLocks) ]\n\ - };\n\ - key { [ Multi_key ] };\n\ - key { [ Menu ] };\n\ - modifier_map Control { };\n\ - modifier_map Shift { };\n\ - modifier_map Shift { };\n\ - modifier_map Mod1 { };\n\ - modifier_map Lock { };\n\ - modifier_map Mod2 { };\n\ - modifier_map Mod5 { };\n\ - modifier_map Control { };\n\ - modifier_map Mod3 { };\n\ - modifier_map Mod4 { };\n\ -};\n\ -\n\ -xkb_geometry \"pc(pc104)\" {\n\ -\n\ - width= 470;\n\ - height= 210;\n\ -\n\ - alias = ;\n\ - alias = ;\n\ -\n\ - baseColor= \"white\";\n\ - labelColor= \"black\";\n\ - xfont= \"-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1\";\n\ - description= \"Generic 104\";\n\ -\n\ - shape \"NORM\" {\n\ - corner= 1,\n\ - { [ 18, 18 ] },\n\ - { [ 2, 1 ], [ 16, 16 ] }\n\ - };\n\ - shape \"BKSP\" {\n\ - corner= 1,\n\ - { [ 38, 18 ] },\n\ - { [ 2, 1 ], [ 36, 16 ] }\n\ - };\n\ - shape \"TABK\" {\n\ - corner= 1,\n\ - { [ 28, 18 ] },\n\ - { [ 2, 1 ], [ 26, 16 ] }\n\ - };\n\ - shape \"BKSL\" {\n\ - corner= 1,\n\ - { [ 28, 18 ] },\n\ - { [ 2, 1 ], [ 26, 16 ] }\n\ - };\n\ - shape \"RTRN\" {\n\ - corner= 1,\n\ - { [ 42, 18 ] },\n\ - { [ 2, 1 ], [ 40, 16 ] }\n\ - };\n\ - shape \"CAPS\" {\n\ - corner= 1,\n\ - { [ 33, 18 ] },\n\ - { [ 2, 1 ], [ 31, 16 ] }\n\ - };\n\ - shape \"LFSH\" {\n\ - corner= 1,\n\ - { [ 42, 18 ] },\n\ - { [ 2, 1 ], [ 40, 16 ] }\n\ - };\n\ - shape \"RTSH\" {\n\ - corner= 1,\n\ - { [ 52, 18 ] },\n\ - { [ 2, 1 ], [ 50, 16 ] }\n\ - };\n\ - shape \"MODK\" {\n\ - corner= 1,\n\ - { [ 27, 18 ] },\n\ - { [ 2, 1 ], [ 25, 16 ] }\n\ - };\n\ - shape \"SMOD\" {\n\ - corner= 1,\n\ - { [ 23, 18 ] },\n\ - { [ 2, 1 ], [ 21, 16 ] }\n\ - };\n\ - shape \"SPCE\" {\n\ - corner= 1,\n\ - { [ 113, 18 ] },\n\ - { [ 2, 1 ], [ 111, 16 ] }\n\ - };\n\ - shape \"KP0\" {\n\ - corner= 1,\n\ - { [ 37, 18 ] },\n\ - { [ 2, 1 ], [ 35, 16 ] }\n\ - };\n\ - shape \"KPAD\" {\n\ - corner= 1,\n\ - { [ 18, 37 ] },\n\ - { [ 2, 1 ], [ 16, 35 ] }\n\ - };\n\ - shape \"LEDS\" { { [ 75, 20 ] } };\n\ - shape \"LED\" { { [ 5, 1 ] } };\n\ - section \"Function\" {\n\ - key.color= \"grey20\";\n\ - priority= 7;\n\ - top= 52;\n\ - left= 19;\n\ - width= 351;\n\ - height= 19;\n\ - row {\n\ - top= 1;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1 },\n\ - { , \"NORM\", 20, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 11, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 11, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 8, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" }\n\ - };\n\ - };\n\ - }; // End of \"Function\" section\n\ -\n\ - section \"Alpha\" {\n\ - key.color= \"white\";\n\ - priority= 8;\n\ - top= 91;\n\ - left= 19;\n\ - width= 287;\n\ - height= 95;\n\ - row {\n\ - top= 1;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 },\n\ - { , \"BKSP\", 1, color=\"grey20\" }\n\ - };\n\ - };\n\ - row {\n\ - top= 20;\n\ - left= 1;\n\ - keys {\n\ - { , \"TABK\", 1, color=\"grey20\" },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"BKSL\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 39;\n\ - left= 1;\n\ - keys {\n\ - { , \"CAPS\", 1, color=\"grey20\" },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 },\n\ - { , \"RTRN\", 1, color=\"grey20\" }\n\ - };\n\ - };\n\ - row {\n\ - top= 58;\n\ - left= 1;\n\ - keys {\n\ - { , \"LFSH\", 1, color=\"grey20\" },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"RTSH\", 1, color=\"grey20\" }\n\ - };\n\ - };\n\ - row {\n\ - top= 77;\n\ - left= 1;\n\ - keys {\n\ - { , \"MODK\", 1, color=\"grey20\" },\n\ - { , \"SMOD\", 1, color=\"grey20\" },\n\ - { , \"SMOD\", 1, color=\"grey20\" },\n\ - { , \"SPCE\", 1 },\n\ - { , \"SMOD\", 1, color=\"grey20\" },\n\ - { , \"SMOD\", 1, color=\"grey20\" },\n\ - { , \"SMOD\", 1, color=\"grey20\" },\n\ - { , \"SMOD\", 1, color=\"grey20\" }\n\ - };\n\ - };\n\ - }; // End of \"Alpha\" section\n\ -\n\ - section \"Editing\" {\n\ - key.color= \"grey20\";\n\ - priority= 9;\n\ - top= 91;\n\ - left= 312;\n\ - width= 58;\n\ - height= 95;\n\ - row {\n\ - top= 1;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 20;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 58;\n\ - left= 20;\n\ - keys {\n\ - { , \"NORM\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 77;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }\n\ - };\n\ - };\n\ - }; // End of \"Editing\" section\n\ -\n\ - section \"Keypad\" {\n\ - key.color= \"grey20\";\n\ - priority= 10;\n\ - top= 91;\n\ - left= 376;\n\ - width= 77;\n\ - height= 95;\n\ - row {\n\ - top= 1;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 },\n\ - { , \"NORM\", 1 }, { , \"NORM\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 20;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"KPAD\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 39;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" }\n\ - };\n\ - };\n\ - row {\n\ - top= 58;\n\ - left= 1;\n\ - keys {\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" },\n\ - { , \"KPAD\", 1 }\n\ - };\n\ - };\n\ - row {\n\ - top= 77;\n\ - left= 1;\n\ - keys {\n\ - { , \"KP0\", 1, color=\"white\" },\n\ - { , \"NORM\", 1, color=\"white\" }\n\ - };\n\ - };\n\ - }; // End of \"Keypad\" section\n\ -\n\ - solid \"LedPanel\" {\n\ - top= 52;\n\ - left= 377;\n\ - priority= 0;\n\ - color= \"grey10\";\n\ - shape= \"LEDS\";\n\ - };\n\ - indicator \"NumLock\" {\n\ - top= 67;\n\ - left= 382;\n\ - priority= 1;\n\ - onColor= \"green\";\n\ - offColor= \"green30\";\n\ - shape= \"LED\";\n\ - };\n\ - indicator \"CapsLock\" {\n\ - top= 67;\n\ - left= 407;\n\ - priority= 2;\n\ - onColor= \"green\";\n\ - offColor= \"green30\";\n\ - shape= \"LED\";\n\ - };\n\ - indicator \"ScrollLock\" {\n\ - top= 67;\n\ - left= 433;\n\ - priority= 3;\n\ - onColor= \"green\";\n\ - offColor= \"green30\";\n\ - shape= \"LED\";\n\ - };\n\ - text \"NumLockLabel\" {\n\ - top= 55;\n\ - left= 378;\n\ - priority= 4;\n\ - width= 19.8;\n\ - height= 10;\n\ - XFont= \"-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1\";\n\ - text= \"Num\\nLock\";\n\ - };\n\ - text \"CapsLockLabel\" {\n\ - top= 55;\n\ - left= 403;\n\ - priority= 5;\n\ - width= 26.4;\n\ - height= 10;\n\ - XFont= \"-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1\";\n\ - text= \"Caps\\nLock\";\n\ - };\n\ - text \"ScrollLockLabel\" {\n\ - top= 55;\n\ - left= 428;\n\ - priority= 6;\n\ - width= 39.6;\n\ - height= 10;\n\ - XFont= \"-*-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1\";\n\ - text= \"Scroll\\nLock\";\n\ - };\n\ -};\n\ -\n\ -};\n\ -\0"; -- cgit v1.2.3