summaryrefslogtreecommitdiff
path: root/keyboards/planck/keymaps/not-quite-neo/keymap.c
blob: 2248c7a2b958cded11add6c91baf555213946ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/*
NQN is not-quite-neo
A layout based on the
*/


#include QMK_KEYBOARD_H
#include "nqn-keys-on-quertz-de-latin1.h"
#include "nqn-basic-layout.h"


// Automatic number generation of important keywords
enum my_keycodes{
    // Layer numbers follow the neo2 terminology, i.e. base layer = layer 1
    L01 = 0,
    /* L02, SHIFT is not (yet) implemented as a fully customizable layer */
    L03,
    L04,
    L05,
    /* L06, UNSPECIFIED not (yet) needed */
    LFN
};


const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* L01 -> default: BASE LAYER
 * ,-----------------------------------------------------------------------------------.
 * | ESC  |                                  |                                  | ENTER|
 * |------+                                  |                                  +------|
 * | L03  |             L01_LEFT             |             L01_RIGHT            | L03  |
 * |------+                                  |                                  +------|
 * | SHIFT|                                  |                                  | SHIFT|
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * | CTLR | GUI  | ALT  | L05  | L04  | SPACE| SPACE| L04  | L05  | ALTGR| LFN  | CTLR |
 * `-----------------------------------------------------------------------------------'
 */
[L01] = LAYOUT_planck_grid(
  KC_ESC,                 L01_LEFT_01,                                 L01_RIGHT_01,                 KC_ENTER,
  MO(L03),                L01_LEFT_02,                                 L01_RIGHT_02,                 MO(L03),
  KC_LSFT,                L01_LEFT_03,                                 L01_RIGHT_03,                 KC_RSFT,
  KC_LCTL, KC_LGUI, KC_LALT, MO(L05), MO(L04), KC_SPC,  KC_SPC,  MO(L04), MO(L05), KC_RALT, MO(LFN), KC_RCTL
),


/*
L02 -> MO(L02): SHIFT (as a layer not used, not defined, not reachable)
 */


/* L03 -> MO(L03): PROGRAMMING
 * ,-----------------------------------------------------------------------------------.
 * |      |                                  |                                  |      |
 * |------+                                  |                                  +------|
 * |      |             L03_LEFT             |             L03_RIGHT            |      |
 * |------+                                  |                                  +------|
 * |      |                                  |                                  |      |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |      |      |      |      |      |      |      |      |      |      |      |      |
 * `-----------------------------------------------------------------------------------'
 */
[L03] = LAYOUT_planck_grid(
  _______,                L03_LEFT_01,                                 L03_RIGHT_01,                 _______,
  _______,                L03_LEFT_02,                                 L03_RIGHT_02,                 _______,
  _______,                L03_LEFT_03,                                 L03_RIGHT_03,                 _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),


/* L04 -> MO(L04): NAVIGATION AND NUMBERS
 * ,-----------------------------------------------------------------------------------.
 * |      |                                  |                                  |      |
 * |------+                                  |                                  +------|
 * |      |             L04_LEFT             |             L04_RIGHT            |      |
 * |------+                                  |                                  +------|
 * |      |                                  |                                  |      |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |      |      |      |      |      |      | 0    |      |      |      |      |      |
 * `-----------------------------------------------------------------------------------'
 */
[L04] = LAYOUT_planck_grid(
  _______,                L04_LEFT_01,                                 L04_RIGHT_01,                 _______,
  _______,                L04_LEFT_02,                                 L04_RIGHT_02,                 _______,
  _______,                L04_LEFT_03,                                 L04_RIGHT_03,                 _______,
  _______, _______, _______, _______, _______, _______, KC_0,    _______, _______, _______, _______, _______
),


/* L05 -> MO(L05): ALTERNATE
 * ,-----------------------------------------------------------------------------------.
 * |      |                                  |                                  |      |
 * |------+                                  |                                  +------|
 * |      |             L05_LEFT             |             L05_RIGHT            |      |
 * |------+                                  |                                  +------|
 * |      |                                  |                                  |      |
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |      |      |      |      |      |      |      |      |      |      |      |      |
 * `-----------------------------------------------------------------------------------'
 */
[L05] = LAYOUT_planck_grid(
  _______,                L05_LEFT_01,                                 L05_RIGHT_01,                 _______,
  _______,                L05_LEFT_02,                                 L05_RIGHT_02,                 _______,
  _______,                L05_LEFT_03,                                 L05_RIGHT_03,                 _______,
  _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),


/*
L06 -> <TBD>: UNSPECIFIED
*/


/* LFN -> MO(FN): FUNCTION
 * ,-----------------------------------------------------------------------------------.
 * | QK_BOOT|                                  |                                  | BACKS|
 * |------+                                  |                                  +------|
 * |      |             L06_LEFT             |             L06_RIGHT            |INSERT|
 * |------+                                  |                                  +------|
 * |      |                                  |                                  |DELETE|
 * |------+------+------+------+------+------+------+------+------+------+------+------|
 * |VOICE-|VOICE+|MUS ON|MUS OF| LIGHT|      |      | VOL+ | VOL- | MUTE |      |      |
 * `-----------------------------------------------------------------------------------'
 */
[LFN] = LAYOUT_planck_grid(
  QK_BOOT,                L06_LEFT_01,                                 L06_RIGHT_01,                 KC_BSPC,
  _______,                L06_LEFT_02,                                 L06_RIGHT_02,                 KC_INS,
  _______,                L06_LEFT_03,                                 L06_RIGHT_03,                 KC_DEL,
  AU_PREV,  AU_NEXT,  MU_ON,   MU_OFF,  _______, _______, _______, KC_VOLU, KC_VOLD, KC_MUTE, _______, _______
)
};