]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/losinggeneration/losinggeneration-common.h
Add Contra layout & cleanup a few things (#2998)
[qmk_firmware.git] / users / losinggeneration / losinggeneration-common.h
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(...) LAYOUT(__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