1 #ifndef LOSINGGENERATION_COMMON_H
2 #define LOSINGGENERATION_COMMON_H
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
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)
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)
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
43 * This will expand values sent to it to send to the KEYMAP macro so defines
44 * can be used by KEYMAP
46 #define CATMAP(...) LAYOUT(__VA_ARGS__)
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.
65 enum custom_keycodes {