diff options
Diffstat (limited to 'users/klackygears/wrappers.h')
| -rw-r--r-- | users/klackygears/wrappers.h | 220 |
1 files changed, 220 insertions, 0 deletions
diff --git a/users/klackygears/wrappers.h b/users/klackygears/wrappers.h new file mode 100644 index 000000000..88cbae184 --- /dev/null +++ b/users/klackygears/wrappers.h | |||
| @@ -0,0 +1,220 @@ | |||
| 1 | #pragma once | ||
| 2 | #include "klackygears.h" | ||
| 3 | /* | ||
| 4 | Most of this is copied from drashna. I added and changed a few things but, it's all based off of his user folder. | ||
| 5 | */ | ||
| 6 | #if (!defined(LAYOUT) && defined(KEYMAP)) | ||
| 7 | #define LAYOUT KEYMAP | ||
| 8 | #endif | ||
| 9 | |||
| 10 | //Added other layout options | ||
| 11 | #define LAYOUT_ergodox_wrapper(...) LAYOUT_ergodox(__VA_ARGS__) | ||
| 12 | #define LAYOUT_ergodox_pretty_wrapper(...) LAYOUT_ergodox_pretty(__VA_ARGS__) | ||
| 13 | #define KEYMAP_wrapper(...) LAYOUT(__VA_ARGS__) | ||
| 14 | #define LAYOUT_wrapper(...) LAYOUT(__VA_ARGS__) | ||
| 15 | #define LAYOUT_ortho_4x12_wrapper(...) LAYOUT_ortho_4x12(__VA_ARGS__) | ||
| 16 | #define LAYOUT_ortho_5x10_wrapper(...) LAYOUT_ortho_5x10(__VA_ARGS__) | ||
| 17 | #define LAYOUT_ortho_5x5_wrapper(...) LAYOUT_ortho_5x5(__VA_ARGS__) | ||
| 18 | |||
| 19 | |||
| 20 | /* | ||
| 21 | NOTE: If you do a search/replace | ||
| 22 | then you need to add/remove underscores to keep the | ||
| 23 | lengths consistent. | ||
| 24 | */ | ||
| 25 | //keymaps for tap dance and without | ||
| 26 | #ifdef TAP_DANCE_ENABLE | ||
| 27 | #define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T | ||
| 28 | #define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G | ||
| 29 | #define _________________QWERTY_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B | ||
| 30 | |||
| 31 | #define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P | ||
| 32 | #define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN | ||
| 33 | #define _________________QWERTY_R3_________________ KC_N, KC_M, TD(TD_COMQUES), TD(TD_DTEX), LT(_MDIA,KC_SLASH) | ||
| 34 | |||
| 35 | |||
| 36 | #define _________________COLEMAK_L1________________ KC_Q, KC_W, KC_F, KC_P, KC_G | ||
| 37 | #define _________________COLEMAK_L2________________ KC_A, KC_R, KC_S, KC_T, KC_D | ||
| 38 | #define _________________COLEMAK_L3________________ KC_Z, KC_X, KC_C, KC_V, KC_B | ||
| 39 | |||
| 40 | #define _________________COLEMAK_R1________________ KC_J, KC_L, KC_U, KC_Y, KC_SCLN | ||
| 41 | #define _________________COLEMAK_R2________________ KC_H, KC_N, KC_E, KC_I, KC_O | ||
| 42 | #define _________________COLEMAK_R3________________ KC_K, KC_M, TD(TD_COMQUES), TD(TD_DTEX), KC_SLASH | ||
| 43 | /* | ||
| 44 | #define ______________COLEMAK_MOD_DH_L1____________ KC_Q, KC_W, KC_F, KC_P, KC_B | ||
| 45 | #define ______________COLEMAK_MOD_DH_L2____________ KC_A, KC_R, KC_S, KC_T, KC_G | ||
| 46 | #define ______________COLEMAK_MOD_DH_L3____________ KC_Z, KC_X, KC_C, KC_D, KC_V | ||
| 47 | |||
| 48 | #define ______________COLEMAK_MOD_DH_R1____________ KC_J, KC_L, KC_U, KC_Y, KC_SCLN | ||
| 49 | #define ______________COLEMAK_MOD_DH_R2____________ KC_M, KC_N, KC_E, KC_I, KC_O | ||
| 50 | #define ______________COLEMAK_MOD_DH_R3____________ KC_K, KC_H, KC_COMM, KC_DOT, KC_SLASH | ||
| 51 | */ | ||
| 52 | |||
| 53 | #define _______________DVORAK_L1___________________ KC_QUOT, TD(TD_COMQUES), TD(TD_DTEX), KC_P, KC_Y | ||
| 54 | #define _______________DVORAK_L2___________________ KC_A, KC_O, KC_E, KC_U, KC_I | ||
| 55 | #define _______________MACDVK_L3___________________ MT(MOD_LCTL,KC_SCLN), MT(MOD_LALT,KC_Q), MT(MOD_LGUI, KC_J), KC_K, KC_X | ||
| 56 | #define _______________WINDVK_L3___________________ MT(MOD_LGUI,KC_SCLN), MT(MOD_LALT,KC_Q), MT(MOD_LCTL, KC_J), KC_K, KC_X | ||
| 57 | |||
| 58 | #define _______________DVORAK_R1___________________ KC_F, KC_G, KC_C, KC_R, KC_L | ||
| 59 | #define _______________DVORAK_R2___________________ KC_D, KC_H, KC_T, KC_N, KC_S | ||
| 60 | #define _______________MACDVK_R3___________________ KC_B, KC_M, MT(MOD_LGUI,KC_W), MT(MOD_LALT,KC_V), LT(_MDIA,KC_Z) | ||
| 61 | #define _______________WINDVK_R3___________________ KC_B, KC_M, MT(MOD_LCTL,KC_W), MT(MOD_LALT,KC_V), LT(_MDIA,KC_Z) | ||
| 62 | |||
| 63 | #define __________c39__MACDVK_L3___________________ MT(MOD_LCTL,KC_SCLN), MT(MOD_LALT,KC_Q), MT(MOD_LGUI, KC_J), LT(_SYMB,KC_K), TD(TD_XSPC) | ||
| 64 | #define __________c39__WINDVK_L3___________________ MT(MOD_LGUI,KC_SCLN), MT(MOD_LALT,KC_Q), MT(MOD_LCTL, KC_J), LT(_SYMB,KC_K), TD(TD_XSPC) | ||
| 65 | #define __________c39__MACDVK_R3___________________ LT(_MNMB,KC_B), LT(_SYMB,KC_M), MT(MOD_LGUI,KC_W), MT(MOD_LALT,KC_V), LT(_MDIA,KC_Z) | ||
| 66 | #define __________c39__WINDVK_R3___________________ LT(_NUMB,KC_B), LT(_SYMB,KC_M), MT(MOD_LCTL,KC_W), MT(MOD_LALT,KC_V), LT(_MDIA,KC_Z) | ||
| 67 | #else | ||
| 68 | |||
| 69 | #define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T | ||
| 70 | #define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G | ||
| 71 | #define _________________QWERTY_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B | ||
| 72 | |||
| 73 | #define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P | ||
| 74 | #define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN | ||
| 75 | #define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, LT(_MDIA,KC_SLASH) | ||
| 76 | |||
| 77 | |||
| 78 | #define _________________COLEMAK_L1________________ KC_Q, KC_W, KC_F, KC_P, KC_G | ||
| 79 | #define _________________COLEMAK_L2________________ KC_A, KC_R, KC_S, KC_T, KC_D | ||
| 80 | #define _________________COLEMAK_L3________________ KC_Z, KC_X, KC_C, KC_V, KC_B | ||
| 81 | |||
| 82 | #define _________________COLEMAK_R1________________ KC_J, KC_L, KC_U, KC_Y, KC_SCLN | ||
| 83 | #define _________________COLEMAK_R2________________ KC_H, KC_N, KC_E, KC_I, KC_O | ||
| 84 | #define _________________COLEMAK_R3________________ KC_K, KC_M, KC_COMM, KC_DOT, KC_SLASH | ||
| 85 | |||
| 86 | #define _______________DVORAK_L1___________________ KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y | ||
| 87 | #define _______________DVORAK_L2___________________ KC_A, KC_O, KC_E, KC_U, KC_I | ||
| 88 | #define _______________MACDVK_L3___________________ MT(MOD_LCTL,KC_SCLN), MT(MOD_LALT,KC_Q), MT(MOD_LGUI, KC_J), KC_K, KC_X | ||
| 89 | #define _______________WINDVK_L3___________________ MT(MOD_LGUI,KC_SCLN), MT(MOD_LALT,KC_Q), MT(MOD_LCTL, KC_J), KC_K, KC_X | ||
| 90 | |||
| 91 | #define _______________DVORAK_R1___________________ KC_F, KC_G, KC_C, KC_R, KC_L | ||
| 92 | #define _______________DVORAK_R2___________________ KC_D, KC_H, KC_T, KC_N, KC_S | ||
| 93 | #define _______________MACDVK_R3___________________ KC_B, KC_M, MT(MOD_LGUI,KC_W), MT(MOD_LALT,KC_V), LT(_MDIA,KC_Z) | ||
| 94 | #define _______________WINDVK_R3___________________ KC_B, KC_M, MT(MOD_LCTL,KC_W), MT(MOD_LALT,KC_V), LT(_MDIA,KC_Z) | ||
| 95 | #endif | ||
| 96 | |||
| 97 | /* | ||
| 98 | #define ________________DVORAK_AU_L1_______________ KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y | ||
| 99 | #define ________________DVORAK_AU_L2_______________ KC_O, KC_A, KC_E, KC_I, KC_U | ||
| 100 | #define ________________DVORAK_AU_L3_______________ KC_SCLN, KC_Q, KC_J, KC_K, KC_X | ||
| 101 | |||
| 102 | #define ________________DVORAK_AU_R1_______________ KC_F, KC_G, KC_C, KC_R, KC_L | ||
| 103 | #define ________________DVORAK_AU_R2_______________ KC_D, KC_H, KC_T, KC_N, KC_S | ||
| 104 | #define ________________DVORAK_AU_R3_______________ KC_B, KC_M, KC_W, KC_V, KC_Z | ||
| 105 | |||
| 106 | |||
| 107 | #define _________________WORKMAN_L1________________ KC_Q, KC_D, KC_R, KC_W, KC_B | ||
| 108 | #define _________________WORKMAN_L2________________ KC_A, KC_S, KC_H, KC_T, KC_G | ||
| 109 | #define _________________WORKMAN_L3________________ KC_Z, KC_X, KC_M, KC_C, KC_V | ||
| 110 | |||
| 111 | #define _________________WORKMAN_R1________________ KC_J, KC_F, KC_U, KC_P, KC_SCLN | ||
| 112 | #define _________________WORKMAN_R2________________ KC_Y, KC_N, KC_E, KC_O, KC_I | ||
| 113 | #define _________________WORKMAN_R3________________ KC_K, KC_L, TD(TD_COMQUES), TD(TD_DTEX), KC_SLASH | ||
| 114 | |||
| 115 | |||
| 116 | #define _________________NORMAN_L1_________________ KC_Q, KC_W, KC_D, KC_F, KC_K | ||
| 117 | #define _________________NORMAN_L2_________________ KC_A, KC_S, KC_E, KC_T, KC_G | ||
| 118 | #define _________________NORMAN_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B | ||
| 119 | |||
| 120 | #define _________________NORMAN_R1_________________ KC_J, KC_U, KC_R, KC_L, KC_SCLN | ||
| 121 | #define _________________NORMAN_R2_________________ KC_Y, KC_N, KC_I, KC_O, KC_U | ||
| 122 | #define _________________NORMAN_R3_________________ KC_P, KC_M, KC_COMM, KC_DOT, KC_SLASH | ||
| 123 | */ | ||
| 124 | |||
| 125 | // thumb key layouts | ||
| 126 | #define ________WIN_THUMB_CLUSTER_________ LT(_SYMB,KC_SPC), LT(_NUMB,KC_BSPC), LT(_NUMB,KC_TAB), LT(_SYMB,KC_ENT) | ||
| 127 | #define ________MAC_THUMB_CLUSTER_________ LT(_SYMB,KC_SPC), LT(_MNMB,KC_BSPC), LT(_MNMB,KC_TAB), LT(_SYMB,KC_ENT) | ||
| 128 | |||
| 129 | #define __________________WIN_THUMB_CLUSTER_V2______________ LT(_FUNC,KC_ENT), LT(_NUMB,KC_BSPC), MT(MOD_LSFT,KC_SPC), LT(_NUMB,KC_TAB), LT(_SYMB,KC_ENT), KC_RSFT | ||
| 130 | #define __________________MAC_THUMB_CLUSTER_V2______________ LT(_FUNC,KC_ENT), LT(_MNMB,KC_BSPC), MT(MOD_LSFT,KC_SPC), LT(_MNMB,KC_TAB), LT(_SYMB,KC_ENT), KC_RSFT | ||
| 131 | #define ________MAC_THUMB_L______ LT(_FUNC,KC_ENT), LT(_MNMB,KC_BSPC), MT(MOD_LSFT,KC_SPC) | ||
| 132 | #define ________MAC_THUMB_R______ LT(_MNMB,KC_TAB), LT(_SYMB,KC_ENT), LT(_MDIA,KC_ENT) | ||
| 133 | #define ________WIN_THUMB_L______ LT(_FUNC,KC_ENT), LT(_NUMB,KC_BSPC), MT(MOD_LSFT,KC_SPC) | ||
| 134 | #define ________WIN_THUMB_R______ LT(_NUMB,KC_TAB), LT(_SYMB,KC_ENT), LT(_MDIA,KC_ENT) | ||
| 135 | |||
| 136 | // Mission Control Commands | ||
| 137 | #define ________MAC_MISSION_CTRL__________ LCTL(KC_LEFT), LCTL(KC_UP), LCTL(KC_DOWN), LCTL(KC_RGHT) | ||
| 138 | |||
| 139 | //Number Row | ||
| 140 | #define _________________NUMBER_L__________________ KC_1, KC_2, KC_3, KC_4, KC_5 | ||
| 141 | #define _________________NUMBER_R__________________ KC_6, KC_7, KC_8, KC_9, KC_0 | ||
| 142 | |||
| 143 | //keymaps for tap dance and without | ||
| 144 | #ifdef TAP_DANCE_ENABLE | ||
| 145 | //Arrow keys and copy-paste shortcuts for MAC OS | ||
| 146 | #define _________________MACNAV_L1_________________ KC_PGUP, KC_PGDN, KC_HOME, KC_END, _______ | ||
| 147 | #define _________________MACNAV_L2_________________ KC_LEFT, KC_UP, KC_DOWN, KC_RIGHT, _______ | ||
| 148 | #define _________________MACNAV_L3_________________ _______, LGUI(KC_A), TD(TD_MCCCPY), TD(TD_MCPSTIN), KC_DEL | ||
| 149 | |||
| 150 | //Arrow keys and copy-paste shortcuts for Windows and Microsoft Access & Excel | ||
| 151 | #define _________________WINNAV_L1_________________ KC_PGUP, KC_PGDN, KC_HOME, KC_END, TD(TD_FNDR) | ||
| 152 | #define _________________WINNAV_L2_________________ KC_LEFT, KC_UP, KC_DOWN, KC_RIGHT, TD(TD_PTSP) | ||
| 153 | #define _________________WINNAV_L3_________________ TD(TD_ACCW), LCTL(KC_A), TD(TD_CCPY), TD(TD_PSTI), TD(TD_DDEL) | ||
| 154 | |||
| 155 | //Numpad layout with different mod-tap keys for MAC OS and Windows | ||
| 156 | #define _________________NUMB_R1___________________ TD(TD_MINPLS), KC_7, KC_8, KC_9, KC_COLN | ||
| 157 | #define _________________NUMB_R2___________________ TD(TD_DIVMLT), KC_4, KC_5, KC_6, C_S_T(KC_COLN) | ||
| 158 | #define _________________NUMB_R3_MAC_______________ TD(TD_DOTEQL), KC_1, MT(MOD_LGUI,KC_2), MT(MOD_LALT,KC_3), MT(MOD_LCTL,KC_0) | ||
| 159 | #define _________________NUMB_R3_WIN_______________ TD(TD_DOTEQL), KC_1, MT(MOD_LCTL,KC_2), MT(MOD_LALT,KC_3), MT(MOD_LGUI,KC_0) | ||
| 160 | #define _________________NUMB_R4___________________ KC_LSFT, KC_0, KC_0, _______, _______ | ||
| 161 | #else | ||
| 162 | //Arrow keys and copy-paste shortcuts for MAC OS | ||
| 163 | #define _________________MACNAV_L1_________________ KC_PGUP, KC_PGDN, KC_HOME, KC_END, _______ | ||
| 164 | #define _________________MACNAV_L2_________________ KC_LEFT, KC_UP, KC_DOWN, KC_RIGHT, _______ | ||
| 165 | #define _________________MACNAV_L3_________________ _______, LGUI(KC_A), _______, _______, KC_DEL | ||
| 166 | |||
| 167 | //Arrow keys and copy-paste shortcuts for Windows and Microsoft Access & Excel | ||
| 168 | #define _________________WINNAV_L1_________________ KC_PGUP, KC_PGDN, KC_HOME, KC_END, _______ | ||
| 169 | #define _________________WINNAV_L2_________________ KC_LEFT, KC_UP, KC_DOWN, KC_RIGHT, _______ | ||
| 170 | #define _________________WINNAV_L3_________________ _______, _______, _______, _______, _______ | ||
| 171 | #define _________________NUMB_R1___________________ KC_PMNS, KC_7, KC_8, KC_9, KC_PPLS | ||
| 172 | #define _________________NUMB_R2___________________ KC_PSLS, KC_4, KC_5, KC_6, KC_PAST | ||
| 173 | #define _________________NUMB_R3_MAC_______________ KC_DOT, KC_1, MT(MOD_LGUI,KC_2), MT(MOD_LALT,KC_3), MT(MOD_LCTL,KC_0) | ||
| 174 | #define _________________NUMB_R3_WIN_______________ KC_DOT, KC_1, MT(MOD_LCTL,KC_2), MT(MOD_LALT,KC_3), MT(MOD_LGUI,KC_0) | ||
| 175 | #define _________________NUMB_R4___________________ KC_LSFT, KC_0, KC_0, _______, _______ | ||
| 176 | #endif | ||
| 177 | |||
| 178 | //Function Row | ||
| 179 | /* | ||
| 180 | #define _________________FUNC_LEFT_________________ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5 | ||
| 181 | #define _________________FUNC_RIGHT________________ KC_F6, KC_F7, KC_F8, KC_F9, KC_F10 | ||
| 182 | */ | ||
| 183 | |||
| 184 | //Function keys as macropad | ||
| 185 | #define _____________FUNC_1_______________ KC_F9, KC_F10, KC_F11, KC_F12 | ||
| 186 | #define _____________FUNC_2_______________ KC_F5, KC_F6, KC_F7, KC_F8 | ||
| 187 | #define _____________FUNC_3_______________ KC_F1, KC_F2, KC_F3, KC_F4 | ||
| 188 | |||
| 189 | //RGB keys | ||
| 190 | #if defined RGBLIGHT_ENABLE || defined RGB_MATRIX_ENABLE | ||
| 191 | #define _________________RGB_1_____________________ RGBRST, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI | ||
| 192 | #define _________________RGB_2_____________________ RGB_MOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD | ||
| 193 | #else | ||
| 194 | #define _________________RGB_1_____________________ _______, _______, _______, _______, _______ | ||
| 195 | #define _________________RGB_2_____________________ _______, _______, _______, _______, _______ | ||
| 196 | #endif | ||
| 197 | |||
| 198 | //Audio keys | ||
| 199 | #define _________________MEDIA_____________________ KC_MPLY, KC_MUTE, KC_VOLD, KC_VOLU, _______ | ||
| 200 | #define _________________MEDIA_V2__________________ KC_EJCT, KC_MRWD, KC_MPLY, KC_MFFD, _______ | ||
| 201 | |||
| 202 | //Base layer keys | ||
| 203 | #define _________________LYOUT_____________________ _______, KC_QWERTY, KC_MACBASE, KC_WINBASE, _______ | ||
| 204 | |||
| 205 | //Punctuation keys | ||
| 206 | #define _________________PUNC_L1___________________ KC_BSLS, KC_AT, KC_HASH, KC_DLR, KC_PERC | ||
| 207 | #define _________________PUNC_L1_ALT_______________ KC_DQT, KC_AT, KC_HASH, KC_DLR, KC_PERC | ||
| 208 | #define _________________PUNC_L2___________________ KC_PLUS, KC_MINS, KC_ASTR, KC_SLSH, KC_EQL | ||
| 209 | #define _________________PUNC_L3___________________ KC_LBRC, KC_RBRC, KC_LPRN, KC_RPRN, KC_AMPR | ||
| 210 | #define _________________PUNC_L3_ALT_______________ _______, _______, KC_TILD, KC_CIRC, KC_GRV | ||
| 211 | #define _________________PUNC_R1___________________ _______, KC_DQT, KC_EQL, _______, _______ | ||
| 212 | #define _________________PUNC_R2___________________ _______, KC_ASTR, KC_SLSH, KC_PLUS, KC_MINS | ||
| 213 | #define _________________PUNC_R3___________________ _______, KC_EQL, KC_BSLS, _______, _______ | ||
| 214 | |||
| 215 | //Make Shortcuts and window switching | ||
| 216 | #define _____________FUNC_L1_______________________ MAKEKF, MAKEK, _______, KC_ESC, LCTL(LALT(KC_DEL)) | ||
| 217 | #define _____________FUNC_L3_______________________ KC_LGUI, KC_RALT, KC_LCTL, KC_TAB, _______ | ||
| 218 | |||
| 219 | |||
| 220 | #define _________________KC_BLANK__________________ _______, _______, _______, _______, _______ | ||
