| 1 |
// Minimal set of symbol interpretations to provide |
| 2 |
// reasonable default behavior (Num lock, Shift lock, |
| 3 |
// Caps lock, and Mode switch) and set up the |
| 4 |
// automatic updating of common keyboard LEDs. |
| 5 |
|
| 6 |
default xkb_compatibility "basic" { |
| 7 |
|
| 8 |
virtual_modifiers NumLock,AltGr; |
| 9 |
|
| 10 |
interpret.repeat= False; |
| 11 |
setMods.clearLocks= True; |
| 12 |
latchMods.clearLocks= True; |
| 13 |
latchMods.latchToLock= True; |
| 14 |
|
| 15 |
interpret Shift_Lock+AnyOf(Shift+Lock) { |
| 16 |
action= LockMods(modifiers=Shift); |
| 17 |
}; |
| 18 |
|
| 19 |
interpret Any+Lock { |
| 20 |
action= LockMods(modifiers=Lock); |
| 21 |
}; |
| 22 |
|
| 23 |
interpret Num_Lock+Any { |
| 24 |
virtualModifier= NumLock; |
| 25 |
action= LockMods(modifiers=NumLock); |
| 26 |
}; |
| 27 |
|
| 28 |
interpret Mode_switch { |
| 29 |
useModMapMods= level1; |
| 30 |
virtualModifier= AltGr; |
| 31 |
action= SetGroup(group=+1); |
| 32 |
}; |
| 33 |
|
| 34 |
interpret Any + Any { |
| 35 |
action= SetMods(modifiers=modMapMods); |
| 36 |
}; |
| 37 |
|
| 38 |
group 2 = AltGr; |
| 39 |
group 3 = AltGr; |
| 40 |
group 4 = AltGr; |
| 41 |
|
| 42 |
include "ledcaps" |
| 43 |
include "lednum" |
| 44 |
indicator "Shift Lock" { |
| 45 |
!allowExplicit; |
| 46 |
whichModState= Locked; |
| 47 |
modifiers= Shift; |
| 48 |
}; |
| 49 |
}; |
| 50 |
|
| 51 |
xkb_compatibility "pure-virtual-modifiers" { |
| 52 |
|
| 53 |
virtual_modifiers NumLock,AltGr,Alt; |
| 54 |
|
| 55 |
interpret.repeat= False; |
| 56 |
setMods.clearLocks= True; |
| 57 |
latchMods.clearLocks= True; |
| 58 |
latchMods.latchToLock= True; |
| 59 |
|
| 60 |
interpret Shift_Lock { |
| 61 |
action= LockMods(modifiers=Shift); |
| 62 |
}; |
| 63 |
|
| 64 |
interpret Num_Lock { |
| 65 |
virtualModifier= NumLock; |
| 66 |
action= LockMods(modifiers=NumLock); |
| 67 |
}; |
| 68 |
|
| 69 |
interpret Shift_L { |
| 70 |
action= SetMods(modifiers=Shift); |
| 71 |
}; |
| 72 |
|
| 73 |
interpret Shift_R { |
| 74 |
action= SetMods(modifiers=Shift); |
| 75 |
}; |
| 76 |
|
| 77 |
interpret Control_L { |
| 78 |
action= SetMods(modifiers=Control); |
| 79 |
}; |
| 80 |
|
| 81 |
interpret Control_R { |
| 82 |
action= SetMods(modifiers=Control); |
| 83 |
}; |
| 84 |
|
| 85 |
interpret Alt_L { |
| 86 |
action= SetMods(modifiers=Alt); |
| 87 |
}; |
| 88 |
|
| 89 |
interpret Alt_R { |
| 90 |
action= SetMods(modifiers=Alt); |
| 91 |
}; |
| 92 |
}; |
| 93 |
|
| 94 |
xkb_compatibility "invalid-pure-virtual-modifiers" { |
| 95 |
virtual_modifiers Alt; |
| 96 |
interpret Alt_R + Alt { |
| 97 |
action= SetMods(modifiers=Alt); |
| 98 |
}; |
| 99 |
}; |