Home | History | Annotate | Download | only in compat
      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