• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Minimal set of symbol interpretations to provide
2// reasonable default behavior (Num lock, Shift lock,
3// and Mode switch) and set up the automatic updating
4// of common keyboard LEDs.
5
6default 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=2,clearLocks);
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    indicator.allowExplicit= False;
43    indicator "Caps Lock" {
44	whichModState= Locked;
45	modifiers= Lock;
46    };
47    indicator "Num Lock" {
48	whichModState= Locked;
49	modifiers= NumLock;
50    };
51    indicator "Shift Lock" {
52	whichModState= Locked;
53	modifiers= Shift;
54    };
55    indicator.allowExplicit= True;
56};
57