1- // Copyright 2022 Manna Harbour
2- // https://github.com/manna-harbour/miryoku
3-
4- // This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
5-
1+ // clang-format off
62#pragma once
73
8- // PTH
9- // https://github.com/jgandert/qmk_modules/blob/main/predictive_tap_hold/README.md
10- // #define PTH_DISABLED
11-
12- #define TAPPING_TERM 0
13-
14- #define PTH_FAST_STREAK_TAP_ENABLE
15- // #define PTH_DEBUG
16- #define PTH_DONT_HOLD_INSTANTLY
17- // PTH end
18-
19- // App Companion
20- // https://docs.qmk.fm/features/rawhid#usage
21- // https://github.com/maatthc/qmk_layers_app_companion
22- #define RAW_EPSIZE 32
23- #define PAYLOAD_MARK 0x90
24- #define PAYLOAD_BEGIN 24
25-
26- #define RAW_USAGE_PAGE 0xFF60
27- #define RAW_USAGE 0x61
28- // App Companion end
29-
30-
31- // This is the number of combos you have defined in your keymap
32- #define COMBO_COUNT 1
4+ #define LAYER (...) MAPPING(__VA_ARGS__)
5+ #define U_NA KC_NO
6+ #define U_NP KC_NO
7+ #define U_NU KC_NO
338
34- // Do not Auto Shift special keys -_, =+, [{, ]}, ;:, '", ,<, .>, and /?
35- //#define NO_AUTO_SHIFT_SPECIAL
9+ enum layers_num { L_BASE , L_NAV , L_MOUSE , L_MEDIA , L_NUM , L_SYM , L_FUN };
3610
37- // Do not Auto Shift numeric keys, zero through nine.
38- //#define NO_AUTO_SHIFT_NUMERIC
39-
40- #define MIRYOKU_MAPPING ( \
11+ #define MAPPING ( \
4112 K00 , K01 , K02 , K03 , K04 , K05 , K06 , K07 , K08 , K09 , \
4213 K10 , K11 , K12 , K13 , K14 , K15 , K16 , K17 , K18 , K19 , \
4314 K20 , K21 , K22 , K23 , K24 , K25 , K26 , K27 , K28 , K29 , \
@@ -50,28 +21,45 @@ RSG(KC_LEFT), K20, K21, K22, K23, K24, K25, K26, K27, K28, K29,
5021 K32, K33, K34, K35, K36, K37 \
5122)
5223
53- #define MIRYOKU_LAYER_BASE \
24+ #define LAYER_BASE \
5425KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \
5526KC_A, LALT_T(KC_S), LCTL_T(KC_D), LSFT_T(KC_F), KC_G, KC_H, LSFT_T(KC_J), LCTL_T(KC_K), LALT_T(KC_L), KC_QUOT, \
5627KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLSH,\
57- U_NP, U_NP, LT(U_MOUSE ,KC_ESC),LT(U_NAV ,KC_BSPC), LT(U_NUM ,KC_TAB),LT(U_SYM ,KC_ENT), LT(U_MEDIA ,KC_SPC), LT(U_FUN ,KC_INS), U_NP, U_NP
28+ U_NP, U_NP, LT(L_MOUSE ,KC_ESC),LT(L_NAV ,KC_BSPC), LT(L_NUM ,KC_TAB),LT(L_SYM ,KC_ENT), LT(L_FUN ,KC_SPC), LT(L_MEDIA ,KC_INS), U_NP, U_NP
5829
5930
60- #define MIRYOKU_LAYER_MEDIA \
31+ #define LAYER_MEDIA \
6132U_NU, KC_BRID, KC_BRIU, QK_BACKLIGHT_STEP, U_NU, QK_BOOT, U_NA, U_NA, U_NA, U_NA, \
6233KC_MPRV, KC_VOLD, KC_VOLU, KC_MNXT, U_NU, U_NA, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, \
6334RM_NEXT, RM_HUEU, RM_SATU, RM_SATD, RM_TOGG, U_NA, U_NA, U_NA, U_NA, U_NA, \
6435U_NP, U_NP, KC_MUTE, KC_MPLY, KC_MSTP, U_NA, U_NA, U_NA, U_NP, U_NP
6536
66- #define MIRYOKU_LAYER_NUM \
37+
38+ #define LAYER_NUM \
6739U_NA, U_NA, U_NA, U_NA, U_NA, KC_LBRC, KC_7, KC_8, KC_9, KC_RBRC, \
6840KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, U_NA, KC_SCLN, KC_4, KC_5, KC_6, KC_EQL, \
6941U_NA, U_NA, U_NA, U_NA, U_NA, KC_GRV, KC_1, KC_2, KC_3, KC_BSLS, \
7042U_NP, U_NP, U_NA, U_NA, U_NA, KC_MINS, KC_0, KC_DOT, U_NP, U_NP
7143
72- #define MIRYOKU_LAYER_FUN \
44+
45+ #define LAYER_FUN \
7346KC_F12, KC_F7, KC_F8, KC_F9, KC_PSCR, U_NA, U_NA, U_NA, U_NA, U_NA, \
7447KC_F11, KC_F4, KC_F5, KC_F6, KC_SCRL, U_NA, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, \
7548KC_F10, KC_F1, KC_F2, KC_F3, KC_PAUS, U_NA, U_NA, U_NA, U_NA, U_NA, \
7649U_NP, U_NP, KC_APP, KC_SPC, KC_LGUI, U_NA, U_NA, U_NA, U_NP, U_NP
7750
51+
52+ #define LAYER_SYM \
53+ KC_LCBR, KC_AMPR, KC_ASTR, KC_LPRN, KC_RCBR, U_NA, U_NA, U_NA, U_NA, U_NA, \
54+ KC_COLN, KC_DLR, KC_PERC, KC_CIRC, KC_PLUS, U_NA, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, \
55+ KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_PIPE, U_NA, U_NA, U_NA, U_NA, U_NA, \
56+ U_NP, U_NP, KC_LPRN, KC_RPRN, KC_UNDS, U_NA, U_NA, U_NA, U_NP, U_NP
57+
58+
59+ #define LAYER_NAV \
60+ U_NA, U_NA, U_NA, U_NA, U_NA, KC_AGIN, KC_PSTE, KC_COPY, KC_CUT, KC_UNDO, \
61+ KC_LGUI, KC_LALT, KC_LCTL, KC_LSFT, U_NA, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, CW_TOGG, \
62+ U_NA, U_NA, U_NA, U_NA, U_NA, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_INS, \
63+ U_NP, U_NP, U_NA, U_NA, U_NA, KC_ENT, KC_BSPC, KC_DEL, U_NP, U_NP
64+
65+
0 commit comments