diff options
Diffstat (limited to 'users/mattly/mattly.h')
| -rw-r--r-- | users/mattly/mattly.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/users/mattly/mattly.h b/users/mattly/mattly.h new file mode 100644 index 000000000..08318840d --- /dev/null +++ b/users/mattly/mattly.h | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | /* Copyright 2019 Matthew Lyon | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #ifndef USERSPACE | ||
| 18 | #define USERSPACE | ||
| 19 | |||
| 20 | #include "quantum.h" | ||
| 21 | |||
| 22 | enum { | ||
| 23 | _QWERTY, | ||
| 24 | _NAVNUM, | ||
| 25 | _SYMBOL, | ||
| 26 | _FUNCT, | ||
| 27 | }; | ||
| 28 | |||
| 29 | // left hand | ||
| 30 | #define ESC_HYP MT(MOD_HYPR, KC_ESC) | ||
| 31 | #define BSP_NUM LT(_NAVNUM, KC_BSPC) | ||
| 32 | #define ENT_SFT MT(MOD_LSFT, KC_ENT) | ||
| 33 | #define SPC_SFT MT(MOD_LSFT, KC_SPC) | ||
| 34 | |||
| 35 | // right hand | ||
| 36 | #define SPC_SFT MT(MOD_LSFT, KC_SPC) | ||
| 37 | #define TAB_SYM LT(_SYMBOL, KC_TAB) | ||
| 38 | #define DEL_WRP MT(MOD_LCTL | MOD_LALT | MOD_LGUI, KC_DEL) | ||
| 39 | |||
| 40 | #define NAVLOCK TG(_NAVNUM) | ||
| 41 | #define SYMLOCK TG(_SYMBOL) | ||
| 42 | |||
| 43 | |||
| 44 | // QWERTY | ||
| 45 | |||
| 46 | #define A_CTRL MT(MOD_LCTL, KC_A) | ||
| 47 | #define S_ALT MT(MOD_LALT, KC_S) | ||
| 48 | #define D_GUI MT(MOD_LGUI, KC_D) | ||
| 49 | #define F_SHFT MT(MOD_LSFT, KC_F) | ||
| 50 | #define J_SHFT MT(MOD_RSFT, KC_J) | ||
| 51 | #define K_GUI MT(MOD_RGUI, KC_K) | ||
| 52 | #define L_ALT MT(MOD_RALT, KC_L) | ||
| 53 | #define MINSCTL MT(MOD_RCTL, KC_MINS) | ||
| 54 | |||
| 55 | #define BWORD LALT(KC_LEFT) | ||
| 56 | #define FWORD LALT(KC_RIGHT) | ||
| 57 | |||
| 58 | // OS X default keys | ||
| 59 | #define NWIN LGUI(KC_GRV) // Next Window | ||
| 60 | #define PWIN LGUI(LSFT(KC_GRV)) // Prev Window | ||
| 61 | #define NTAB LGUI(LSFT(KC_RBRC)) // Next Tab | ||
| 62 | #define PTAB LGUI(LSFT(KC_LBRC)) // Prev Tab | ||
| 63 | #define NAVBACK LGUI(KC_LBRC) // Navigate Forward | ||
| 64 | #define NAVFWD LGUI(KC_RBRC) // Navigate Back | ||
| 65 | |||
| 66 | // my personal mappings to window manager commands | ||
| 67 | #define XALLWIN HYPR(KC_F14) | ||
| 68 | #define XDESKTP HYPR(KC_F15) | ||
| 69 | #define XNXTSPC HYPR(KC_F16) | ||
| 70 | #define XPRVSPC HYPR(KC_F17) | ||
| 71 | #define XNOTIFY HYPR(KC_F18) | ||
| 72 | |||
| 73 | #ifdef RGBLIGHT_ENABLE | ||
| 74 | #define HSV_CAPS 42, 255, 255 | ||
| 75 | #define HSV_DEFAULT 30, 218, 255 | ||
| 76 | #define HSV_SYMBOL 22, 255, 255 | ||
| 77 | #define HSV_NAVNUM 245, 200, 255 | ||
| 78 | #define HSV_FUNCT 233, 255, 255 | ||
| 79 | #define HSV_RESET 180, 255, 255 | ||
| 80 | #endif | ||
| 81 | |||
| 82 | #endif | ||
| 83 | |||
