diff options
Diffstat (limited to 'users/replicaJunction/keycode_aliases.h')
| -rw-r--r-- | users/replicaJunction/keycode_aliases.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/users/replicaJunction/keycode_aliases.h b/users/replicaJunction/keycode_aliases.h new file mode 100644 index 000000000..b1006a863 --- /dev/null +++ b/users/replicaJunction/keycode_aliases.h | |||
| @@ -0,0 +1,85 @@ | |||
| 1 | /* Copyright 2021 Joshua T. | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include QMK_KEYBOARD_H | ||
| 20 | |||
| 21 | // Transparent, but indicates that this key must be blocked (for example, a layer shift key) | ||
| 22 | #define ooooooo KC_TRNS | ||
| 23 | |||
| 24 | |||
| 25 | #define SFT_TAB LSFT(KC_TAB) | ||
| 26 | #define WIN_TAB LGUI(KC_TAB) | ||
| 27 | #define WIN_L LGUI(KC_L) | ||
| 28 | #define WIN_V LGUI(KC_V) | ||
| 29 | #define ALT_F4 LALT(KC_F4) | ||
| 30 | #define CTL_DEL LCTL_T(KC_DEL) | ||
| 31 | #define CTL_ESC CTL_T(KC_ESC) | ||
| 32 | #define ALT_ENT ALT_T(KC_ENT) | ||
| 33 | #define ALT_TAB ALT_T(KC_TAB) | ||
| 34 | |||
| 35 | #define OSM_LSF OSM(MOD_LSFT) | ||
| 36 | #define OSM_RSF OSM(MOD_RSFT) | ||
| 37 | |||
| 38 | // OS shortcuts (Windows) | ||
| 39 | #define OS_COPY LCTL(KC_C) | ||
| 40 | #define OS_PAST LCTL(KC_V) | ||
| 41 | #define OS_CUT LCTL(KC_X) | ||
| 42 | #define OS_UNDO LCTL(KC_Z) | ||
| 43 | #define OS_SALL LCTL(KC_A) | ||
| 44 | #define OS_FIND LCTL(KC_F) | ||
| 45 | |||
| 46 | |||
| 47 | // Home row modifiers | ||
| 48 | #define GUI_A LGUI_T(KC_A) | ||
| 49 | #define ALT_R LALT_T(KC_R) | ||
| 50 | #define SFT_S LSFT_T(KC_S) | ||
| 51 | #define CRT_T LCTL_T(KC_T) // we can't call this CTL_T because that name is taken! | ||
| 52 | |||
| 53 | #define CRT_N RCTL_T(KC_N) | ||
| 54 | #define SFT_E RSFT_T(KC_E) | ||
| 55 | #define ALT_I RALT_T(KC_I) | ||
| 56 | #define GUI_O RGUI_T(KC_O) | ||
| 57 | |||
| 58 | |||
| 59 | // Mouse keys | ||
| 60 | #define M_UP KC_MS_UP | ||
| 61 | #define M_DOWN KC_MS_DOWN | ||
| 62 | #define M_LEFT KC_MS_LEFT | ||
| 63 | #define M_RIGHT KC_MS_RIGHT | ||
| 64 | #define M_LCLIK KC_MS_BTN1 | ||
| 65 | #define M_RCLIK KC_MS_BTN2 | ||
| 66 | #define M_MCLIK KC_MS_BTN3 | ||
| 67 | #define M_WHLUP KC_WH_U | ||
| 68 | #define M_WHLDN KC_WH_D | ||
| 69 | |||
| 70 | |||
| 71 | // Windows 10 shortcuts: change desktop to the left/right | ||
| 72 | #define DESKLFT LCTL(LGUI(KC_LEFT)) | ||
| 73 | #define DESKRGT LCTL(LGUI(KC_RGHT)) | ||
| 74 | |||
| 75 | |||
| 76 | // Application-specific shortcuts | ||
| 77 | |||
| 78 | // Search: defined in Everything Search Engine as the keypress to show/hide the window | ||
| 79 | #define SEARCH HYPR(KC_S) | ||
| 80 | |||
| 81 | // Microsoft PowerToys hotkeys | ||
| 82 | // https://github.com/microsoft/PowerToys | ||
| 83 | #define PTYRUN LALT(KC_SPC) // PowerToys Run | ||
| 84 | #define PTYZONE LGUI(KC_GRV) // PowerToys FancyZones | ||
| 85 | #define PTYCOLR LGUI(LSFT(KC_C)) // PowerToys ColorPicker | ||
