forked from getreuer/qmk-keymap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keymap.c
121 lines (107 loc) · 5.56 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
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
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* @file keymap.c
* @brief Pascal's keymap for the ZSA Moonlander.
*
* This file defines what keycode is performed by each key position. See also
* getreuer.c for definitions of macros, etc. used in my keymap.
*/
#include QMK_KEYBOARD_H
#include "moonlander.h"
#include "layout.h"
#include "getreuer.c"
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[BASE] = LAYOUT_LR( // Base layer: Magic Sturdy.
KC_GRV , G(KC_TAB), SELLINE, KC_DOWN, KC_UP , KC_BTN2, KC_BTN1,
KC_TAB , KC_V , KC_M , KC_L , KC_C , KC_P , MO(FUN),
KC_BSPC, HOME_S , HOME_T , HOME_R , HOME_D , KC_Y , KC_BSLS,
WIN_COL, HOME_X , KC_K , KC_J , NUM_G , KC_W ,
KC_LCTL, G(KC_TAB), SELLINE, KC_DOWN, KC_UP ,
KC_UNDS,
KC_UNDS, KC_SPC , KC_BTN1,
KC_VOLU, KC_HOME, KC_LEFT, KC_RGHT, KC_END , KC_DEL , KC_MPLY,
KC_VOLD, KC_B , MAGIC , KC_U , KC_O , KC_Q , KC_SLSH,
KC_BSLS, KC_F , HOME_N , HOME_E , HOME_A , HOME_I , KC_QUOT,
KC_Z , KC_H , KC_COMM, KC_DOT , HOME_SC, KC_ENT ,
KC_LEFT, KC_RGHT, DASH , ARROW , KC_RCTL,
KC_ESC ,
MO(WIN), QK_REP , KC_ESC
),
[SYM] = LAYOUT_LR( // Symbol layer.
_______, C(KC_Z), C(KC_V), C(KC_A), C(KC_C), C(KC_X), _______,
TMUXESC, MO(FUN), KC_LABK, KC_RABK, KC_BSLS, KC_GRV , _______,
_______, KC_EXLM, KC_MINS, KC_PLUS, KC_EQL , KC_HASH, _______,
_______, _______, KC_SLSH, KC_ASTR, KC_CIRC, USRNAME,
_______, _______, _______, KC_PGDN, KC_PGUP,
_______,
_______, _______, _______,
_______, C(KC_PGUP), KC_PGDN, KC_PGUP, C(KC_PGDN), _______, KC_MUTE,
_______, KC_AMPR, ARROW , KC_LBRC, KC_RBRC, SRCHSEL, _______,
_______, KC_PIPE, KC_COLN, KC_LPRN, KC_RPRN, KC_PERC, _______,
KC_TILD, KC_DLR , KC_LCBR, KC_RCBR, _______, _______,
KC_HOME, KC_END , SELLINE, SRCHSEL, _______,
_______,
_______, _______, _______
),
[NUM] = LAYOUT_LR( // Number layer.
_______, _______, _______, _______, _______, _______, _______,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
_______, XXXXXXX, KC_LALT, KC_LSFT, KC_LCTL, XXXXXXX, _______,
_______, KC_LGUI, XXXXXXX, KC_LCTL, XXXXXXX, XXXXXXX,
_______, _______, _______, _______, _______,
_______,
TO(BASE), _______, _______,
_______, _______, _______, _______, _______, _______, _______,
_______, KC_TAB , KC_8 , KC_9 , KC_4 , KC_PLUS, KC_SLSH,
_______, KC_COLN, KC_1 , KC_2 , KC_3 , KC_MINS, KC_ASTR,
KC_COMM, KC_7 , KC_6 , KC_5 , KC_DOT , _______,
_______, _______, _______, _______, _______,
_______,
_______, KC_0 , LLOCK
),
[WIN] = LAYOUT_LR( // Window management layer.
RGB_TOG, RGB_DEF, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, _______,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
XXXXXXX, XXXXXXX, KC_LALT, KC_LSFT, KC_LCTL, XXXXXXX, _______,
XXXXXXX, KC_LGUI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
_______, _______, _______, _______, _______,
_______,
TO(BASE), G(KC_SPC), _______,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
_______, G(KC_TAB), G(KC_8), G(KC_9), G(KC_4), XXXXXXX, XXXXXXX,
_______, G(S(KC_LEFT)), G(KC_1), G(KC_2), G(KC_3), G(S(KC_RGHT)), XXXXXXX,
XXXXXXX, G(KC_7), G(KC_6), G(KC_5), KC_VOLD , KC_VOLU,
_______, _______, _______, _______, _______,
_______,
_______, QK_REP , LLOCK
),
[FUN] = LAYOUT_LR( // Funky fun layer.
_______, _______, _______, _______, _______, _______, _______,
_______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
_______, XXXXXXX, KC_LALT, KC_LSFT, KC_LCTL, XXXXXXX, _______,
_______, KC_LGUI, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
_______, _______, _______, _______, _______,
_______,
TO(BASE), _______, _______,
_______, _______, _______, _______, _______, _______, QK_BOOT,
_______, XXXXXXX, KC_F8 , KC_F9 , KC_F4 , KC_F10 , XXXXXXX,
_______, XXXXXXX, KC_F1 , KC_F2 , KC_F3 , KC_F11 , XXXXXXX,
XXXXXXX, KC_F7 , KC_F6 , KC_F5 , KC_F12 , _______,
_______, _______, _______, _______, _______,
_______,
_______, XXXXXXX, LLOCK
),
};