-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeymap.c
51 lines (46 loc) · 2.49 KB
/
keymap.c
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
#include QMK_KEYBOARD_H
#include "keymap_finnish.h"
#define LOWER MO(1)
#define RAISE MO(2)
enum planck_layers {
_DEFAULT,
_LOWER,
_RAISE,
_ADJUST
};
enum custom_keycodes {
XY_EURO = S(FI_4),
XY_BSLS = ALGR(S(FI_7)),
XY_PIPE = ALGR(FI_7),
XY_RCBR = ALGR(S(FI_9)),
XY_LCBR = ALGR(S(FI_8))
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_DEFAULT] = LAYOUT_planck_grid(
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
_______, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
),
[_LOWER] = LAYOUT_planck_grid(
_______, FI_EXLM, FI_DQUO, XY_EURO, FI_SLSH, FI_LABK, FI_LPRN, FI_LBRC, XY_LCBR, FI_PLUS, FI_ASTR, KC_DEL,
_______, FI_QUES, FI_QUOT, FI_DLR, XY_BSLS, FI_RABK, FI_RPRN, FI_RBRC, XY_RCBR, FI_MINS, FI_PERC, FI_HASH,
_______, FI_CIRC, _______, _______, XY_PIPE, _______, _______, _______, FI_AT, FI_EQL, FI_TILD, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[_RAISE] = LAYOUT_planck_grid(
_______, FI_1, FI_2, FI_3, FI_4, FI_5, FI_6, FI_7, FI_8, FI_9, FI_0, _______,
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______,
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
),
[_ADJUST] = LAYOUT_planck_grid(
_______, RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
)
};
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
}