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

altwin (3670B)


  1. // Meta is mapped to second level of Alt.
  2. partial modifier_keys
  3. xkb_symbols "meta_alt" {
  4. key <LALT> { [ Alt_L, Meta_L ] };
  5. key <RALT> { type[Group1] = "TWO_LEVEL",
  6. symbols[Group1] = [ Alt_R, Meta_R ] };
  7. modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
  8. // modifier_map Mod4 {};
  9. };
  10. // Alt is mapped to the Super and the usual Alt.
  11. partial modifier_keys
  12. xkb_symbols "alt_win" {
  13. key <LWIN> { [ Alt_L ] };
  14. key <RWIN> { [ Alt_R ] };
  15. modifier_map Mod1 { <LWIN>, <RWIN> };
  16. };
  17. // Ctrl is mapped to the Super and the usual Ctrl keys.
  18. partial modifier_keys
  19. xkb_symbols "ctrl_win" {
  20. key <LWIN> { [ Control_L ] };
  21. key <RWIN> { [ Control_R ] };
  22. modifier_map Control { <LWIN>, <RWIN> };
  23. };
  24. // Ctrl is mapped to the Right Super and the usual Ctrl key.
  25. partial modifier_keys
  26. xkb_symbols "ctrl_rwin" {
  27. key <RWIN> { [ Control_R ] };
  28. modifier_map Control { <RWIN> };
  29. };
  30. // Ctrl is mapped to the Alt, Alt to the Super, and Win to the Ctrl keys.
  31. partial modifier_keys
  32. xkb_symbols "ctrl_alt_win" {
  33. key <LALT> { [ Control_L, Control_L ] };
  34. key <RALT> { type[Group1] = "TWO_LEVEL",
  35. symbols[Group1] = [ Control_R, Control_R ] };
  36. key <LWIN> { [ Alt_L, Meta_L ] };
  37. key <RWIN> { [ Alt_R, Meta_R ] };
  38. key <LCTL> { [ Super_L ] };
  39. key <RCTL> { [ Super_R ] };
  40. modifier_map Control { <RALT>, <LALT> };
  41. modifier_map Mod1 { <LWIN>, <RWIN> };
  42. modifier_map Mod4 { <LCTL>, <RCTL> };
  43. };
  44. // Meta is mapped to the Super.
  45. partial modifier_keys
  46. xkb_symbols "meta_win" {
  47. key <LALT> { [ Alt_L, Alt_L ] };
  48. key <RALT> { type[Group1] = "TWO_LEVEL",
  49. symbols[Group1] = [ Alt_R, Alt_R ] };
  50. key <LWIN> { [ Meta_L ] };
  51. key <RWIN> { [ Meta_R ] };
  52. modifier_map Mod1 { Alt_L, Alt_R };
  53. modifier_map Mod4 { <META>, Meta_L, Meta_R };
  54. };
  55. // Meta is mapped to the left Win key.
  56. partial modifier_keys
  57. xkb_symbols "left_meta_win" {
  58. key <LALT> { [ Alt_L, Alt_L ] };
  59. key <LWIN> { [ Meta_L ] };
  60. modifier_map Mod1 { Alt_L };
  61. modifier_map Mod4 { <META>, Meta_L };
  62. };
  63. // Hyper is mapped to the Super.
  64. partial modifier_keys
  65. xkb_symbols "hyper_win" {
  66. key <LWIN> { [ Hyper_L ] };
  67. key <RWIN> { [ Hyper_R ] };
  68. modifier_map Mod4 { Hyper_L, Hyper_R };
  69. };
  70. // Menu is mapped to the Menu key.
  71. partial modifier_keys
  72. xkb_symbols "menu" {
  73. key <MENU> { [ Menu ] };
  74. };
  75. // Menu is mapped to the right Win key.
  76. partial modifier_keys
  77. xkb_symbols "menu_win" {
  78. key <MENU> { [ Super_R ] };
  79. };
  80. // Layout for Tux key caps with additional right Alt key
  81. partial modifier_keys
  82. xkb_symbols "alt_super_win" {
  83. key <LALT> { [ Alt_L, Meta_L ] };
  84. key <RWIN> { [ Alt_R, Meta_R ] };
  85. key <LWIN> { [ Super_L ]};
  86. key <MENU> { [ Super_R ] };
  87. modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
  88. modifier_map Mod4 { Super_L, Super_R };
  89. };
  90. // Swap the Alt and Super.
  91. partial modifier_keys
  92. xkb_symbols "swap_alt_win" {
  93. include "altwin(swap_lalt_lwin)"
  94. include "altwin(swap_ralt_rwin)"
  95. };
  96. // Swap the left Alt and Super.
  97. partial modifier_keys
  98. xkb_symbols "swap_lalt_lwin" {
  99. key <LALT> { type[Group1] = "ONE_LEVEL",
  100. symbols[Group1] = [ Super_L ] };
  101. key <LWIN> { [ Alt_L, Meta_L ] };
  102. };
  103. // Swap the right Alt and Super.
  104. hidden partial modifier_keys
  105. xkb_symbols "swap_ralt_rwin" {
  106. key <RALT> { type[Group1] = "ONE_LEVEL",
  107. symbols[Group1] = [ Super_R ] };
  108. key <RWIN> { [ Alt_R, Meta_R ] };
  109. };
  110. // Win is mapped to the PrtSc key (and the usual Win key).
  111. partial modifier_keys
  112. xkb_symbols "prtsc_rwin" {
  113. replace key <PRSC> { [ Super_R, Super_R ] };
  114. modifier_map Mod4 { <PRSC>, <RWIN> };
  115. };