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
|
// Copyright 2022 Kyle McCreery (@kylemccreery)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
// Defines names for use in layer keycodes and the keymap
enum layer_names {
_BASE,
_FN1,
_FN2,
_FN3
};
/* Physical Layout:
* /-------------------\
* |ENC| 1 | 2 | 3 |ENC|
* |---+---'---'---+---|
* | 4 | | 5 |
* |---| |---|
* | 6 | | 7 |
* |---| |---|
* | 8 | | 9 |
* \-----,---,---,-----/
* | A | B | C | D |
* \---'---'---'---/
*
* Keymap Layout:
* ENC, 1, 2, 3, ENC,
* 4, 5,
* 6, 7,
* 8, A, B, C, D, 9,
*
*/
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
KC_MUTE, MO(_FN3), MO(_FN2), MO(_FN1), LGUI(KC_D),
MO(_FN2), KC_HOME,
MO(_FN3), KC_END,
KC_BTN3, DPI_FINE,
KC_BTN1, KC_BTN2, KC_BTN2, KC_BTN1
),
[_FN1] = LAYOUT(
RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, TAP_TOG,
DPI_UP, TAP_UP,
DPI_DN, TAP_DN,
KC_TRNS, KC_TRNS,
KC_HOME, KC_PGUP, KC_PGDN, KC_END
),
[_FN2] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG,
KC_TRNS, RGB_MOD,
KC_TRNS, RGB_RMOD,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
),
[_FN3] = LAYOUT(
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RESET,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
)
};
|