diff options
| author | Harley Laue <losinggeneration@gmail.com> | 2017-10-06 16:32:02 -0700 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-02-04 13:40:22 -0500 |
| commit | ac82cd1ba77f4ed8d38f17662864c6a56a8da293 (patch) | |
| tree | fdfe231bb612ccda84ab414ac587efcf5f9792db /users/losinggeneration/losinggeneration-common.h | |
| parent | 31f52291911e0e2d4a3626ceb5fad52657bb495f (diff) | |
| download | qmk_firmware-ac82cd1ba77f4ed8d38f17662864c6a56a8da293.tar.gz qmk_firmware-ac82cd1ba77f4ed8d38f17662864c6a56a8da293.zip | |
Added personal nyquist & levinson layouts
Diffstat (limited to 'users/losinggeneration/losinggeneration-common.h')
| -rw-r--r-- | users/losinggeneration/losinggeneration-common.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/users/losinggeneration/losinggeneration-common.h b/users/losinggeneration/losinggeneration-common.h new file mode 100644 index 000000000..8f5b8b241 --- /dev/null +++ b/users/losinggeneration/losinggeneration-common.h | |||
| @@ -0,0 +1,74 @@ | |||
| 1 | #ifndef LOSINGGENERATION_COMMON_H | ||
| 2 | #define LOSINGGENERATION_COMMON_H | ||
| 3 | |||
| 4 | /* Custom keys & combinations to be shorter for keymaps */ | ||
| 5 | #define KC_LCA LCA(KC_NO) | ||
| 6 | /* Fillers to make layering more clear */ | ||
| 7 | #define _______ KC_TRNS | ||
| 8 | #define XXXXXXX KC_NO | ||
| 9 | |||
| 10 | #define OSM_LSFT OSM(MOD_LSFT) | ||
| 11 | #define TD_CTL TD(TD_CTL_CTLALT) | ||
| 12 | #define TD_GUI TD(TD_LGUI_RGUI) | ||
| 13 | #define TD_ALT TD(TD_LALT_RALT) | ||
| 14 | #define MT_ENT SFT_T(KC_ENT) | ||
| 15 | #define MT_ESC CTL_T(KC_ESC) | ||
| 16 | |||
| 17 | /* Custom layer movements for keymaps */ | ||
| 18 | #define TD_ADJ TD(TD_ADJUST) | ||
| 19 | #define TO_GAME TO(_GAME) | ||
| 20 | #define TO_MS TO(_MOUSE) | ||
| 21 | #define TO_NUM TO(_NUMPAD) | ||
| 22 | #define MO_ADJ MO(_ADJUST) | ||
| 23 | |||
| 24 | /* Mouse keys */ | ||
| 25 | #define MS_BTN1 KC_MS_BTN1 | ||
| 26 | #define MS_BTN2 KC_MS_BTN2 | ||
| 27 | #define MS_BTN3 KC_MS_BTN3 | ||
| 28 | #define MS_BTN4 KC_MS_BTN4 | ||
| 29 | #define MS_BTN5 KC_MS_BTN5 | ||
| 30 | #define MS_LEFT KC_MS_LEFT | ||
| 31 | #define MS_DOWN KC_MS_DOWN | ||
| 32 | #define MS_UP KC_MS_UP | ||
| 33 | #define MS_RGHT KC_MS_RIGHT | ||
| 34 | #define MW_LEFT KC_MS_WH_LEFT | ||
| 35 | #define MW_DOWN KC_MS_WH_DOWN | ||
| 36 | #define MW_UP KC_MS_WH_UP | ||
| 37 | #define MW_RGHT KC_MS_WH_RIGHT | ||
| 38 | #define MS_ACL0 KC_MS_ACCEL0 | ||
| 39 | #define MS_ACL1 KC_MS_ACCEL1 | ||
| 40 | #define MS_ACL2 KC_MS_ACCEL2 | ||
| 41 | |||
| 42 | /* | ||
| 43 | * This will expand values sent to it to send to the KEYMAP macro so defines | ||
| 44 | * can be used by KEYMAP | ||
| 45 | */ | ||
| 46 | #define CATMAP(...) KEYMAP(__VA_ARGS__) | ||
| 47 | |||
| 48 | /* | ||
| 49 | Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 50 | The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 51 | Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 52 | entirely and just use numbers. | ||
| 53 | */ | ||
| 54 | #define _QWERTY 0 | ||
| 55 | #define _COLEMAK 1 | ||
| 56 | #define _WORKMAN 2 | ||
| 57 | #define _DVORAK 3 | ||
| 58 | #define _GAME 4 | ||
| 59 | #define _NUMPAD 5 | ||
| 60 | #define _MOUSE 6 | ||
| 61 | #define _LOWER 14 | ||
| 62 | #define _RAISE 15 | ||
| 63 | #define _ADJUST 16 | ||
| 64 | |||
| 65 | enum custom_keycodes { | ||
| 66 | QWERTY = SAFE_RANGE, | ||
| 67 | COLEMAK, | ||
| 68 | WORKMAN, | ||
| 69 | DVORAK, | ||
| 70 | LOWER, | ||
| 71 | RAISE, | ||
| 72 | }; | ||
| 73 | |||
| 74 | #endif | ||
