logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

shift (2240B)


  1. // Cancel CapsLock when a Shift key is pressed.
  2. partial modifier_keys
  3. xkb_symbols "breaks_caps" {
  4. key <LFSH> {
  5. type = "ALPHABETIC",
  6. actions [Group1] = [
  7. SetMods(modifiers=Shift),
  8. SetMods(modifiers=Shift+Lock,clearLocks)
  9. ]
  10. };
  11. key <RTSH> {
  12. type = "ALPHABETIC",
  13. actions [Group1] = [
  14. SetMods(modifiers=Shift),
  15. SetMods(modifiers=Shift+Lock,clearLocks)
  16. ]
  17. };
  18. };
  19. // Toggle CapsLock when pressed together with the other Shift key.
  20. partial modifier_keys
  21. xkb_symbols "lshift_both_capslock" {
  22. key <LFSH> {
  23. type[Group1]="TWO_LEVEL",
  24. symbols[Group1] = [ Shift_L, Caps_Lock ]
  25. };
  26. };
  27. // Toggle CapsLock when pressed together with the other Shift key.
  28. partial modifier_keys
  29. xkb_symbols "rshift_both_capslock" {
  30. key <RTSH> {
  31. type[Group1]="TWO_LEVEL",
  32. symbols[Group1] = [ Shift_R, Caps_Lock ]
  33. };
  34. };
  35. partial modifier_keys
  36. xkb_symbols "both_capslock" {
  37. include "shift(lshift_both_capslock)"
  38. include "shift(rshift_both_capslock)"
  39. };
  40. // Set CapsLock when pressed with the other Shift key, release it when pressed alone.
  41. partial modifier_keys
  42. xkb_symbols "lshift_both_capslock_cancel" {
  43. key <LFSH> {
  44. type[Group1]="ALPHABETIC",
  45. symbols[Group1] = [ Shift_L, Caps_Lock ]
  46. };
  47. };
  48. // Set CapsLock when pressed with the other Shift key, release it when pressed alone.
  49. partial modifier_keys
  50. xkb_symbols "rshift_both_capslock_cancel" {
  51. key <RTSH> {
  52. type[Group1]="ALPHABETIC",
  53. symbols[Group1] = [ Shift_R, Caps_Lock ]
  54. };
  55. };
  56. partial modifier_keys
  57. xkb_symbols "both_capslock_cancel" {
  58. include "shift(lshift_both_capslock_cancel)"
  59. include "shift(rshift_both_capslock_cancel)"
  60. };
  61. // Toggle ShiftLock when pressed together with the other Shift key.
  62. partial modifier_keys
  63. xkb_symbols "lshift_both_shiftlock" {
  64. key <LFSH> {
  65. type[Group1]="TWO_LEVEL",
  66. symbols[Group1] = [ Shift_L, Shift_Lock ]
  67. };
  68. };
  69. // Toggle ShiftLock when pressed together with the other Shift key.
  70. partial modifier_keys
  71. xkb_symbols "rshift_both_shiftlock" {
  72. key <RTSH> {
  73. type[Group1]="TWO_LEVEL",
  74. symbols[Group1] = [ Shift_R, Shift_Lock ]
  75. };
  76. };
  77. partial modifier_keys
  78. xkb_symbols "both_shiftlock" {
  79. include "shift(lshift_both_shiftlock)"
  80. include "shift(rshift_both_shiftlock)"
  81. };