caps 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. partial xkb_compatibility "unlock-on-release" {
  13. interpret Caps_Lock {
  14. action = LockMods(modifiers = Lock, unlockOnPress=false);
  15. };
  16. interpret.repeat= False;
  17. interpret Caps_Lock + Lock {
  18. action = LockMods(modifiers = Lock, unlockOnPress=false);
  19. };
  20. };
  21. partial xkb_compatibility "unlock-on-press" {
  22. interpret Caps_Lock {
  23. action = LockMods(modifiers = Lock, unlockOnPress);
  24. };
  25. interpret.repeat= False;
  26. interpret Caps_Lock + Lock {
  27. action = LockMods(modifiers = Lock, unlockOnPress);
  28. };
  29. };