aboutsummaryrefslogtreecommitdiff
path: root/users/peej/peej.h
diff options
context:
space:
mode:
Diffstat (limited to 'users/peej/peej.h')
-rw-r--r--users/peej/peej.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/users/peej/peej.h b/users/peej/peej.h
new file mode 100644
index 000000000..b9ec571e5
--- /dev/null
+++ b/users/peej/peej.h
@@ -0,0 +1,78 @@
1/* Copyright 2020 Paul James
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#include QMK_KEYBOARD_H
19
20#include "eeconfig.h"
21
22enum custom_layers {
23 _BASE = 0,
24 _SYMBOL,
25 _FUNCTION,
26 _ADJUST,
27};
28
29// Fillers to make layering more clear
30#define ______2 KC_TRNS, KC_TRNS
31#define ______3 KC_TRNS, KC_TRNS, KC_TRNS
32#define ______4 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
33#define ______5 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
34
35enum custom_keycodes {
36 MC_ARR = SAFE_RANGE,
37 MC_DARR,
38 MC_DEQL,
39 MC_TEQL,
40 KC_RESET
41};
42
43#define SYMBOL MO(_SYMBOL)
44#define FUNCT MO(_FUNCTION)
45#define ADJUST MO(_ADJUST)
46
47#define FN_SPC LT(_FUNCTION, KC_SPC)
48#define SY_SPC LT(_SYMBOL, KC_SPC)
49#define FN_F LT(_FUNCTION, KC_F)
50#define SY_J LT(_SYMBOL, KC_J)
51
52#define CTLESC LCTL_T(KC_ESC)
53#define SFTENT RSFT_T(KC_ENT)
54#define LOCK LCTL(LGUI(KC_Q))
55#define BACK LGUI(KC_LBRC)
56#define FORWARD LGUI(KC_RBRC)
57#define NXTFUNC LCTL(KC_DOWN)
58#define PRVFUNC LCTL(KC_UP)
59#define TOP LGUI(KC_UP)
60#define BOTTOM LGUI(KC_DOWN)
61
62#ifdef LAYOUT_ortho_4x12
63 #define LAYOUT_PEEJ(...) LAYOUT_ortho_4x12(__VA_ARGS__)
64#endif
65
66#ifdef LAYOUT_ortho_5x12
67 #define LAYOUT_PEEJ(...) LAYOUT_ortho_5x12(__VA_ARGS__)
68#endif
69
70#ifdef LAYOUT_ortho_hhkb
71 #define LAYOUT_PEEJ_hhkb(...) LAYOUT_ortho_hhkb(__VA_ARGS__)
72#endif
73
74#ifdef LAYOUT_ortho_7u
75 #define LAYOUT_PEEJ_7u(...) LAYOUT_ortho_7u(__VA_ARGS__)
76#endif
77
78#include "layout.h"