From 05186e1a5a0d97792624503859de342516626058 Mon Sep 17 00:00:00 2001 From: plodah Date: Sun, 3 Nov 2024 05:46:18 +0000 Subject: [PATCH] dz60v2 is a keyboard. --- .../dztech/dz60v2/keymaps/plodah/config.h | 10 ++ .../dztech/dz60v2/keymaps/plodah/keymap.json | 108 ++++++++++++++++++ .../dztech/dz60v2/keymaps/plodahc/config.h | 23 ++++ .../dztech/dz60v2/keymaps/plodahc/keymap.c | 32 ++++++ .../dztech/dz60v2/keymaps/plodahc/rules.mk | 22 ++++ qmk.json | 2 + 6 files changed, 197 insertions(+) create mode 100644 keyboards/dztech/dz60v2/keymaps/plodah/config.h create mode 100644 keyboards/dztech/dz60v2/keymaps/plodah/keymap.json create mode 100644 keyboards/dztech/dz60v2/keymaps/plodahc/config.h create mode 100644 keyboards/dztech/dz60v2/keymaps/plodahc/keymap.c create mode 100644 keyboards/dztech/dz60v2/keymaps/plodahc/rules.mk diff --git a/keyboards/dztech/dz60v2/keymaps/plodah/config.h b/keyboards/dztech/dz60v2/keymaps/plodah/config.h new file mode 100644 index 00000000000..9c000ecd209 --- /dev/null +++ b/keyboards/dztech/dz60v2/keymaps/plodah/config.h @@ -0,0 +1,10 @@ +#pragma once + +#define PLODAH_FEAT_KC +#define PLODAH_QRGB_KC + +#define PLODAH_BORING_LAYER 1 + +#define PLODAH_MSJIGGLER_ENABLED + +#include "plodah.h" diff --git a/keyboards/dztech/dz60v2/keymaps/plodah/keymap.json b/keyboards/dztech/dz60v2/keymaps/plodah/keymap.json new file mode 100644 index 00000000000..56177952cd8 --- /dev/null +++ b/keyboards/dztech/dz60v2/keymaps/plodah/keymap.json @@ -0,0 +1,108 @@ +{ + "version": 1, + "notes": "Hello", + "author": "Plodah", + "documentation": "qmk compile -kb dztech/dz60v2 -km plodah", + "keyboard": "dztech/dz60v2", + "keymap": "plodah", + "layout": "LAYOUT_60_b_iso", + "config": { + "bootmagic": { + "matrix": [0, 0] + }, + "build": { + "lto": true + }, + "caps_word": { + "both_shifts_turns_on": true, + "double_tap_shift_turns_on": false, + "idle_timeout": 1200, + "invert_on_shift": true + }, + "combo": { + "term": 25 + }, + "dynamic_keymap": { + "layer_count": 5 + }, + "features": { + "auto_shift": false, + "autocorrect": true, + "backlight": false, + "bootmagic": true, + "caps_word": true, + "combo": true, + "console": false, + "deferred_exec": true, + "dynamic_macro": true, + "dynamic_tapping_term": false, + "encoder_map": false, + "extrakey": true, + "leader": false, + "mousekey": true, + "os_detection": false, + "rgblight": false, + "rgb_matrix": false, + "space_cadet": false, + "tap_dance": false, + "via": true + }, + "keyboard_name": "dz60 | plodah", + "matrix": { + "debounce": 20 + }, + "qmk": { + "tap_keycode_delay": 8 + }, + "tapping": { + "permissive_hold": true, + "term": 180, + "toggle": 3 + } + }, + "keycodes": [ + { "key": "PL_ALTTAB" }, + { "key": "PL_ALTSTAB" }, + { "key": "PL_FEAT" }, + { "key": "PL_QRGB" }, + { "key": "PL_VERS" }, + { "key": "PL_MSJIG" } + ], + "layers": [ + [ + "KC_ESC", "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_NO", "KC_BSPC", + "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", + "LT(3,KC_BSPC)", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_NUHS", "KC_ENT", + "KC_LSFT", "KC_NUBS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "RSFT_T(KC_SLSH)", "KC_UP", "KC_SLSH", + "KC_LCTL", "KC_LGUI", "KC_LALT", "LT(2,KC_SPC)", "LT(3,KC_SPC)", "LT(2,KC_SPC)", "MT(MOD_RALT,KC_APP)", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT" + ], + [ + "KC_ESC", "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_NO", "KC_BSPC", + "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_CAPS", "KC_A", "KC_S", "KC_D", "KC_F", "KC_G", "KC_H", "KC_J", "KC_K", "KC_L", "KC_SCLN", "KC_QUOT", "KC_NUHS", "KC_ENT", + "KC_LSFT", "KC_NUBS", "KC_Z", "KC_X", "KC_C", "KC_V", "KC_B", "KC_N", "KC_M", "KC_COMM", "KC_DOT", "KC_RSFT", "KC_UP", "KC_SLSH", + "KC_LCTL", "KC_LGUI", "KC_LALT", "KC_SPC", "MO(2)", "KC_SPC", "KC_RALT", "KC_RCTL", "KC_LEFT", "KC_DOWN", "KC_RGHT" + ], + [ + "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_NO", "KC_DEL", + "KC_ENT", "KC_PGUP", "KC_UP", "KC_PGDN", "_______", "_______", "_______", "_______", "_______", "_______", "KC_PSCR", "_______", "_______", + "KC_CAPS", "KC_LEFT", "KC_DOWN", "KC_RGHT", "KC_ENT", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", + "_______", "_______", "_______", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "KC_BTN1", "_______", "CW_TOGG", "KC_PGUP", "_______", + "_______", "GU_TOGG", "_______", "KC_SPC", "KC_SPC ", "KC_SPC", "_______", "_______", "KC_HOME", "KC_PGDN", "KC_END" + ], + [ + "KC_GRV", "MC_1", "MC_2", "MC_3", "MC_4", "MC_5", "MC_6", "MC_7", "MC_8", "PL_FEAT", "PL_QRGB", "PL_VERS", "QK_MAKE", "KC_NO", "KC_DEL", + "BL_TOGG", "BL_BRTG", "BL_UP", "_______", "_______", "RGB_SPI", "_______", "_______", "_______", "_______", "KC_PSCR", "_______", "_______", + "KC_CAPS", "BL_BRTG", "BL_DOWN", "_______", "_______", "RGB_SPD", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", + "_______", "_______", "_______", "_______", "_______", "C(S(KC_V))","_______", "NK_TOGG", "_______", "_______", "_______", "_______", "KC_VOLU", "_______", + "_______", "GU_TOGG", "_______", "KC_SPC", "KC_SPC ", "KC_SPC", "KC_APP", "_______", "KC_HOME", "KC_VOLD", "KC_END" + ], + [ + "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "KC_NO", "_______", + "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", + "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", + "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", + "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______", "_______" + ] + ] +} diff --git a/keyboards/dztech/dz60v2/keymaps/plodahc/config.h b/keyboards/dztech/dz60v2/keymaps/plodahc/config.h new file mode 100644 index 00000000000..b764acadf04 --- /dev/null +++ b/keyboards/dztech/dz60v2/keymaps/plodahc/config.h @@ -0,0 +1,23 @@ +#pragma once + +#define PLODAH_FEAT_KC +#define PLODAH_QRGB_KC + +#ifdef PRODUCT + #undef PRODUCT +#endif // PRODUCT +#define PRODUCT "Keychron Q1v1 ISO Enc | plodahc" + +#define PLODAH_BORING_LAYER 1 + +#define PLODAH_MSJIGGLER_ENABLED + +#define BOOTMAGIC_ROW 0 +#define BOOTMAGIC_COLUMN 0 + +#ifdef DYNAMIC_KEYMAP_LAYER_COUNT + #undef DYNAMIC_KEYMAP_LAYER_COUNT +#endif +#define DYNAMIC_KEYMAP_LAYER_COUNT 5 + +#include "plodah.h" diff --git a/keyboards/dztech/dz60v2/keymaps/plodahc/keymap.c b/keyboards/dztech/dz60v2/keymaps/plodahc/keymap.c new file mode 100644 index 00000000000..78165974a80 --- /dev/null +++ b/keyboards/dztech/dz60v2/keymaps/plodahc/keymap.c @@ -0,0 +1,32 @@ +#include QMK_KEYBOARD_H +#if __has_include("keymap.h") +# include "keymap.h" +#endif + + +/* THIS FILE WAS GENERATED! + * + * This file was generated by qmk json2c. You may or may not want to + * edit it directly. + */ + +enum keymap_keycodes { + PL_ALTTAB = QK_USER_0, + PL_ALTSTAB, + PL_FEAT, + PL_QRGB, + PL_VERS, + PL_MSJIG, +}; + +enum { + TD_ESC_RAGEQUIT +}; + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT_60_b_iso(TD(TD_ESC_RAGEQUIT), 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_NO, KC_BSPC, 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, LT(3,KC_BSPC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), KC_UP, KC_SLSH, KC_LCTL, KC_LGUI, KC_LALT, LT(2,KC_SPC), LT(3,KC_SPC), LT(2,KC_SPC), MT(MOD_RALT,KC_APP), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), + [1] = LAYOUT_60_b_iso(TD(TD_ESC_RAGEQUIT), 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_NO, KC_BSPC, 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_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_RSFT, KC_UP, KC_SLSH, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(2), KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), + [2] = LAYOUT_60_b_iso(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_NO, KC_DEL, KC_ENT, KC_PGUP, KC_UP, KC_PGDN, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, KC_CAPS, KC_LEFT, KC_DOWN, KC_RGHT, KC_ENT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, KC_BTN1, _______, CW_TOGG, KC_PGUP, _______, _______, GU_TOGG, _______, KC_SPC, KC_SPC , KC_SPC, _______, _______, KC_HOME, KC_PGDN, KC_END), + [3] = LAYOUT_60_b_iso(KC_GRV, MC_1, MC_2, MC_3, MC_4, MC_5, MC_6, MC_7, MC_8, PL_FEAT, PL_QRGB, PL_VERS, QK_MAKE, KC_NO, KC_DEL, BL_TOGG, BL_BRTG, BL_UP, _______, _______, RGB_SPI, _______, _______, _______, _______, KC_PSCR, _______, _______, KC_CAPS, BL_BRTG, BL_DOWN, _______, _______, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, C(S(KC_V)), _______, NK_TOGG, _______, _______, _______, _______, KC_VOLU, _______, _______, GU_TOGG, _______, KC_SPC, KC_SPC , KC_SPC, KC_APP, _______, KC_HOME, KC_VOLD, KC_END), + [4] = LAYOUT_60_b_iso(_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_NO, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______) +}; diff --git a/keyboards/dztech/dz60v2/keymaps/plodahc/rules.mk b/keyboards/dztech/dz60v2/keymaps/plodahc/rules.mk new file mode 100644 index 00000000000..13fc2fee537 --- /dev/null +++ b/keyboards/dztech/dz60v2/keymaps/plodahc/rules.mk @@ -0,0 +1,22 @@ +USER_NAME = plodah + +AUTO_SHIFT_ENABLE = no +AUTOCORRECT_ENABLE = yes +BACKLIGHT_ENABLE = no +BOOTMAGIC_ENABLE = yes +CAPS_WORD_ENABLE = yes +COMBO_ENABLE = yes +CONSOLE_ENABLE = no +DEFERRED_EXEC_ENABLE = yes +DYNAMIC_MACRO_ENABLE = yes +DYNAMIC_TAPPING_TERM_ENABLE = no +ENCODER_MAP_ENABLE = no +EXTRAKEY_ENABLE = yes +LEADER_ENABLE = no +MOUSEKEY_ENABLE = yes +OS_DETECTION_ENABLE = no +RGBLIGHT_ENABLE = no +RGB_MATRIX_ENABLE = no +SPACE_CADET_ENABLE = no +TAP_DANCE_ENABLE = yes +VIA_ENABLE = yes diff --git a/qmk.json b/qmk.json index 86d582574cd..71077c0ee24 100644 --- a/qmk.json +++ b/qmk.json @@ -1,6 +1,8 @@ { "userspace_version": "1.1", "build_targets": [ + ["dztech/dz60v2", "plodah"], + ["dztech/dz60v2", "plodahc"], ["keebio/iris/rev2", "plodah"], ["keychron/q1v1/iso_encoder", "plodah"], ["keychron/q1v1/iso_encoder", "plodahc"],