2
0

keymap_colemak.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. #pragma once
  17. #include "keymap.h"
  18. // For software implementation of colemak
  19. #define CM_Q KC_Q
  20. #define CM_W KC_W
  21. #define CM_F KC_E
  22. #define CM_P KC_R
  23. #define CM_G KC_T
  24. #define CM_J KC_Y
  25. #define CM_L KC_U
  26. #define CM_U KC_I
  27. #define CM_Y KC_O
  28. #define CM_SCLN KC_P
  29. #define CM_A KC_A
  30. #define CM_R KC_S
  31. #define CM_S KC_D
  32. #define CM_T KC_F
  33. #define CM_D KC_G
  34. #define CM_H KC_H
  35. #define CM_N KC_J
  36. #define CM_E KC_K
  37. #define CM_I KC_L
  38. #define CM_O KC_SCLN
  39. #define CM_COLN LSFT(CM_SCLN)
  40. #define CM_Z KC_Z
  41. #define CM_X KC_X
  42. #define CM_C KC_C
  43. #define CM_V KC_V
  44. #define CM_B KC_B
  45. #define CM_K KC_N
  46. #define CM_M KC_M
  47. #define CM_COMM KC_COMM
  48. #define CM_DOT KC_DOT
  49. #define CM_SLSH KC_SLSH
  50. // Make it easy to support these in macros
  51. // TODO: change macro implementation so these aren't needed
  52. #define KC_CM_Q CM_Q
  53. #define KC_CM_W CM_W
  54. #define KC_CM_F CM_F
  55. #define KC_CM_P CM_P
  56. #define KC_CM_G CM_G
  57. #define KC_CM_J CM_J
  58. #define KC_CM_L CM_L
  59. #define KC_CM_U CM_U
  60. #define KC_CM_Y CM_Y
  61. #define KC_CM_SCLN CM_SCLN
  62. #define KC_CM_A CM_A
  63. #define KC_CM_R CM_R
  64. #define KC_CM_S CM_S
  65. #define KC_CM_T CM_T
  66. #define KC_CM_D CM_D
  67. #define KC_CM_H CM_H
  68. #define KC_CM_N CM_N
  69. #define KC_CM_E CM_E
  70. #define KC_CM_I CM_I
  71. #define KC_CM_O CM_O
  72. #define KC_CM_Z CM_Z
  73. #define KC_CM_X CM_X
  74. #define KC_CM_C CM_C
  75. #define KC_CM_V CM_V
  76. #define KC_CM_B CM_B
  77. #define KC_CM_K CM_K
  78. #define KC_CM_M CM_M
  79. #define KC_CM_COMM CM_COMM
  80. #define KC_CM_DOT CM_DOT
  81. #define KC_CM_SLSH CM_SLSH