You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.3 KiB

  1. /* Copyright 2015-2016 Jack Humbert
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #ifndef KEYMAP_COLEMAK_H
  17. #define KEYMAP_COLEMAK_H
  18. #include "keymap.h"
  19. // For software implementation of colemak
  20. #define CM_Q KC_Q
  21. #define CM_W KC_W
  22. #define CM_F KC_E
  23. #define CM_P KC_R
  24. #define CM_G KC_T
  25. #define CM_J KC_Y
  26. #define CM_L KC_U
  27. #define CM_U KC_I
  28. #define CM_Y KC_O
  29. #define CM_SCLN KC_P
  30. #define CM_A KC_A
  31. #define CM_R KC_S
  32. #define CM_S KC_D
  33. #define CM_T KC_F
  34. #define CM_D KC_G
  35. #define CM_H KC_H
  36. #define CM_N KC_J
  37. #define CM_E KC_K
  38. #define CM_I KC_L
  39. #define CM_O KC_SCLN
  40. #define CM_COLN LSFT(CM_SCLN)
  41. #define CM_Z KC_Z
  42. #define CM_X KC_X
  43. #define CM_C KC_C
  44. #define CM_V KC_V
  45. #define CM_B KC_B
  46. #define CM_K KC_N
  47. #define CM_M KC_M
  48. #define CM_COMM KC_COMM
  49. #define CM_DOT KC_DOT
  50. #define CM_SLSH KC_SLSH
  51. // Make it easy to support these in macros
  52. // TODO: change macro implementation so these aren't needed
  53. #define KC_CM_Q CM_Q
  54. #define KC_CM_W CM_W
  55. #define KC_CM_F CM_F
  56. #define KC_CM_P CM_P
  57. #define KC_CM_G CM_G
  58. #define KC_CM_J CM_J
  59. #define KC_CM_L CM_L
  60. #define KC_CM_U CM_U
  61. #define KC_CM_Y CM_Y
  62. #define KC_CM_SCLN CM_SCLN
  63. #define KC_CM_A CM_A
  64. #define KC_CM_R CM_R
  65. #define KC_CM_S CM_S
  66. #define KC_CM_T CM_T
  67. #define KC_CM_D CM_D
  68. #define KC_CM_H CM_H
  69. #define KC_CM_N CM_N
  70. #define KC_CM_E CM_E
  71. #define KC_CM_I CM_I
  72. #define KC_CM_O CM_O
  73. #define KC_CM_Z CM_Z
  74. #define KC_CM_X CM_X
  75. #define KC_CM_C CM_C
  76. #define KC_CM_V CM_V
  77. #define KC_CM_B CM_B
  78. #define KC_CM_K CM_K
  79. #define KC_CM_M CM_M
  80. #define KC_CM_COMM CM_COMM
  81. #define KC_CM_DOT CM_DOT
  82. #define KC_CM_SLSH CM_SLSH
  83. #endif