1 /* Copyright 2019 Matthew Lyon
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.
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.
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/>.
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)
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)
40 #define NAVLOCK TG(_NAVNUM)
41 #define SYMLOCK TG(_SYMBOL)
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)
55 #define BWORD LALT(KC_LEFT)
56 #define FWORD LALT(KC_RIGHT)
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
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)
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