summaryrefslogtreecommitdiff
path: root/linux/X/compat/neo_mods
blob: b45f5764ca75356597d87f6b55e29e6a8321dfac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Neo special modifiers
default partial xkb_compatibility "default"  {
    include "neo_mods(caps_lock)"
    include "neo_mods(shift_fix)"
    include "neo_mods(level5_lock)"
};

partial xkb_compatibility "caps_lock"  {
    // Keysym Caps_Lock locks Lock modifier
    // No need for modifier-mapping
    interpret Caps_Lock {
        action = LockMods(modifiers = Lock);
    };
};

partial xkb_compatibility "shift_fix"  {
    // Seems like symbols/level3(caps_switch) does something evil to the left shift-key.
    // This should do the trick:
    interpret Shift_L {
        action = SetMods(modifiers = Shift);
    };
};

partial xkb_compatibility "level5_lock"  {
    virtual_modifiers NumLock;
    // NumLock is misused for level5-lock-indication
    interpret ISO_Level5_Lock {
        action = LockMods(modifiers = NumLock);
    };
};