]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/ishtob/ishtob.h
Helix-serial.c configuration improvement (#4370)
[qmk_firmware.git] / users / ishtob / ishtob.h
1 #ifndef USERSPACE
2 #define USERSPACE
3 #include "quantum.h"
4
5 enum userspace_keycodes {
6   QWERTY = SAFE_RANGE,
7   COLEMAK,
8   DVORAK,
9   PLOVER,
10   LOWER,
11   RAISE,
12   BACKLIT,
13   EXT_PLV,
14   DFU,
15   P_CITRIX, //these macro exsists in macros_private.c, which is excluded from git
16   P_MPASS,
17   P_META,
18   O_DAYRN,
19   O_RTQ6H,
20   O_3DRN,
21   O_AUTODC,
22   M_EMAIL,
23   M_EMAIL2
24 };
25
26 // Each layer gets a name for readability, which is then used in the keymap matrix below.
27 // The underscores don't mean anything - you can have a layer called STUFF or any other name.
28 // Layer names don't all need to be of the same length, obviously, and you can also skip them
29 // entirely and just use numbers.
30 #define _QWERTY 0
31 #define _COLEMAK 1
32 #define _DVORAK 2
33 #define _LOWER 3
34 #define _RAISE 4
35 #define _PLOVER 5
36 #define _FNLAYER 6
37 #define _NUMLAY 7
38 #define _MOUSECURSOR 8
39 #define _ADJUST 16
40
41
42
43 #define LOWER MO(_LOWER)
44 #define RAISE MO(_RAISE)
45
46 // Fillers to make layering more clear
47 #define _______ KC_TRNS
48 #define XXXXXXX KC_NO
49 // Custom macros
50 #define CTL_ESC     CTL_T(KC_ESC)               // Tap for Esc, hold for Ctrl
51 #define CTL_TTAB    CTL_T(KC_TAB)               // Tap for Esc, hold for Ctrl
52 #define CTL_ENT     CTL_T(KC_ENT)               // Tap for Enter, hold for Ctrl
53 #define SFT_ENT     SFT_T(KC_ENT)               // Tap for Enter, hold for Shift
54 // Requires KC_TRNS/_______ for the trigger key in the destination layer
55 #define LT_FN(kc)   LT(_FNLAYER, kc)            // L-ayer T-ap Function Layer
56 #define LT_MC(kc)   LT(_MOUSECURSOR, kc)        // L-ayer T-ap M-ouse C-ursor
57 #define LT_RAI(kc)  LT(_RAISE, kc)              // L-ayer T-ap to Raise
58 #define TG_NUMLAY   TG(_NUMLAY)                 //Toggle for layer _NUMLAY
59 /*
60 enum userspace_layers {
61   _QWERTY = 0,
62   _COLEMAK,
63   _DVORAK,
64   _LOWER,
65   _RAISE,
66   _PLOVER,
67   _FNLAYER,
68   _NUMLAY,
69   _MOUSECURSOR,
70   _ADJUST
71 };
72 */
73
74
75
76 #endif // !USERSPACE