From c52d1385fb73fc348adb333da5f62e09f49adc60 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sat, 22 Jul 2023 22:28:48 +0700 Subject: [PATCH] feat: use KC_GRV in layer 1 --- README.md | 3 ++- dztech_dz60rgb_wkl/keymaps/haunt98/config.h | 3 +++ dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c | 3 ++- dztech_dz60rgb_wkl/keymaps/haunt98/rules.mk | 4 +++- dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4d6a940..70389ac 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ make dztech_dz60rgb_wkl Currently firmware size: ```txt -* The firmware size is fine - 14812/26624 (55%, 11812 bytes free) +* The firmware size is fine - 15316/26624 (57%, 11308 bytes free) ``` ## Install @@ -43,6 +43,7 @@ Use [QMK Toolbox](https://github.com/qmk/qmk_toolbox) to flash. Basic - [Keymap FAQ](https://github.com/qmk/qmk_firmware/blob/master/docs/faq_keymap.md) +- [Keymap Overview](https://github.com/qmk/qmk_firmware/blob/master/docs/keymap.md) - [Keycodes Overview](https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md) - [Modifier Keys](https://github.com/qmk/qmk_firmware/blob/master/docs/feature_advanced_keycodes.md) - [Quantum Keycodes](https://github.com/qmk/qmk_firmware/blob/master/docs/quantum_keycodes.md) diff --git a/dztech_dz60rgb_wkl/keymaps/haunt98/config.h b/dztech_dz60rgb_wkl/keymaps/haunt98/config.h index 647701a..5a875fa 100644 --- a/dztech_dz60rgb_wkl/keymaps/haunt98/config.h +++ b/dztech_dz60rgb_wkl/keymaps/haunt98/config.h @@ -18,6 +18,7 @@ #define DYNAMIC_KEYMAP_LAYER_COUNT 3 // Optimize +// https://github.com/qmk/qmk_firmware/blob/master/docs/squeezing_avr.md #define NO_ACTION_ONESHOT #define LAYER_STATE_8BIT @@ -52,9 +53,11 @@ #undef ENABLE_RGB_MATRIX_SOLID_SPLASH // Feature +// https://github.com/qmk/qmk_firmware/blob/master/docs/tap_hold.md #define TAPPING_TERM 120 #define HOLD_ON_OTHER_KEY_PRESS #define RETRO_TAPPING +// https://github.com/qmk/qmk_firmware/blob/master/docs/feature_debounce_type.md #undef DEBOUNCE #define DEBOUNCE 5 diff --git a/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c b/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c index 02e05f1..e9f2cb3 100644 --- a/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c +++ b/dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c @@ -16,6 +16,7 @@ #include QMK_KEYBOARD_H +// https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { [0] = LAYOUT_60_tsangan_hhkb( QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, @@ -24,7 +25,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), XXXXXXX, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, XXXXXXX), [1] = LAYOUT_60_tsangan_hhkb( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, + KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, _______, _______, diff --git a/dztech_dz60rgb_wkl/keymaps/haunt98/rules.mk b/dztech_dz60rgb_wkl/keymaps/haunt98/rules.mk index 52aab11..5cfe84b 100644 --- a/dztech_dz60rgb_wkl/keymaps/haunt98/rules.mk +++ b/dztech_dz60rgb_wkl/keymaps/haunt98/rules.mk @@ -1,7 +1,9 @@ # VIA +# https://www.caniusevia.com/docs/configuring_qmk VIA_ENABLE = no # Optimize +# https://github.com/qmk/qmk_firmware/blob/master/docs/squeezing_avr.md LTO_ENABLE = yes CONSOLE_ENABLE = no @@ -11,7 +13,7 @@ EXTRAKEY_ENABLE = yes SPACE_CADET_ENABLE = no MAGIC_ENABLE = no -NKRO_ENABLE = no # Feature +# https://github.com/qmk/qmk_firmware/blob/master/docs/feature_bootmagic.md BOOTMAGIC_ENABLE = yes diff --git a/dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json b/dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json index 617e8bf..3978fe4 100644 --- a/dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json +++ b/dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json @@ -3,7 +3,7 @@ "keymap": "haunt98", "layers": [ ["QK_GESC", "KC_1", "KC_2", "KC_3", "KC_4", "KC_5", "KC_6", "KC_7", "KC_8", "KC_9", "KC_0", "KC_MINS", "KC_EQL", "KC_BSLS", "KC_GRV", "KC_TAB", "KC_Q", "KC_W", "KC_E", "KC_R", "KC_T", "KC_Y", "KC_U", "KC_I", "KC_O", "KC_P", "KC_LBRC", "KC_RBRC", "KC_BSPC", "CTL_T(KC_ESC)", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_ENT", "KC_LSFT", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_SLSH", "KC_RSFT", "MO(1)", "KC_NO", "KC_LALT", "KC_LGUI", "KC_SPC", "KC_RGUI", "KC_RALT", "KC_NO"], - ["KC_TRNS", "KC_F1", "KC_F2", "KC_F3", "KC_F4", "KC_F5", "KC_F6", "KC_F7", "KC_F8", "KC_F9", "KC_F10", "KC_F11", "KC_F12", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_UP", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_VOLD", "KC_VOLU", "KC_MUTE", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_LEFT", "KC_RGHT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_DOWN", "KC_TRNS", "KC_TRNS", "KC_NO", "TG(2)", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_NO"], + ["KC_GRV", "KC_F1", "KC_F2", "KC_F3", "KC_F4", "KC_F5", "KC_F6", "KC_F7", "KC_F8", "KC_F9", "KC_F10", "KC_F11", "KC_F12", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_UP", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_VOLD", "KC_VOLU", "KC_MUTE", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_LEFT", "KC_RGHT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_DOWN", "KC_TRNS", "KC_TRNS", "KC_NO", "TG(2)", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_NO"], ["QK_BOOT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "QK_RBT", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_CAPS", "RGB_HUD", "RGB_SAI", "RGB_VAI", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_HOME", "KC_PGUP", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_END", "KC_PGDN", "KC_TRNS", "KC_TRNS", "KC_TRNS", "KC_NO", "KC_TRNS", "KC_TRNS", "KC_TRNS", "RGB_TOG", "RGB_MOD", "KC_NO"] ], "layout": "LAYOUT_60_tsangan_hhkb"