aboutsummaryrefslogtreecommitdiff
path: root/users/replicaJunction/replicaJunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/replicaJunction/replicaJunction.h')
-rw-r--r--users/replicaJunction/replicaJunction.h138
1 files changed, 33 insertions, 105 deletions
diff --git a/users/replicaJunction/replicaJunction.h b/users/replicaJunction/replicaJunction.h
index 9b5772543..f3b7bcea0 100644
--- a/users/replicaJunction/replicaJunction.h
+++ b/users/replicaJunction/replicaJunction.h
@@ -1,114 +1,42 @@
1#pragma once 1/* Copyright 2021 Joshua T.
2 2 *
3#include "quantum.h" 3 * This program is free software: you can redistribute it and/or modify
4 4 * it under the terms of the GNU General Public License as published by
5/////////////////////////////////////////////////////////////////////////////// 5 * the Free Software Foundation, either version 2 of the License, or
6// Keymap definitions 6 * (at your option) any later version.
7/////////////////////////////////////////////////////////////////////////////// 7 *
8 8 * This program is distributed in the hope that it will be useful,
9// Layer definitions 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10// #define L_COLEMAK 0 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// #define L_QWERTY 1 11 * GNU General Public License for more details.
12// #define L_NUM 2 12 *
13// #define L_EXTEND 3 13 * You should have received a copy of the GNU General Public License
14// #define L_FUNC 4 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15// #define L_GAMING 5 15 */
16// #define L_SYMBOL 6
17// #define L_LL_R 7
18// #define L_LL_S 8
19// #define L_LL_E 9
20// #define L_LL_I 10
21
22// Keyboard aliases
23#define ooooooo KC_TRNS
24
25#define MO_FUNC MO(L_FUNC)
26#define TT_NUM TT(L_NUM)
27#define TG_GAME TG(L_GAMING)
28#define OSL_SYM OSL(L_SYMBOL)
29
30#define OSM_LSF OSM(MOD_LSFT)
31#define OSM_RSF OSM(MOD_RSFT)
32
33#define KX_CTSF LCTL(KC_LSFT)
34#define KX_STAB LSFT(KC_TAB)
35#define KX_CGR LCTL(KC_GRV)
36#define KX_PAST LCTL(LGUI(LALT(KC_V)))
37#define KX_SRCH LCTL(LGUI(LALT(KC_S)))
38 16
39#define KX_BKNM LT(L_NUM, KC_BSPC) 17#pragma once
40#define KX_DCTL CTL_T(KC_DEL) 18#include QMK_KEYBOARD_H
41#define KX_NALT ALT_T(KC_ENT) 19#include "rj_keycodes.h"
42#define KX_ECTL CTL_T(KC_ESC) 20#include "rj_layers.h"
43#define KX_SPAC LT(L_EXTEND, KC_SPC) 21#include "keycode_aliases.h"
44 22#include "version.h"
45#define KX_Z_MT CTL_T(KC_Z) 23
46#define KX_X_MT GUI_T(KC_X) 24#ifdef USER_CAPS_WORD_ENABLE
47#define KX_C_MT MT(MOD_LCTL | MOD_LALT, KC_C) 25# include "features/caps_word.h"
48#define KX_D_MT ALT_T(KC_D)
49
50#define KX_SLMT CTL_T(KC_SLSH)
51#define KX_DOMT GUI_T(KC_DOT)
52#define KX_COMT MT(MOD_LCTL | MOD_LALT, KC_COMM)
53#define KX_H_MT ALT_T(KC_H)
54
55#ifdef L_LL_R
56 #define KC_R_LT LT(L_LL_R, KC_R)
57#else
58 #define KC_R_LT KC_R
59#endif 26#endif
60 27
61#ifdef L_LL_S 28#ifdef USER_MOUSE_JIGGLE_ENABLE
62 #define KC_S_LT LT(L_LL_S, KC_S) 29# include "features/mouse_jiggle.h"
63#else
64 #define KC_S_LT KC_S
65#endif 30#endif
66 31
67#ifdef L_LL_E 32#ifdef USER_NUM_WORD_ENABLE
68 #define KC_E_LT LT(L_LL_E, KC_E) 33# include "features/num_word.h"
69#else
70 #define KC_E_LT KC_E
71#endif 34#endif
72 35
73#ifdef L_LL_I 36#ifdef USER_SECRETS_ENABLE
74 #define KC_I_LT LT(L_LL_I, KC_I) 37# include "features/secrets.h"
75#else
76 #define KC_I_LT KC_I
77#endif 38#endif
78 39
79// "Macro" functions 40#ifdef USER_SUPER_ALT_TAB_ENABLE
80enum userspace_custom_keycodes { 41# include "features/super_alt_tab.h"
81 RJ_MAKE = SAFE_RANGE, // QMK make command 42#endif
82 RJ_QMKV, // QMK version
83 RJ_EQ, // ==
84 RJ_NEQ, // !=
85 RJ_GEQ, // >=
86 RJ_LEQ, // <=
87 RJ_GEQR, // => ("greater than or equal - right")
88 RJ_DUND, // $_
89 RJ_SELS, // select * (used for PowerShell)
90 RJ_MUTE, // Discord mute (GUI+Shift+M)
91 RJ_DEAF, // Discord deafen (GUI+Shift+D)
92 RJ_DOVR // Toggle Discord overlay (GUI+Shift+O)
93};
94
95// Mouse keys
96#define M_UP KC_MS_UP
97#define M_DOWN KC_MS_DOWN
98#define M_LEFT KC_MS_LEFT
99#define M_RIGHT KC_MS_RIGHT
100#define M_LCLIK KC_MS_BTN1
101#define M_RCLIK KC_MS_BTN2
102#define M_MCLIK KC_MS_BTN3
103#define M_WHLUP KC_WH_U
104#define M_WHLDN KC_WH_D
105
106// Used in macro definitions
107#define TAP(code) register_code (code); unregister_code (code);
108
109// Tap Dance
110#ifdef TAP_DANCE_ENABLE
111#define TD_LAYER_TOGGLE 0
112extern void dance_layer(qk_tap_dance_state_t *state, void *user_data);
113#define TD_LAYR TD(TD_LAYER_TOGGLE)
114#endif // TAP_DANCE_ENABLE