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

hhk (5457B)


  1. //
  2. // XKB geometry for the Happy Hacking (Lite).
  3. // Different variants correspond to different switch
  4. // settings on the HHK.
  5. //
  6. // Copyright (c) Doug Palmer <doug@charvolant.org>, 2002
  7. //
  8. //Permission is hereby granted, free of charge, to any person obtaining a copy
  9. //of this software and associated documentation files (the "Software"), to deal
  10. //in the Software without restriction, including without limitation the rights
  11. //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. //copies of the Software, and to permit persons to whom the Software is
  13. //furnished to do so, subject to the following conditions:
  14. //
  15. //The above copyright notice and this permission notice shall be included in
  16. //all copies or substantial portions of the Software.
  17. //
  18. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. //THE SOFTWARE.
  25. // SW = 100 Default layout with windows keys
  26. default xkb_geometry "win1" {
  27. include "hhk(basic)"
  28. key.gap = 1;
  29. section "Space" {
  30. top = 86;
  31. left = 30;
  32. row {
  33. top = 1;
  34. keys {
  35. <LALT>,
  36. { <LWIN>, "DIAM" },
  37. { <SPCE>, "SPCE" },
  38. { <RWIN>, "DIAM" },
  39. <RALT>
  40. };
  41. };
  42. };
  43. };
  44. // SW = 101 Layout with windows and alt keys swapped
  45. xkb_geometry "win2" {
  46. include "hhk(basic)"
  47. key.gap = 1;
  48. section "Space" {
  49. top = 86;
  50. left = 30;
  51. row {
  52. top = 1;
  53. keys {
  54. <LWIN>,
  55. { <LALT>, "DIAM" },
  56. { <SPCE>, "SPCE" },
  57. { <RALT>, "DIAM" },
  58. <RWIN>
  59. };
  60. };
  61. };
  62. };
  63. // SW = 110 Default layout with windows keys, and left diamond = Fn key
  64. xkb_geometry "win3" {
  65. include "hhk(basic)"
  66. key.gap = 1;
  67. section "Space" {
  68. top = 86;
  69. left = 30;
  70. row {
  71. top = 1;
  72. keys {
  73. <LALT>,
  74. { <FN>, "DIAM" },
  75. { <SPCE>, "SPCE" },
  76. { <RWIN>, "DIAM" },
  77. <RALT>
  78. };
  79. };
  80. };
  81. };
  82. // SW = 101 Layout with windows and alt keys swapped and left-Alt = Fn key
  83. xkb_geometry "win4" {
  84. include "hhk(basic)"
  85. key.gap = 1;
  86. section "Space" {
  87. top = 86;
  88. left = 30;
  89. row {
  90. top = 1;
  91. keys {
  92. <FN>,
  93. { <LALT>, "DIAM" },
  94. { <SPCE>, "SPCE" },
  95. { <RALT>, "DIAM" },
  96. <RWIN>
  97. };
  98. };
  99. };
  100. };
  101. // SW = 000 Layout with Muhenkan and Henkan keys
  102. xkb_geometry "jp1" {
  103. include "hhk(basic)"
  104. key.gap = 1;
  105. section "Space" {
  106. top = 86;
  107. left = 30;
  108. row {
  109. top = 1;
  110. keys {
  111. <LALT>,
  112. { <NFER>, "DIAM" },
  113. { <SPCE>, "SPCE" },
  114. { <XFER>, "DIAM" },
  115. <RALT>
  116. };
  117. };
  118. };
  119. };
  120. // SW = 001 Layout with Muhenkan and Henkan keys swapped with Alt
  121. xkb_geometry "jp2" {
  122. include "hhk(basic)"
  123. key.gap = 1;
  124. section "Space" {
  125. top = 86;
  126. left = 30;
  127. row {
  128. top = 1;
  129. keys {
  130. <NFER>,
  131. { <LALT>, "DIAM" },
  132. { <SPCE>, "SPCE" },
  133. { <RALT>, "DIAM" },
  134. <XFER>
  135. };
  136. };
  137. };
  138. };
  139. // SW = 010 Layout with Henkan key and left-diamond as Fn
  140. xkb_geometry "jp3" {
  141. include "hhk(basic)"
  142. key.gap = 1;
  143. section "Space" {
  144. top = 86;
  145. left = 30;
  146. row {
  147. top = 1;
  148. keys {
  149. <LALT>,
  150. { <FN>, "DIAM" },
  151. { <SPCE>, "SPCE" },
  152. { <XFER>, "DIAM" },
  153. <RALT>
  154. };
  155. };
  156. };
  157. };
  158. // SW = 001 Layout with Henkan key swapped with Alt and left-Alt as Fn
  159. xkb_geometry "jp4" {
  160. include "hhk(basic)"
  161. key.gap = 1;
  162. section "Space" {
  163. top = 86;
  164. left = 30;
  165. row {
  166. top = 1;
  167. keys {
  168. <FN>,
  169. { <LALT>, "DIAM" },
  170. { <SPCE>, "SPCE" },
  171. { <RALT>, "DIAM" },
  172. <XFER>
  173. };
  174. };
  175. };
  176. };
  177. // Basic layout for non-switchable keys
  178. partial hidden xkb_geometry "basic" {
  179. description = "Happy Hacking";
  180. width = 290;
  181. height = 106;
  182. shape.cornerRadius = 1;
  183. shape "NORM" { { [18, 18] }, { [2, 1], [14, 14] } };
  184. shape "BKSP" { { [28, 18] }, { [2, 1], [24, 14] } };
  185. shape "TABK" { { [28, 18] }, { [2, 1], [24, 14] } };
  186. shape "CTRL" { { [32, 18] }, { [2, 1], [28, 14] } };
  187. shape "RTRN" { { [42, 18] }, { [2, 1], [38, 14] } };
  188. shape "LFSH" { { [42, 18] }, { [2, 1], [38, 14] } };
  189. shape "RTSH" { { [32, 18] }, { [2, 1], [28, 14] } };
  190. shape "DIAM" { { [28, 18] }, { [2, 1], [24, 14] } };
  191. shape "SPCE" { { [114, 18] }, { [2, 1], [110, 14] } };
  192. text.color = "black";
  193. text "PFULabel" { left = 16; top = 2; fontsize = 20; text = "PFU"; };
  194. text "HHKLabel" { left = 254; top = 90; text = "Happy Hacking\nKeyboard"; };
  195. section.left = 1;
  196. row.left = 1;
  197. key.shape = "NORM";
  198. key.gap = 1;
  199. section "Alphanumeric" {
  200. top = 10;
  201. row {
  202. top = 1;
  203. keys {
  204. <ESC>,
  205. <AE01>, <AE02>, <AE03>, <AE04>, <AE05>,
  206. <AE06>, <AE07>, <AE08>, <AE09>, <AE10>,
  207. <AE11>, <AE12>,
  208. <BKSL>, <TLDE>
  209. };
  210. };
  211. row {
  212. top = 20;
  213. keys {
  214. { <TAB>, "TABK" },
  215. <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
  216. <AD06>, <AD07>, <AD08>, <AD09>, <AD10>,
  217. <AD11>, <AD12>,
  218. { <BKSP>, "BKSP" }
  219. };
  220. };
  221. row {
  222. top = 39;
  223. keys {
  224. { <LCTL>, "CTRL" },
  225. <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
  226. <AC06>, <AC07>, <AC08>, <AC09>, <AC10>,
  227. <AC11>,
  228. { <RTRN>, "RTRN" }
  229. };
  230. };
  231. row {
  232. top = 58;
  233. keys {
  234. { <LFSH>, "LFSH" },
  235. <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
  236. <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
  237. { <RTSH>, "RTSH" },
  238. { <FN>, color = "grey20" }
  239. };
  240. };
  241. };
  242. alias <AC00> = <LCTL>;
  243. };