diff options
author | ishtob <ishtob@gmail.com> | 2018-08-10 11:30:21 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-08-10 08:30:21 -0700 |
commit | fd0bd29a0a3f2de93a3e561007805fac67e7e0cd (patch) | |
tree | d7c9a379d6b04fb851854102631cdde5c3f9b607 /users/ishtob/ishtob.h | |
parent | feb5e4aaebb78842c090230f68ea9de80a5c17e6 (diff) | |
download | firmware-fd0bd29a0a3f2de93a3e561007805fac67e7e0cd.tar.gz firmware-fd0bd29a0a3f2de93a3e561007805fac67e7e0cd.tar.bz2 firmware-fd0bd29a0a3f2de93a3e561007805fac67e7e0cd.zip |
Keymap: adding my personal userspace to QMK master (#3605)
* Adding my personal planck keymap
* Adding readme.md to my keymap
* Create my userspace
add users/ishtob/
* Moved macros off keymap
macros now exsists in my userspace, moved them off keyboard specific keymaps
* Create my userspace
add users/ishtob/
* rebase from main QMK repo
Diffstat (limited to 'users/ishtob/ishtob.h')
-rw-r--r-- | users/ishtob/ishtob.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/users/ishtob/ishtob.h b/users/ishtob/ishtob.h new file mode 100644 index 000000000..2c47fce79 --- /dev/null +++ b/users/ishtob/ishtob.h @@ -0,0 +1,76 @@ +#ifndef USERSPACE +#define USERSPACE +#include "quantum.h" + +enum userspace_keycodes { + QWERTY = SAFE_RANGE, + COLEMAK, + DVORAK, + PLOVER, + LOWER, + RAISE, + BACKLIT, + EXT_PLV, + DFU, + P_CITRIX, //these macro exsists in macros_private.c, which is excluded from git + P_MPASS, + P_META, + O_DAYRN, + O_RTQ6H, + O_3DRN, + O_AUTODC, + M_EMAIL, + M_EMAIL2 +}; + +// Each layer gets a name for readability, which is then used in the keymap matrix below. +// The underscores don't mean anything - you can have a layer called STUFF or any other name. +// Layer names don't all need to be of the same length, obviously, and you can also skip them +// entirely and just use numbers. +#define _QWERTY 0 +#define _COLEMAK 1 +#define _DVORAK 2 +#define _LOWER 3 +#define _RAISE 4 +#define _PLOVER 5 +#define _FNLAYER 6 +#define _NUMLAY 7 +#define _MOUSECURSOR 8 +#define _ADJUST 16 + + + +#define LOWER MO(_LOWER) +#define RAISE MO(_RAISE) + +// Fillers to make layering more clear +#define _______ KC_TRNS +#define XXXXXXX KC_NO +// Custom macros +#define CTL_ESC CTL_T(KC_ESC) // Tap for Esc, hold for Ctrl +#define CTL_TTAB CTL_T(KC_TAB) // Tap for Esc, hold for Ctrl +#define CTL_ENT CTL_T(KC_ENT) // Tap for Enter, hold for Ctrl +#define SFT_ENT SFT_T(KC_ENT) // Tap for Enter, hold for Shift +// Requires KC_TRNS/_______ for the trigger key in the destination layer +#define LT_FN(kc) LT(_FNLAYER, kc) // L-ayer T-ap Function Layer +#define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor +#define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise +#define TG_NUMLAY TG(_NUMLAY) //Toggle for layer _NUMLAY +/* +enum userspace_layers { + _QWERTY = 0, + _COLEMAK, + _DVORAK, + _LOWER, + _RAISE, + _PLOVER, + _FNLAYER, + _NUMLAY, + _MOUSECURSOR, + _ADJUST +}; +*/ + + + +#endif // !USERSPACE
\ No newline at end of file |