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

ctrl (3964B)


  1. // Eliminate CapsLock, making it another Ctrl.
  2. partial modifier_keys
  3. xkb_symbols "nocaps" {
  4. replace key <CAPS> { [ Control_L, Control_L ] };
  5. modifier_map Control { <CAPS>, <LCTL> };
  6. };
  7. // Make the left Ctrl key a left Meta.
  8. xkb_symbols "lctrl_meta" {
  9. replace key <LCTL> { [ Meta_L ] };
  10. modifier_map Mod4 { <LCTL> };
  11. };
  12. // Swap the functions of the CapsLock key and the left Ctrl key.
  13. partial modifier_keys
  14. xkb_symbols "swapcaps" {
  15. replace key <CAPS> { [ Control_L ] };
  16. replace key <LCTL> { [ Caps_Lock ] };
  17. modifier_map Control { <CAPS> };
  18. modifier_map Lock { <LCTL> };
  19. };
  20. // Swap the functions of the CapsLock key and the left Ctrl key,
  21. // but make the Ctrl key a 'Hyper' modifier
  22. partial modifier_keys
  23. xkb_symbols "swapcaps_hyper" {
  24. replace key <CAPS> { [ Control_L ] };
  25. replace key <LCTL> { [ Hyper_L ] };
  26. modifier_map Control { <CAPS> };
  27. modifier_map Mod3 { <LCTL> };
  28. };
  29. // Set CapsLock to left Ctrl and left Ctrl to switch layout.
  30. partial modifier_keys
  31. xkb_symbols "swapcaps_and_switch_layout" {
  32. replace key <CAPS> { [ Control_L ] };
  33. replace key <LCTL> { [ ISO_Next_Group ] };
  34. modifier_map Control { <CAPS> };
  35. modifier_map Lock { <LCTL> };
  36. };
  37. // Move Ctrl to the leftmost key on the middle row and CapsLock to the
  38. // leftmost key on the bottom row. Only works if the geometry or keycodes
  39. // file has defined appropriate aliases for the keys in question.
  40. partial modifier_keys
  41. xkb_symbols "ac_ctrl" {
  42. replace key <AC00> { [ Control_L ] };
  43. replace key <AA00> { [ Caps_Lock ] };
  44. modifier_map Control { <AC00> };
  45. modifier_map Lock { <AA00> };
  46. };
  47. // Move Ctrl to the leftmost key on the bottom row and CapsLock to the
  48. // leftmost key on the middle row. Only works if the geometry or keycodes
  49. // file has defined appropriate aliases for the keys in question.
  50. partial modifier_keys
  51. xkb_symbols "aa_ctrl" {
  52. replace key <AA00> { [ Control_L ] };
  53. replace key <AC00> { [ Caps_Lock ] };
  54. modifier_map Control { <AA00> };
  55. modifier_map Lock { <AC00> };
  56. };
  57. // Right Ctrl functions as another right Alt.
  58. partial modifier_keys
  59. xkb_symbols "rctrl_ralt" {
  60. key <RCTL> { symbols[Group1]= [ Alt_R ] };
  61. modifier_map Mod1{ <RCTL> };
  62. };
  63. // Menu key functions as another right Ctrl.
  64. partial modifier_keys
  65. xkb_symbols "menu_rctrl" {
  66. replace key <MENU> { [ Control_R, Control_R ] };
  67. modifier_map Control { Control_L, <MENU> };
  68. };
  69. // Right Alt key functions as another right Ctrl.
  70. partial modifier_keys
  71. xkb_symbols "ralt_rctrl" {
  72. replace key <RALT> { type[Group1] = "TWO_LEVEL",
  73. symbols[Group1] = [ Control_R, Control_R ] };
  74. modifier_map Control { <RALT> };
  75. };
  76. // Swap the functions of the left Alt key and the left Ctrl key.
  77. partial modifier_keys
  78. xkb_symbols "swap_lalt_lctl" {
  79. replace key <LALT> { [ Control_L, Control_L ] };
  80. replace key <LCTL> { [ Alt_L, Meta_L ] };
  81. modifier_map Mod1 { <LCTL> };
  82. modifier_map Control { <LALT> };
  83. };
  84. // Swap the functions of the left Win key and the left Ctrl key.
  85. partial modifier_keys
  86. xkb_symbols "swap_lwin_lctl" {
  87. replace key <LWIN> { [ Control_L ] };
  88. replace key <LCTL> { [ Super_L ] };
  89. modifier_map Mod4 { <LCTL> };
  90. modifier_map Control { <LWIN> };
  91. };
  92. // Swap the functions of the right Win key and the right Ctrl key.
  93. partial modifier_keys
  94. xkb_symbols "swap_rwin_rctl" {
  95. replace key <RWIN> { [ Control_R ] };
  96. replace key <RCTL> { [ Super_R ] };
  97. modifier_map Mod4 { <RCTL> };
  98. modifier_map Control { <RWIN> };
  99. };
  100. // Map Ctrl to the left Alt key, Alt to the left Win key,
  101. // and Super to the left Ctrl key.
  102. partial modifier_keys
  103. xkb_symbols "swap_lalt_lctl_lwin" {
  104. replace key <LALT> { [ Control_L, Control_L ] };
  105. replace key <LWIN> { [ Alt_L, Meta_L ] };
  106. replace key <LCTL> { [ Super_L ] };
  107. modifier_map Mod1 { <LWIN> };
  108. modifier_map Mod4 { <LCTL> };
  109. modifier_map Control { <LALT> };
  110. };