| 1 |
partial xkb_compatibility "caps_lock" { |
| 2 |
// Keysym Caps_Lock locks the Lock modifier. |
| 3 |
// With this definition, the keysym Caps_Lock can be used without binding |
| 4 |
// the whole key to a real modifier. This is essential when you don't |
| 5 |
// want to use Caps_Lock on the first level. |
| 6 |
// This should not have any compatibility issues when used together with |
| 7 |
// other layouts which don't utilize this capability. |
| 8 |
interpret Caps_Lock { |
| 9 |
action = LockMods(modifiers = Lock); |
| 10 |
}; |
| 11 |
}; |
| 12 |
|
| 13 |
partial xkb_compatibility "unlock-on-release" { |
| 14 |
interpret Caps_Lock { |
| 15 |
action = LockMods(modifiers = Lock, unlockOnPress=false); |
| 16 |
}; |
| 17 |
|
| 18 |
interpret.repeat= False; |
| 19 |
interpret Caps_Lock + Lock { |
| 20 |
action = LockMods(modifiers = Lock, unlockOnPress=false); |
| 21 |
}; |
| 22 |
}; |
| 23 |
|
| 24 |
partial xkb_compatibility "unlock-on-press" { |
| 25 |
interpret Caps_Lock { |
| 26 |
action = LockMods(modifiers = Lock, unlockOnPress); |
| 27 |
}; |
| 28 |
interpret.repeat= False; |
| 29 |
interpret Caps_Lock + Lock { |
| 30 |
action = LockMods(modifiers = Lock, unlockOnPress); |
| 31 |
}; |
| 32 |
}; |