diff options
Diffstat (limited to 'keyboards/dztech')
56 files changed, 0 insertions, 5020 deletions
diff --git a/keyboards/dztech/dz60rgb/keymaps/didel/config.h b/keyboards/dztech/dz60rgb/keymaps/didel/config.h deleted file mode 100644 index 32f04d817a..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/didel/config.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - Keymap for the DZ60RGB keyboard. - Copyright (C) 2020 Dimiter Geelen - - 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 3 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 <https://www.gnu.org/licenses/>. -*/ - -#pragma once - -#define FORCE_NKRO -#define PERMISSIVE_HOLD -#define TAPPING_TERM 150 diff --git a/keyboards/dztech/dz60rgb/keymaps/didel/keymap.c b/keyboards/dztech/dz60rgb/keymaps/didel/keymap.c deleted file mode 100644 index 2147ca8bf8..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/didel/keymap.c +++ /dev/null @@ -1,60 +0,0 @@ -/* - Keymap for the DZ60RGB keyboard. - Copyright (C) 2020 Dimiter Geelen - - 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 3 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 <https://www.gnu.org/licenses/>. -*/ - -#include QMK_KEYBOARD_H - -enum didel_layers { - _QWERTY, - _MEDIA, - _RGB, - _DVORAK, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_QWERTY] = LAYOUT( - 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_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_BSLS, - CTL_T(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_ENT, - LSFT_T(KC_GRAVE), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), KC_UP, LT(2, KC_DEL), - KC_LCTL, LM(1, MOD_LALT), KC_LGUI, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT - ), - - [_MEDIA] = LAYOUT( - TO(3), 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_PWR, - _______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, EE_CLR, - _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, KC_END, KC_PGDN, KC_VOLU, KC_MUTE, - _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT - ), - - [_RGB] = LAYOUT( - _______, 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_DEL, - _______, RGB_TOG, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, _______, _______, _______, QK_BOOT, - _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI, RGB_SPD, _______, _______, EE_CLR, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - - [_DVORAK] = LAYOUT( - KC_DLR, KC_AMPR, KC_LBRC, KC_LCBR, KC_RCBR, KC_LPRN, KC_EQL, KC_ASTR, KC_RPRN, KC_PLUS, KC_RBRC, KC_EXLM, KC_HASH, KC_BSPC, - KC_TAB, KC_SCLN, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, KC_AT, KC_BSLS, - KC_CAPS, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, KC_ENT, - KC_LSFT, KC_QUOT, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, RSFT_T(KC_Z), KC_UP, KC_DEL, - KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, TO(0), KC_LEFT, KC_DOWN, KC_RGHT - ) -}; diff --git a/keyboards/dztech/dz60rgb/keymaps/didel/rules.mk b/keyboards/dztech/dz60rgb/keymaps/didel/rules.mk deleted file mode 100644 index 23a7632433..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/didel/rules.mk +++ /dev/null @@ -1 +0,0 @@ -NKRO_ENABLE = yes diff --git a/keyboards/dztech/dz60rgb/keymaps/kgreulich/config.h b/keyboards/dztech/dz60rgb/keymaps/kgreulich/config.h deleted file mode 100644 index 6ad73f6edf..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/kgreulich/config.h +++ /dev/null @@ -1,67 +0,0 @@ -#pragma once - -#define FORCE_NKRO - -#define PERMISSIVE_HOLD - -#define TAP_HOLD_CAPS_DELAY 0 -#define USB_POLLING_INTERVAL_MS 1 - -// some speed shit -#define NO_ACTION_MACRO -#define NO_ACTION_FUNCTION - -#ifndef NO_DEBUG -#define NO_DEBUG -#endif // !NO_DEBUG -#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE) -#define NO_PRINT -#endif // !NO_PRINT - -#define NO_ACTION_ONESHOT -#define QUICK_TAP_TERM 0 - -// #include "config_led.h" -// #include "dz60rgb.h" -#undef DISABLE_RGB_MATRIX_SPLASH -#undef DISABLE_RGB_MATRIX_MULTISPLASH -#undef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH -#undef RGB_MATRIX_DEFAULT_MODE -#define RGB_MATRIX_FRAMEBUFFER_EFFECTS -#undef ENABLE_RGB_MATRIX_SOLID_COLOR -#undef ENABLE_RGB_MATRIX_ALPHAS_MODS -#undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -#undef ENABLE_RGB_MATRIX_BREATHING -#undef ENABLE_RGB_MATRIX_BAND_SAT -#undef ENABLE_RGB_MATRIX_BAND_VAL -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -#undef ENABLE_RGB_MATRIX_CYCLE_ALL -#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL -#undef ENABLE_RGB_MATRIX_DUAL_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -#undef ENABLE_RGB_MATRIX_RAINDROPS -#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -#undef ENABLE_RGB_MATRIX_TYPING_HEATMAP -#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -//#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -#undef ENABLE_RGB_MATRIX_SPLASH -#undef ENABLE_RGB_MATRIX_MULTISPLASH -#undef ENABLE_RGB_MATRIX_SOLID_SPLASH -#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH diff --git a/keyboards/dztech/dz60rgb/keymaps/kgreulich/keymap.c b/keyboards/dztech/dz60rgb/keymaps/kgreulich/keymap.c deleted file mode 100644 index 711d8687ba..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/kgreulich/keymap.c +++ /dev/null @@ -1,25 +0,0 @@ -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT( - 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_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_BSLS, - 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_ENT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, LT(2, KC_DEL), - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT - ), - [1] = LAYOUT( - KC_GRAVE, 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_DEL, - _______, _______, _______, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, EE_CLR, - _______, _______, _______, _______, _______, _______, NK_TOGG, _______, _______, KC_END, KC_PGDN, KC_VOLU, KC_MUTE, - _______, _______, _______, KC_SPC, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT - ), - [2] = LAYOUT( - _______, 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_DEL, - _______, RGB_TOG, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, _______, _______, _______, QK_BOOT, - _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI, RGB_SPD, _______, _______, EE_CLR, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______ - ) -}; diff --git a/keyboards/dztech/dz60rgb/keymaps/kgreulich/rules.mk b/keyboards/dztech/dz60rgb/keymaps/kgreulich/rules.mk deleted file mode 100644 index 8a502e9ee3..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/kgreulich/rules.mk +++ /dev/null @@ -1 +0,0 @@ -NKRO_ENABLE = yes # USB Nkey Rollover diff --git a/keyboards/dztech/dz60rgb/keymaps/matthewrobo/config.h b/keyboards/dztech/dz60rgb/keymaps/matthewrobo/config.h deleted file mode 100644 index 90627f894f..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/matthewrobo/config.h +++ /dev/null @@ -1,71 +0,0 @@ -#pragma once - -#define FORCE_NKRO - -#define PERMISSIVE_HOLD -#define TAPPING_TERM 150 - -#define TAP_HOLD_CAPS_DELAY 0 - -#undef DISABLE_RGB_MATRIX_SPLASH -#undef DISABLE_RGB_MATRIX_MULTISPLASH -#undef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH -#undef RGB_MATRIX_DEFAULT_MODE -#define RGB_MATRIX_FRAMEBUFFER_EFFECTS - -// #undef ENABLE_RGB_MATRIX_SOLID_COLOR -// #undef ENABLE_RGB_MATRIX_ALPHAS_MODS -// #undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -// #undef ENABLE_RGB_MATRIX_BREATHING -#undef ENABLE_RGB_MATRIX_BAND_SAT -// #undef ENABLE_RGB_MATRIX_BAND_VAL -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -#undef ENABLE_RGB_MATRIX_CYCLE_ALL -#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -// #undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL -#undef ENABLE_RGB_MATRIX_DUAL_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -#undef ENABLE_RGB_MATRIX_RAINDROPS -#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -// #undef ENABLE_RGB_MATRIX_TYPING_HEATMAP -#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -// #undef ENABLE_RGB_MATRIX_SPLASH -// #undef ENABLE_RGB_MATRIX_MULTISPLASH -// #undef ENABLE_RGB_MATRIX_SOLID_SPLASH -// #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH - -// #define RGB_MATRIX_KEYRELEASES - -// some speed shit -#define NO_ACTION_MACRO -#define NO_ACTION_FUNCTION - -#ifndef NO_DEBUG -#define NO_DEBUG -#endif // !NO_DEBUG -#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE) -#define NO_PRINT -#endif // !NO_PRINT - -#define NO_ACTION_ONESHOT -#define QUICK_TAP_TERM 0 - -// #include "config_led.h" -// #include "dz60rgb.h" diff --git a/keyboards/dztech/dz60rgb/keymaps/matthewrobo/keymap.c b/keyboards/dztech/dz60rgb/keymaps/matthewrobo/keymap.c deleted file mode 100644 index e446178b62..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/matthewrobo/keymap.c +++ /dev/null @@ -1,324 +0,0 @@ -#include QMK_KEYBOARD_H - - -enum dz60rgb_layers { - _QWERTY, - _FNM, - _NAV, - _RGB, - _FNC -}; - -enum dz60rgb_keycodes { - REBOOT = SAFE_RANGE, - MAS_CRM, - MAS_PRP, - MAS_RED, - MAS_GRN, - MAS_BLU, - MAS_CYN, - MAS_MGT, - MAS_YEL, - MAS_KEY, - MAS_WHT, -}; -#define _V_V_V_ KC_TRNS -#define LT_CAPS LT(_NAV, KC_CAPS) -#define LT_DEL LT(_RGB, KC_DEL) -#define MT_SLSH RSFT_T(KC_SLSH) -#define MT_APP RALT_T(KC_APP) -#define LM_LALT LM(_FNM, MOD_LALT) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_QWERTY] = LAYOUT( - 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_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_BSLS, - LT_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, - SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, MT_SLSH, KC_UP, LT_DEL, - KC_LCTL, KC_LGUI, LM_LALT, KC_SPC, MT_APP, MO(_FNC), KC_LEFT, KC_DOWN, KC_RGHT - ), - [_FNM] = LAYOUT( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _V_V_V_, _______, _______, _______, _______, _______, _______ - ), - [_NAV] = LAYOUT( - KC_NUM, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_P7, KC_P8, KC_P9, KC_PAST, KC_PMNS, KC_PPLS, KC_DEL, - _______, KC_PGUP, KC_HOME, KC_UP, KC_END, _______, _______, KC_P4, KC_P5, KC_P6, KC_PSLS, KC_PSCR, KC_SCRL, KC_INS, - _V_V_V_, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, KC_P1, KC_P2, KC_P3, _______, _______, KC_PENT, - _______, _______, _______, _______, _______, _______, KC_P0, KC_P0, KC_P0, KC_PDOT, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [_RGB] = LAYOUT( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, - _______, RGB_MOD, RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, MAS_MGT, MAS_BLU, MAS_WHT, RGB_RMOD, RGB_MOD, _______, - _______, RGB_RMOD, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, MAS_RED, MAS_KEY, MAS_CYN, MAS_PRP, _______, _______, - _______, RGB_TOG, _______, _______, _______, _______, _______, MAS_YEL, MAS_GRN, MAS_CRM, _______, _______, _V_V_V_, - _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [_FNC] = LAYOUT( // fuck it edition - RCTL(KC_ESC), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, AS_TOGG, - RCTL(KC_TAB), RCTL(KC_Q), RCTL(KC_W), RCTL(KC_E), RCTL(KC_R), RCTL(KC_T), RCTL(KC_Y), RCTL(KC_U), RCTL(KC_I), RCTL(KC_O), RCTL(KC_P), RCTL(KC_LBRC), RCTL(KC_RBRC), RCTL(KC_BSLS), - RCTL(KC_CAPS), RCTL(KC_A), RCTL(KC_S), RCTL(KC_D), RCTL(KC_F), RCTL(KC_G), RCTL(KC_H), RCTL(KC_J), RCTL(KC_K), RCTL(KC_L), RCTL(KC_SCLN), RCTL(KC_QUOT), RCTL(KC_ENT), - RCTL(KC_LSFT), RCTL(KC_Z), RCTL(KC_X), RCTL(KC_C), RCTL(KC_V), REBOOT, RCTL(KC_N), RCTL(KC_M), RCTL(KC_COMM), RCTL(KC_DOT), RCTL(KC_SLSH), KC_VOLU, RCTL(KC_DEL), - RCTL(KC_LCTL), RCTL(KC_LGUI), RCTL(KC_LALT), RCTL(KC_SPC), KC_MUTE, _V_V_V_, RCTL(KC_LEFT), KC_VOLD, RCTL(KC_RGHT) - ), - /* - [_FNC] = LAYOUT( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, AS_TOGG, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, REBOOT, _______, _______, _______, _______, RCTL(KC_SLSH), KC_VOLU, RCTL(KC_DEL), - _______, _______, _______, _______, KC_MUTE, _______, RCTL(KC_LEFT), KC_VOLD, RCTL(KC_RGHT) - ), - [_LAYER] = LAYOUT( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [_LAYER] = LAYOUT( - 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, - 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, - 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, - 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, - 62, 61, 60, 59, 58, 57, 56, 55, 54 - ), - */ -}; - -bool rgb_matrix_indicators_user(void) { - led_t led_state = host_keyboard_led_state(); - - if (!g_suspend_state && rgb_matrix_config.enable) { - switch (get_highest_layer(layer_state)) { - case _NAV: - if (led_state.num_lock) { - rgb_matrix_set_color(13, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(19, 0xFF, 0xFF, 0x00); - } else { - rgb_matrix_set_color(13, 0x00, 0x00, 0x00); - rgb_matrix_set_color(19, 0xFF, 0x00, 0x00); - } - - rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF); // layer indicator - // ESDF - rgb_matrix_set_color(24, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(38, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(37, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(36, 0xFF, 0x00, 0x00); - // home/end - rgb_matrix_set_color(25, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(23, 0x00, 0xFF, 0x00); - // pgup/dn - rgb_matrix_set_color(26, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(39, 0x00, 0x00, 0xFF); - // numpad - rgb_matrix_set_color(6, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(5, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(4, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(20, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(18, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(33, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(32, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(31, 0xFF, 0xFF, 0x00); - // zero - rgb_matrix_set_color(47, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(46, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(45, 0xFF, 0x00, 0x00); - // dot - rgb_matrix_set_color(44, 0x00, 0x00, 0xFF); - // math shit - rgb_matrix_set_color(3, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(2, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(1, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(0, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(17, 0x00, 0x00, 0xFF); - // other - rgb_matrix_set_color(16, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(15, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(14, 0xFF, 0xFF, 0xFF); - break; - - case _RGB: { - HSV hsv = { rgb_matrix_config.hsv.h, rgb_matrix_config.hsv.s, rgb_matrix_config.hsv.v }; - HSV hui = hsv; - HSV hud = hsv; - HSV sai = hsv; - HSV sad = hsv; - HSV vai = hsv; - HSV vad = hsv; - hui.h = hsv.h + 8; - hud.h = hsv.h - 8; - sai.s = hsv.s + 16 > 255 ? 255 : hsv.s + 16; - sad.s = hsv.s - 16 < 0 ? 0 : hsv.s - 16; - vai.v = hsv.v + 16 > 255 ? 255 : hsv.v + 16; - vad.v = hsv.v - 16 < 0 ? 0 : hsv.v - 16; - RGB rgb = hsv_to_rgb(hsv); - RGB rgbHUI = hsv_to_rgb(hui); - RGB rgbHUD = hsv_to_rgb(hud); - RGB rgbSAI = hsv_to_rgb(sai); - RGB rgbSAD = hsv_to_rgb(sad); - RGB rgbVAI = hsv_to_rgb(vai); - RGB rgbVAD = hsv_to_rgb(vad); - rgb_matrix_set_color(41, 0xFF, 0xFF, 0xFF); // layer indicator - rgb_matrix_set_color(59, rgb.r, rgb.g, rgb.b); // color indicator - rgb_matrix_set_color(26, 0xFF, 0x80, 0x00); //MOD - rgb_matrix_set_color(39, 0xFF, 0x80, 0x00); //MOD - rgb_matrix_set_color(16, 0xFF, 0x80, 0x00); //RGB_RMOD - rgb_matrix_set_color(15, 0xFF, 0x80, 0x00); //MOD - rgb_matrix_set_color(52, 0xFF, 0x40, 0x00); //TOG - rgb_matrix_set_color(25, 0x80, 0x80, 0x80); //SPI - rgb_matrix_set_color(38, 0x80, 0x80, 0x80); //SPD - rgb_matrix_set_color(24, rgbHUI.r, rgbHUI.g, rgbHUI.b); //HUI - rgb_matrix_set_color(37, rgbHUD.r, rgbHUD.g, rgbHUD.b); //HUD - rgb_matrix_set_color(23, rgbSAI.r, rgbSAI.g, rgbSAI.b); //SAI - rgb_matrix_set_color(36, rgbSAD.r, rgbSAD.g, rgbSAD.b); //SAD - rgb_matrix_set_color(22, rgbVAI.r, rgbVAI.g, rgbVAI.b); //VAI - rgb_matrix_set_color(35, rgbVAD.r, rgbVAD.g, rgbVAD.b); //VAD - rgb_matrix_set_color(19, 0xF0, 0x00, 0xFF); //MAS_MGT - rgb_matrix_set_color(18, 0x00, 0x02, 0xFF); //MAS_BLU - rgb_matrix_set_color(33, 0xFF, 0x00, 0x00); //MAS_RED - rgb_matrix_set_color(32, 0x00, 0x00, 0x00); //MAS_KEY - rgb_matrix_set_color(31, 0x00, 0xFF, 0xF7); //MAS_CYN - rgb_matrix_set_color(46, 0xFF, 0xDA, 0x00); //MAS_YEL - rgb_matrix_set_color(45, 0x00, 0xFF, 0x01); //MAS_GRN - rgb_matrix_set_color(44, 0xFF, 0xA5, 0x18); //MAS_CRM - rgb_matrix_set_color(30, 0x81, 0x3C, 0xFF); //MAS_PRP - rgb_matrix_set_color(17, 0xFF, 0xFF, 0xFF); //MAS_WHT - } - break; - - case _FNC: - rgb_matrix_set_color(57, 0xFF, 0xFF, 0xFF); // layer indicator - rgb_matrix_set_color(48, 0xFF, 0x00, 0x00); // bootloader - rgb_matrix_set_color(42, 0x00, 0x80, 0xFF); // vol - rgb_matrix_set_color(55, 0x00, 0x80, 0xFF); - rgb_matrix_set_color(58, 0xFF, 0x00, 0x00); // mute - rgb_matrix_set_color(56, 0xFF, 0x80, 0x00); // ctrl+left/right - rgb_matrix_set_color(54, 0xFF, 0x80, 0x00); - rgb_matrix_set_color(41, 0xFF, 0x00, 0x40); // ctrl+delete - rgb_matrix_set_color(43, 0xFF, 0x00, 0x40); // ctrl+slash - - break; - } - } - - if (led_state.caps_lock) { - rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF); - } - return false; -} - -void matrix_init_user(void) -{ - //user initialization - autoshift_disable(); -} - -void matrix_scan_user(void) -{ - //user matrix -} - -bool process_record_user(uint16_t keycode, keyrecord_t* record) -{ - static uint32_t key_timer; - - switch (keycode) { - case REBOOT: - if (record->event.pressed) { - key_timer = timer_read32(); - } else { - if (timer_elapsed32(key_timer) >= 500) { - rgb_matrix_enable_noeeprom(); - rgb_matrix_mode_noeeprom(1); - rgb_matrix_sethsv_noeeprom(11, 11, 11); - wait_ms(150); - reset_keyboard(); - } else { - register_code(KC_RCTL); - tap_code(KC_B); - unregister_code(KC_RCTL); - } - } - - return false; - - case MAS_CRM: - if (record->event.pressed) { - rgb_matrix_sethsv(32, 160, 255); - } - - return false; - - case MAS_PRP: - if (record->event.pressed) { - rgb_matrix_sethsv(192, 112, 255); - } - - return false; - - case MAS_RED: - if (record->event.pressed) { - rgb_matrix_sethsv(0, 255, 255); - } - - return false; - - case MAS_GRN: - if (record->event.pressed) { - rgb_matrix_sethsv(88, 255, 255); - } - - return false; - - case MAS_BLU: - if (record->event.pressed) { - rgb_matrix_sethsv(168, 255, 255); - } - - return false; - - case MAS_CYN: - if (record->event.pressed) { - rgb_matrix_sethsv(128, 255, 255); - } - - return false; - - case MAS_MGT: - if (record->event.pressed) { - rgb_matrix_sethsv(216, 255, 255); - } - - return false; - - case MAS_YEL: - if (record->event.pressed) { - rgb_matrix_sethsv(40, 255, 255); - } - - return false; - - case MAS_KEY: - if (record->event.pressed) { - rgb_matrix_sethsv(0, 0, 0); - } - - return false; - - case MAS_WHT: - if (record->event.pressed) { - rgb_matrix_sethsv(128, 0, 255); - } - - return false; - - default: - return true; - } -} diff --git a/keyboards/dztech/dz60rgb/keymaps/matthewrobo/rules.mk b/keyboards/dztech/dz60rgb/keymaps/matthewrobo/rules.mk deleted file mode 100644 index e2618e5290..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/matthewrobo/rules.mk +++ /dev/null @@ -1,7 +0,0 @@ -NKRO_ENABLE = yes # USB Nkey Rollover -AUTO_SHIFT_ENABLE = yes # Auto Shift -# VELOCIKEY_ENABLE = yes - -LTO_ENABLE = yes - -# SRC += dz60rgb.c diff --git a/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c b/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c deleted file mode 100644 index 52b7643850..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/mekanist/keymap.c +++ /dev/null @@ -1,154 +0,0 @@ -#include QMK_KEYBOARD_H -#define _LAYER0 0 -#define _LAYER1 1 -#define _LAYER2 2 -#define _LAYER3 3 -#define _LAYER4 4 -#define _LAYER5 5 -#define _LAYER6 6 -#define _LAYER7 7 -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_LAYER0] = LAYOUT( /* MAC */ - 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_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_BSLS, - CTL_T(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_ENT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), KC_UP, LT(2, KC_DEL), - KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(1) , KC_LEFT, KC_DOWN, KC_RGHT), - [_LAYER1] = LAYOUT( /* FN */ - TO(3), 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_DEL, - _______, _______, _______, _______, _______, _______, _______, _______, LGUI(LSFT(KC_5)), KC_SCRL, KC_PAUS, _______, _______, QK_BOOT, - _______, KC_VOLU, KC_VOLD, KC_MUTE, KC_EJCT, _______, KC_ASTR, KC_PSLS, KC_HOME, KC_PGUP, _______, _______, _______, _______, - _______, _______, _______, _______, _______, KC_PPLS, KC_PMNS, KC_END, KC_PGDN, MO(5), KC_MPLY, _______, - _______, _______, _______, TO(4), _______, _______, KC_MPRV, KC_MSTP, KC_MFFD), - [_LAYER2] = LAYOUT( /* LIGHT */ - RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, _______, _______, _______, _______, _______, - _______, RGB_HUD, RGB_HUI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, RGB_SAD, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, RGB_MOD, _______, - _______, _______, _______, _______, _______, _______, RGB_SPD, RGB_RMOD, RGB_SPI), - [_LAYER3] = LAYOUT( /* NUMPAD */ - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, _______, _______, _______, _______, KC_PSLS, KC_PAST, KC_PMNS, KC_PPLS, _______, - _______, KC_P7, KC_P8, KC_P9, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, _______, _______, TO(0), - _______, KC_P4, KC_P5, KC_P6, _______, _______, _______, _______, KC_P4, KC_P5, KC_P6, _______, KC_PENT, - _______, KC_P1, KC_P2, KC_P3, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, _______, _______, - _______, KC_P0, KC_PDOT, KC_ENT, KC_P0, KC_PDOT, _______, _______, _______), - [_LAYER4] = LAYOUT( /* WIN */ - 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_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_BSLS, - CTL_T(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_ENT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), KC_UP, LT(2, KC_DEL), - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(5) , KC_LEFT, KC_DOWN, KC_RIGHT), - [_LAYER5] = LAYOUT( /* FN */ - _______, KC_BRID, KC_BRIU, LCTL(KC_UP), LSFT(KC_F12), KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_DEL, - _______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_VOLU, KC_MUTE, - _______, _______, _______, TO(0), _______, _______, KC_MPRV, KC_VOLD, KC_MNXT), -} -; - - - -void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { - for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) { - if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { - rgb_matrix_set_color( i, red, green, blue ); - } - } -} - -bool rgb_matrix_indicators_user(void) { - led_t led_state = host_keyboard_led_state(); - - if (!g_suspend_state && rgb_matrix_config.enable) { - switch (get_highest_layer(layer_state)) { - case _LAYER1: - rgb_matrix_layer_helper(0xFF, 0x00, 0x00); break; - - case _LAYER2: - rgb_matrix_layer_helper(0x00, 0xFF, 0x00); break; - - case _LAYER4: - rgb_matrix_layer_helper(0xFF, 0xFF, 0x00); break; - } - } - - if (led_state.caps_lock) { - rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF); - } - - switch (get_highest_layer(layer_state)) { - case _LAYER3: - if (led_state.num_lock) { - rgb_matrix_set_color(13, 0xFF, 0x00, 0x00); - } else { - rgb_matrix_set_color(13, 0x00, 0x00, 0x00); - } - - rgb_matrix_set_color(0, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(1, 0x00, 0x00, 0x00); - rgb_matrix_set_color(1, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(2, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(3, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(4, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(5, 0x00, 0x00, 0x00); - rgb_matrix_set_color(6, 0x00, 0x00, 0x00); - rgb_matrix_set_color(7, 0x00, 0x00, 0x00); - rgb_matrix_set_color(8, 0x00, 0x00, 0x00); - rgb_matrix_set_color(9, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(10, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(11, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(12, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(14, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(15, 0x00, 0x00, 0x00); - rgb_matrix_set_color(16, 0x00, 0x00, 0x00); - rgb_matrix_set_color(17, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(18, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(19, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(20, 0x00, 0x00, 0x00); - rgb_matrix_set_color(21, 0x00, 0x00, 0x00); - rgb_matrix_set_color(22, 0x00, 0x00, 0x00); - rgb_matrix_set_color(23, 0x00, 0x00, 0x00); - rgb_matrix_set_color(24, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(25, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(26, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(27, 0x00, 0x00, 0x00); - rgb_matrix_set_color(28, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(29, 0x00, 0x00, 0x00); - rgb_matrix_set_color(30, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(31, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(33, 0x00, 0x00, 0x00); - rgb_matrix_set_color(34, 0x00, 0x00, 0x00); - rgb_matrix_set_color(35, 0x00, 0x00, 0x00); - rgb_matrix_set_color(36, 0x00, 0x00, 0x00); - rgb_matrix_set_color(37, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(38, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(39, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(40, 0x00, 0x00, 0x00); - rgb_matrix_set_color(41, 0x00, 0x00, 0x00); - rgb_matrix_set_color(42, 0x00, 0x00, 0x00); - rgb_matrix_set_color(43, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(44, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(45, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(46, 0x00, 0x00, 0x00); - rgb_matrix_set_color(47, 0x00, 0x00, 0x00); - rgb_matrix_set_color(48, 0x00, 0x00, 0x00); - rgb_matrix_set_color(49, 0x00, 0x00, 0x00); - rgb_matrix_set_color(50, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(51, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(52, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(53, 0x00, 0x00, 0x00); - rgb_matrix_set_color(54, 0x00, 0x00, 0x00); - rgb_matrix_set_color(55, 0x00, 0x00, 0x00); - rgb_matrix_set_color(56, 0x00, 0x00, 0x00); - rgb_matrix_set_color(57, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(58, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(59, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(60, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(61, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(62, 0x00, 0x00, 0x00); - break; - } - return false; -} diff --git a/keyboards/dztech/dz60rgb/keymaps/mekanist/readme.md b/keyboards/dztech/dz60rgb/keymaps/mekanist/readme.md deleted file mode 100644 index e85200457e..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/mekanist/readme.md +++ /dev/null @@ -1,34 +0,0 @@ -# mekanist keymap instructions - -## Dev Environment setup (macOS) - -1. Install Homebrew by copy pasting the following into a terminal: - ``` - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - ``` - -2. Refer to the [QMK macOS Instructions](https://github.com/qmk/qmk_firmware/blob/master/docs/getting_started_build_tools.md#macos) and install the list of tools using the `brew` command in terminal. - -3. While in terminal, issue the following command within the directory you wish to clone qmk_firmware in. - - ``` - git clone https://github.com/qmk/qmk_firmware.git - ``` - -## Creating the mekanist dz60rgb firmware file - -1. While in the `qmk_firmware` directory, issue the following command - - ``` - make git-submodule - ``` - - This will download the chibi-os submoduled needed to create firmware for ARM based boards such as the dz60rgb. - -2. While in the `qmk_firmware` directory, issue the followng command - - ``` - make dztech/dz60rgb:mekanist - ``` - - This will result in a file called `dztech_dz60rgb_mekanist.bin` that you can flash onto your board using QMK Toolbox. diff --git a/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c b/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c deleted file mode 100644 index c4a9a2b588..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/perseid/keymap.c +++ /dev/null @@ -1,132 +0,0 @@ -#include QMK_KEYBOARD_H - -enum layer_names { - _QWERTY, - _FNM -}; - -enum custom_keycodes { - QWERTY = SAFE_RANGE -}; - -#define FNM MO(_FNM) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_QWERTY] = LAYOUT( /* Base */ - 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_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_BSLS, - KC_GRV, 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_UP, KC_DEL, - KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, FNM, KC_RALT, KC_LEFT, KC_DOWN, KC_RIGHT), - [_FNM] = LAYOUT( /* FN */ - 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_DEL, - KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPI, RGB_SPD, KC_HOME, KC_PGUP, EE_CLR, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDN, KC_VOLU, KC_MUTE, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT) -}; - -void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { - for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) { - if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { - rgb_matrix_set_color( i, red, green, blue ); - } - } -} - -bool rgb_matrix_indicators_user(void) { - if (!g_suspend_state) { - switch (get_highest_layer(layer_state)) { - case _QWERTY: - rgb_matrix_layer_helper(0x00, 0x0F, 0xFF); break; - - case _FNM: - rgb_matrix_layer_helper(0xF0, 0x00, 0xFF); break; - } - } - - switch (get_highest_layer(layer_state)) { - case _FNM: - rgb_matrix_set_color(0, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(1, 0x00, 0x00, 0x00); - rgb_matrix_set_color(1, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(2, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(3, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(4, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(5, 0x00, 0x00, 0x00); - rgb_matrix_set_color(6, 0x00, 0x00, 0x00); - rgb_matrix_set_color(7, 0x00, 0x00, 0x00); - rgb_matrix_set_color(8, 0x00, 0x00, 0x00); - rgb_matrix_set_color(9, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(10, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(11, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(12, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(14, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(15, 0x00, 0x00, 0x00); - rgb_matrix_set_color(16, 0x00, 0x00, 0x00); - rgb_matrix_set_color(17, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(18, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(19, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(20, 0x00, 0x00, 0x00); - rgb_matrix_set_color(21, 0x00, 0x00, 0x00); - rgb_matrix_set_color(22, 0x00, 0x00, 0x00); - rgb_matrix_set_color(23, 0x00, 0x00, 0x00); - rgb_matrix_set_color(24, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(25, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(26, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(27, 0x00, 0x00, 0x00); - rgb_matrix_set_color(28, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(29, 0x00, 0x00, 0x00); - rgb_matrix_set_color(30, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(31, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(32, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(33, 0x00, 0x00, 0x00); - rgb_matrix_set_color(34, 0x00, 0x00, 0x00); - rgb_matrix_set_color(35, 0x00, 0x00, 0x00); - rgb_matrix_set_color(36, 0x00, 0x00, 0x00); - rgb_matrix_set_color(37, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(38, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(39, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(40, 0x00, 0x00, 0x00); - rgb_matrix_set_color(41, 0x00, 0x00, 0x00); - rgb_matrix_set_color(42, 0x00, 0x00, 0x00); - rgb_matrix_set_color(43, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(44, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(45, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(46, 0x00, 0x00, 0x00); - rgb_matrix_set_color(47, 0x00, 0x00, 0x00); - rgb_matrix_set_color(48, 0x00, 0x00, 0x00); - rgb_matrix_set_color(49, 0x00, 0x00, 0x00); - rgb_matrix_set_color(50, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(51, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(52, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(53, 0x00, 0x00, 0x00); - rgb_matrix_set_color(54, 0x00, 0x00, 0x00); - rgb_matrix_set_color(55, 0x00, 0x00, 0x00); - rgb_matrix_set_color(56, 0x00, 0x00, 0x00); - rgb_matrix_set_color(57, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(58, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(59, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(60, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(61, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(62, 0x00, 0x00, 0x00); - break; - } - return false; -} - - -void matrix_init_user(void) -{ - //user initialization -} - -void matrix_scan_user(void) -{ - //user matrix -} - -bool process_record_user(uint16_t keycode, keyrecord_t* record) -{ - return true; -} diff --git a/keyboards/dztech/dz60rgb/keymaps/perseid/readme.md b/keyboards/dztech/dz60rgb/keymaps/perseid/readme.md deleted file mode 100644 index a4fd04f63d..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/perseid/readme.md +++ /dev/null @@ -1,7 +0,0 @@ -# My Personal Keymap for the dz60rgb - -This is for the one with the arrows. Not very many changes. - -* I don't use the capslock - so that's the grave key -* Escape is now GESC -* Alt and Cmd are swapped - cause I use a Mac diff --git a/keyboards/dztech/dz60rgb/keymaps/piv3rt/config.h b/keyboards/dztech/dz60rgb/keymaps/piv3rt/config.h deleted file mode 100644 index bdc2a1a057..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/piv3rt/config.h +++ /dev/null @@ -1,56 +0,0 @@ -/* -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/>. -*/ - -#pragma once - -#define FORCE_NKRO -#define TAPPING_TERM 100 - -#undef ENABLE_RGB_MATRIX_ALPHAS_MODS -#undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -#undef ENABLE_RGB_MATRIX_BREATHING -#undef ENABLE_RGB_MATRIX_BAND_SAT -#undef ENABLE_RGB_MATRIX_BAND_VAL -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -#undef ENABLE_RGB_MATRIX_CYCLE_ALL -//#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -#undef ENABLE_RGB_MATRIX_DUAL_BEACON -#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -#undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL -#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -#undef ENABLE_RGB_MATRIX_RAINDROPS -#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -#undef ENABLE_RGB_MATRIX_TYPING_HEATMAP -#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -#undef ENABLE_RGB_MATRIX_SPLASH -#undef ENABLE_RGB_MATRIX_MULTISPLASH -#undef ENABLE_RGB_MATRIX_SOLID_SPLASH -#undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH diff --git a/keyboards/dztech/dz60rgb/keymaps/piv3rt/keymap.c b/keyboards/dztech/dz60rgb/keymaps/piv3rt/keymap.c deleted file mode 100644 index abb2c07885..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/piv3rt/keymap.c +++ /dev/null @@ -1,231 +0,0 @@ -/* -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/>. -*/ - -#include QMK_KEYBOARD_H - -#define LT_DEL LT(_RGB, KC_DEL) -#define LT_CAPS LT(_FNC, KC_CAPS) -#define LM_LALT LM(_FNC, MOD_LALT) -#define LM_NALT LM(_NUM, MOD_LALT) -#define RSFT_SL RSFT_T(KC_SLSH) -#define RALT_F6 RALT_T(KC_F6) -#define CTLINS LCTL(KC_INS) // Ctrl + Insert (terminal copy) -#define SFTINS LSFT(KC_INS) // Shift + Insert (terminal paste) -#define AMDREP LCTL(LSFT(KC_S)) // AMD Replay -#define AMDREC LCTL(LSFT(KC_E)) // AMD Record - -enum piv3rt_layers { - _DEF, - _MAC, - _FNC, - _RGB, - _NUM, -}; - -enum piv3rt_keycodes { - RGB_RST = SAFE_RANGE, - RGB_PCY, // Cycle through RGB profiles - RGB_000, // Turn everything off except profiles - EACUTE, // French É for Windows - CCED, // French Ç for Windows - AGRAVE, // French À for Windows - FRQLT, // French ≪ for Windows - FRQGT, // French ≫ for Windows -}; - -enum piv3rt_rgbprofiles { - CSGO, - TEXT, - OFF, // Should be the last item -}; - -enum piv3rt_rgbprofiles current_profile = OFF; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_DEF] = LAYOUT( - 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_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_BSLS, - LT_CAPS, 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, RSFT_SL, KC_UP, LT_DEL, - KC_LCTL, KC_LGUI, LM_LALT, KC_SPC, RALT_F6, MO(_FNC), KC_LEFT, KC_DOWN, KC_RGHT - ), - [_MAC] = LAYOUT( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - KC_LGUI, KC_LCTL, KC_LGUI, _______, _______, _______, _______, _______, _______ - ), - [_FNC] = LAYOUT( - _______, 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_DEL, - _______, AGRAVE, KC_UP, EACUTE, _______, KC_INS, _______, _______, KC_UP, KC_UP, KC_PGUP, KC_HOME, KC_PSCR, KC_NUBS, - _______, KC_HOME, KC_DOWN, KC_END, CTLINS, SFTINS, _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_END, KC_F8, - _______, _______, KC_CALC, CCED, _______, _______, _______, _______, FRQLT, FRQGT, TG(_NUM), KC_VOLU, KC_MUTE, - _______, TG(_MAC), LM_NALT, _______, KC_MPLY, _______, KC_MPRV, KC_VOLD, KC_MNXT - ), - [_RGB] = LAYOUT( - _______, 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_DEL, - _______, RGB_TOG, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, _______, _______, _______, QK_BOOT, - _______, _______, _______, _______, _______, RGB_PCY, _______, _______, RGB_SPI, RGB_SPD, _______, _______, EE_CLR, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_000, _______, - _______, _______, _______, RGB_RST, _______, _______, KC_PWR, AMDREC, AMDREP - ), - [_NUM] = LAYOUT( - KC_NUM, _______, _______, _______, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, KC_P4, KC_P5, KC_P6, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, KC_P1, KC_P2, KC_P3, KC_PENT, KC_PENT, - _______, _______, _______, _______, _______, _______, _______, _______, KC_P0, KC_PDOT, TG(_NUM), _______, _______, - _______, _______, _______, KC_PENT, _______, _______, _______, _______, _______ - ), -}; - -void reset_leds(void) { - current_profile = OFF; - rgb_matrix_enable(); - rgb_matrix_mode(RGB_MATRIX_SOLID_COLOR); - rgb_matrix_sethsv(0x6a, 0x33, 0xff); -} - -void suspend_wakeup_init_user(void) { - current_profile = OFF; -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case RGB_RST: - if (record->event.pressed) { - reset_leds(); - } - return false; - break; - case RGB_PCY: - if (record->event.pressed) { - // Cycle through RGB profiles - current_profile = current_profile == OFF ? 0 : current_profile + 1; - } - return false; - break; - case RGB_000: - if (record->event.pressed) { - rgb_matrix_sethsv(0, 0, 0); - } - return false; - break; - case EACUTE: - if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P2) SS_TAP(X_P0) SS_TAP(X_P1) SS_UP(X_LALT)); - } - return false; - break; - case CCED: - if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P1) SS_TAP(X_P9) SS_TAP(X_P9) SS_UP(X_LALT)); - } - return false; - break; - case AGRAVE: - if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P0) SS_TAP(X_P1) SS_TAP(X_P9) SS_TAP(X_P2) SS_UP(X_LALT)); - } - return false; - break; - case FRQLT: - if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P7) SS_TAP(X_P4) SS_UP(X_LALT)); - } - return false; - break; - case FRQGT: - if (record->event.pressed) { - SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P7) SS_TAP(X_P5) SS_UP(X_LALT)); - } - return false; - break; - } - return true; -}; - -bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { - led_t led_state = host_keyboard_led_state(); - - if (led_state.caps_lock) { - // Tab key = 27 - RGB_MATRIX_INDICATOR_SET_COLOR(27, 0xff, 0x00, 0x00); - } - - if (led_state.num_lock && (layer_state_is(_FNC) || layer_state_is(_NUM))) { - // ESC key = 13 - RGB_MATRIX_INDICATOR_SET_COLOR(13, 0xff, 0x55, 0x55); - } - - if (layer_state_is(_NUM)) { - // Num pad - for (int i=0; i<3; i++) { - RGB_MATRIX_INDICATOR_SET_COLOR(3 + i, 0xff, 0x55, 0x55); - RGB_MATRIX_INDICATOR_SET_COLOR(17 + i, 0xff, 0x55, 0x55); - RGB_MATRIX_INDICATOR_SET_COLOR(30 + i, 0xff, 0x55, 0x55); - } - RGB_MATRIX_INDICATOR_SET_COLOR(43, 0xff, 0x00, 0x00); - return; - } - - if (layer_state_is(_RGB)) { - // AMD record and replay - RGB_MATRIX_INDICATOR_SET_COLOR(54, 0x00, 0xff, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(55, 0xff, 0x00, 0x00); - } - - if (current_profile == CSGO) { - // Moves - RGB_MATRIX_INDICATOR_SET_COLOR(25, 0xff, 0x00, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(39, 0xff, 0x00, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(38, 0xff, 0x00, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(37, 0xff, 0x00, 0x00); - - // Grenades - RGB_MATRIX_INDICATOR_SET_COLOR(4, 0x00, 0xff, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(3, 0xff, 0x66, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(2, 0x66, 0x66, 0x22); - RGB_MATRIX_INDICATOR_SET_COLOR(1, 0xff, 0xff, 0xff); - - // Primary - RGB_MATRIX_INDICATOR_SET_COLOR(18, 0xff, 0x00, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(17, 0x99, 0x33, 0x00); - RGB_MATRIX_INDICATOR_SET_COLOR(16, 0x00, 0xff, 0x00); - - // Secondary - RGB_MATRIX_INDICATOR_SET_COLOR(32, 0x66, 0x66, 0x22); - RGB_MATRIX_INDICATOR_SET_COLOR(31, 0x00, 0x00, 0xff); - - // Equipment - RGB_MATRIX_INDICATOR_SET_COLOR(30, 0xff, 0x00, 0xff); - RGB_MATRIX_INDICATOR_SET_COLOR(29, 0x00, 0x00, 0xff); - RGB_MATRIX_INDICATOR_SET_COLOR(28, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(0, 0x33, 0x66, 0x99); - } else if (current_profile == TEXT) { - // Letters - for (int i=0; i<7; i++) { - RGB_MATRIX_INDICATOR_SET_COLOR(17 + i, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(31 + i, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(46 + i, 0x33, 0x66, 0x99); - } - RGB_MATRIX_INDICATOR_SET_COLOR(38, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(39, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(24, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(25, 0x33, 0x66, 0x99); - RGB_MATRIX_INDICATOR_SET_COLOR(26, 0x33, 0x66, 0x99); - } - return false; -} diff --git a/keyboards/dztech/dz60rgb/keymaps/piv3rt/rules.mk b/keyboards/dztech/dz60rgb/keymaps/piv3rt/rules.mk deleted file mode 100644 index 23a7632433..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/piv3rt/rules.mk +++ /dev/null @@ -1 +0,0 @@ -NKRO_ENABLE = yes diff --git a/keyboards/dztech/dz60rgb/keymaps/xunz/config.h b/keyboards/dztech/dz60rgb/keymaps/xunz/config.h deleted file mode 100644 index d981df82ed..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/xunz/config.h +++ /dev/null @@ -1,52 +0,0 @@ -#pragma once - -#define FORCE_NKRO - -#undef DISABLE_RGB_MATRIX_SPLASH -#undef DISABLE_RGB_MATRIX_MULTISPLASH -#undef DISABLE_RGB_MATRIX_SOLID_MULTISPLASH - -#define RGB_MATRIX_FRAMEBUFFER_EFFECTS - -// #undef ENABLE_RGB_MATRIX_SOLID_COLOR -// #undef ENABLE_RGB_MATRIX_ALPHAS_MODS -// #undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -// #undef ENABLE_RGB_MATRIX_BREATHING -// #undef ENABLE_RGB_MATRIX_BAND_SAT -// #undef ENABLE_RGB_MATRIX_BAND_VAL -// #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -// #undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -// #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -// #undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -// #undef ENABLE_RGB_MATRIX_CYCLE_ALL -// #undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -// #undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -// #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN -// #undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -// #undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -// #undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -// #undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL -// #undef ENABLE_RGB_MATRIX_DUAL_BEACON -// #undef ENABLE_RGB_MATRIX_RAINBOW_BEACON -// #undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -// #undef ENABLE_RGB_MATRIX_RAINDROPS -// #undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -// #undef ENABLE_RGB_MATRIX_TYPING_HEATMAP -// #undef ENABLE_RGB_MATRIX_DIGITAL_RAIN -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -// #undef ENABLE_RGB_MATRIX_SPLASH -// #undef ENABLE_RGB_MATRIX_MULTISPLASH -// #undef ENABLE_RGB_MATRIX_SOLID_SPLASH -// #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH - -// #define RGB_MATRIX_KEYRELEASES - -#define NO_ACTION_ONESHOT -#define QUICK_TAP_TERM 0 diff --git a/keyboards/dztech/dz60rgb/keymaps/xunz/keymap.c b/keyboards/dztech/dz60rgb/keymaps/xunz/keymap.c deleted file mode 100644 index 905ec1b531..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/xunz/keymap.c +++ /dev/null @@ -1,22 +0,0 @@ -#include QMK_KEYBOARD_H -#define _LAYER0 0 -#define _LAYER1 1 -#define _LAYER2 2 - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_LAYER0] = LAYOUT(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_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_BSLS, - 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_ENT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RSFT_T(KC_SLSH), KC_UP, LT(2,KC_DEL), - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT), - [_LAYER1] = LAYOUT(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_DEL, - KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_INS, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, EE_CLR, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_END, KC_PGDN, KC_VOLU, KC_MUTE, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_CALC, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT), - [_LAYER2] = LAYOUT(KC_TRNS, KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9, KC_P0, KC_PMNS, KC_PPLS, KC_DEL, - KC_TRNS, RGB_TOG, KC_TRNS, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, KC_TRNS, KC_PSLS, KC_PAST, QK_BOOT, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPI, RGB_SPD, KC_TRNS, KC_TRNS, EE_CLR, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PDOT, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) -}; diff --git a/keyboards/dztech/dz60rgb/keymaps/xunz/readme.md b/keyboards/dztech/dz60rgb/keymaps/xunz/readme.md deleted file mode 100644 index b18d497adb..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/xunz/readme.md +++ /dev/null @@ -1,48 +0,0 @@ -### XuNz Layout - -3 Layers - -All rgb enable - -NKRO enable - -### 0 Qwerty -,-----------------------------------------------------------------------------------------. -| ` ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc | -|-----------------------------------------------------------------------------------------+ -| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | -|-----------------------------------------------------------------------------------------+ -| Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter | -|-----------------------------------------------------------------------------------------+ -| Shift | Z | X | C | V | B | N | M | , | . | RSh | U | DEL | -|-----------------------------------------------------------------------------------------+ -| Ctrl | Cmd | Alt | Space | RAlt | FN | L | D | R | -`-----------------------------------------------------------------------------------------' - -### 1 FN Layer -FN + Key -,-----------------------------------------------------------------------------------------. -| Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | reset | -|-----------------------------------------------------------------------------------------+ -| | | up | | | | | |insert| | pscr | slck | paus |reset| -|-----------------------------------------------------------------------------------------+ -| |left| down |right| | | | | | | home | pgup | EEP RST | -|-----------------------------------------------------------------------------------------+ -| | | | | | | | | | end | pgdn | vol+ | mute | -|-----------------------------------------------------------------------------------------+ -| | | | | calc | | prev | vol- | next | -`-----------------------------------------------------------------------------------------' - -### 2 Del Layer -Del + Key -,-----------------------------------------------------------------------------------------. -| Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | - | + | del | -|-----------------------------------------------------------------------------------------+ -| |RBB T| | Hue+| Hue-| Sat+| Sat-| Val+| Val-| | | / | * | reset| -|-----------------------------------------------------------------------------------------+ -| | | | | | | | SPI | SPD | | | | EEP RST | -|-----------------------------------------------------------------------------------------+ -| | | | | | | | | | dot | | | | -|-----------------------------------------------------------------------------------------+ -| | | | | | | | | | -`-----------------------------------------------------------------------------------------'
\ No newline at end of file diff --git a/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk b/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk deleted file mode 100644 index d12c8dc44e..0000000000 --- a/keyboards/dztech/dz60rgb/keymaps/xunz/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -NKRO_ENABLE = yes # USB Nkey Rollover -# VELOCIKEY_ENABLE = yes - -LTO_ENABLE = yes diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h deleted file mode 100644 index 59fc46d260..0000000000 --- a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h +++ /dev/null @@ -1,27 +0,0 @@ - /* Copyright 2021 Jesper Nellemann Jakobsen - * - * 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/>. - */ - -#pragma once - -#define MOUSEKEY_DELAY 0 // default is 300ms -#define MOUSEKEY_INTERVAL 16 // ~ 60Hz (1/60) -#define MOUSEKEY_MAX_SPEED 8 // default is 10; the lower interval, the lower this ought to be -#define MOUSEKEY_TIME_TO_MAX 15 // default is 20 - -#define MOUSEKEY_WHEEL_DELAY 0 // default is 300ms -#define MOUSEKEY_WHEEL_INTERVAL 50 // default is 100ms -#define MOUSEKEY_WHEEL_MAX_SPEED 10 // default is 8 -#define MOUSEKEY_WHEEL_TIME_TO_MAX 30 // default is 40 diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c deleted file mode 100644 index 6ed31b62bc..0000000000 --- a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c +++ /dev/null @@ -1,128 +0,0 @@ - /* Copyright 2021 Jesper Nellemann Jakobsen - * - * 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/>. - */ - -#include QMK_KEYBOARD_H - -enum layers { - _BASE, - _ARROWS, - _HDUE, /* Home, pgDown, pgUp, End */ - _MOUSE, - _FN -}; - -/* Custom keys */ - -/* Word movement/deletetion */ -#define WORD_BK A(KC_LEFT) -#define WORD_FW A(KC_RIGHT) -#define D_WORD_BK A(KC_BACKSPACE) -#define D_WORD_FW A(KC_DELETE) -/* Fine volume control */ -#define FVOLU S(A(KC_VOLU)) -#define F_VOLD S(A(KC_VOLD)) -/* Multi-purpose keys */ -#define HYPR_CAPS ALL_T(KC_CAPS) -#define CTL_ESC LCTL_T(KC_ESC) -/* Layer keys */ -#define ARROWS LT(_ARROWS, KC_D) -#define HDUE MO(_HDUE) -#define MOUSP LT(_MOUSE, KC_SPC) -#define FN MO(_FN) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Default layer: - * Space Cadet shifts (parentheses on tap) - * Caps Lock is Control on hold, Esc on tap - * Hyper/Caps Lock on Control keys - * Hold D to activate layer 1 (Arrows) - * Hold Space to activate layer 3 (Mouse keys) - * Hold FN to activate layer 4 (FN layer) - */ - [_BASE] = LAYOUT_60_ansi( - KC_GRV, 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_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_BSLS, - CTL_ESC, KC_A, KC_S, ARROWS, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, - SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC, - HYPR_CAPS, KC_LALT, KC_LGUI, MOUSP, KC_RGUI, KC_RALT, FN, HYPR_CAPS - ), - - /* Layer 1: - * Vim arrows (HJKL) - * Vim-like move across words with W(ord), and B(eginning) - * Media controls (fine volume controls using Option+Shift) - * Backspace/Del on N/M - * Hold F to activate layer 2 (HDUE: Home, Down, Up, End) - */ - [_ARROWS] = LAYOUT_60_ansi( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, WORD_FW, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, F_VOLD, FVOLU, _______, - _______, _______, _______, _______, HDUE, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______, - _______, _______, _______, _______, _______, WORD_BK, KC_BSPC, KC_DEL, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), - - /* Layer 2: - * Home, Page Down, Page Up, End - * Delete word forward/back on W/B - */ - [_HDUE] = LAYOUT_60_ansi( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, D_WORD_FW, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, _______, - _______, _______, _______, _______, _______, D_WORD_BK, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), - - /* Layer 3: - * Mouse keys - * Cursor movement: HJKL - * MB 1, 2, and 3 on F, D, and S, respectively - * Mouse wheel: up (V), down (R) (reversed because of Natural Scrolling) - * Change mouse acceleration on U, I, O (0, 1, 2) - */ - [_MOUSE] = LAYOUT_60_ansi( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, KC_WH_D, _______, _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______, - _______, _______, KC_BTN3, KC_BTN2, KC_BTN1, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______, _______, _______, - _______, _______, _______, _______, KC_WH_U, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), - - /* Layer 4: - * F1-12 - * Del on backspace - * Lots of RGB controls - * QK_BOOT firmware on backslash - * Screen brightness: Z (decrease), X (increase) - */ - [_FN] = LAYOUT_60_ansi( - _______, 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_DEL, - _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, RGB_M_P, RGB_M_B, RGB_M_R, _______, _______, _______, QK_BOOT, - _______, _______, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, RGB_M_SW, RGB_M_SN, RGB_M_K, _______, _______, _______, - _______, KC_BRID, KC_BRIU, _______, _______, _______, _______, RGB_M_X, RGB_M_G, RGB_M_T, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ) - - // TEMPLATE - // LAYOUT_60_ansi( - // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - // _______, _______, _______, _______, _______, _______, _______, _______, - // ), -}; diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md deleted file mode 100644 index 5f65c349dc..0000000000 --- a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# MacOS standard-ish 60% keymap with Vim-like arrows - -This is a MacOS-specific keymap for DZ60 RGB ANSI with a bit of Vim arrows and other niceties. - -## Base Layer - -![Graphical representation of the Base Layer](https://i.imgur.com/L66C3ya.png) - -* Space Cadet shifts (parentheses on tap) -* Caps Lock is Control on hold, Esc on tap -* Hyper/Caps Lock on Control keys -* Hold D to activate layer 1 (Arrows) -* Hold Space to activate layer 3 (Mouse keys) -* Hold FN to activate layer 4 (FN layer) - -## Layer 1: "Arrows" - -![Graphical representation of Layer 1](https://i.imgur.com/VirYuoO.png) - -* Vim arrows (HJKL) -* Vim-like move across words with W(ord), and B(eginning) -* Media controls (fine volume controls using Option+Shift) -* Backspace/Del on N/M -* Hold F to activate layer 2 (HDUE: Home, Down, Up, End) - -## Layer 2: "HDUE" - -![Graphical representation of Layer 2](https://i.imgur.com/xWMqCmD.png) - -* **H**ome, Page **D**own, Page **U**p, **E**nd -* Delete word forward/back on W/B - -## Layer 3: "Mouse keys" - -![Graphical representation of Layer 3](https://i.imgur.com/x5vmAyK.png) - -* Mouse keys -* Cursor movement: HJKL -* MB 1, 2, and 3 on F, D, and S, respectively -* Mouse wheel: up (V), down (R) (reversed because of Natural Scrolling) -* Change mouse acceleration on U, I, O (0, 1, 2) - -## Layer 4: "The FN layer" - -![Graphical representation of Layer 4](https://i.imgur.com/6favpke.png) - -* F1-12 -* Del on backspace -* Lots of RGB controls -* RESET firmware on backslash -* Screen brightness: Z (decrease), X (increase) diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/kuru/keymap.c b/keyboards/dztech/dz60rgb_ansi/keymaps/kuru/keymap.c deleted file mode 100644 index e5f5083ee5..0000000000 --- a/keyboards/dztech/dz60rgb_ansi/keymaps/kuru/keymap.c +++ /dev/null @@ -1,101 +0,0 @@ -/* Copyright 2022 Murali Suresh - * - * 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/>. - */ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_60_ansi( - KC_GRAVE, 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_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(2,KC_BSLS), - CTL_T(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_ENT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(1), KC_LEFT, KC_DOWN, KC_RGHT - ), - [1] = LAYOUT_60_ansi( - KC_ESC, 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_DEL, - _______, _______, KC_UP, _______, _______, _______, KC_CALC, _______, KC_INS, _______, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, _______, - KC_MPRV, KC_VOLD, KC_VOLU, KC_MUTE, _______, _______, NK_TOGG, _______, _______, KC_END, KC_PGDN, KC_MNXT, - _______, _______, _______, TO(3) , _______, _______, _______, _______ - ), - [2] = LAYOUT_60_ansi( - _______, 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_DEL, - _______, RGB_TOG, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, _______, _______, _______, QK_BOOT, - _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI, RGB_SPD, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), - [3] = LAYOUT_60_ansi( - KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, LT(4,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_BSLS, - CTL_T(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_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(4) , KC_LGUI, KC_RALT, KC_SPC, KC_RALT, KC_RGUI, MO(2), KC_RCTL - ), - [4] = LAYOUT_60_ansi( - KC_ESC, 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_DEL, - _______, _______, _______, KC_END, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - _______, KC_HOME, _______, _______, KC_PGDN, _______, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______, _______, _______, - _______, _______, _______, _______, _______, KC_PGUP, NK_TOGG, _______, _______, _______, _______, _______, - _______, _______, _______, TO(0) , _______, _______, _______, _______ - ), -}; - -void highlight_layer3(void){ - // F9-F12 - rgb_matrix_set_color(4, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(3, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(2, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(1, 0xFF, 0xFF, 0xFF); - // F1-F4 - rgb_matrix_set_color(9, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(10, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(11, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(12, 0xFF, 0xFF, 0xFF); - // Reset - rgb_matrix_set_color(14, 0x99, 0x99, 0xFF); - // Pause + Slck + PrScr - rgb_matrix_set_color(15, 0xFF, 0x99, 0x00); - rgb_matrix_set_color(16, 0xFF, 0x99, 0x00); - rgb_matrix_set_color(17, 0xFF, 0x99, 0x00); - // Pgup, Home - rgb_matrix_set_color(39, 0x00, 0x99, 0x00); - rgb_matrix_set_color(24, 0x00, 0x99, 0x00); - // hjkl - rgb_matrix_set_color(31, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(32, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(33, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(34, 0x00, 0x00, 0xFF); - // PgDwn, End - rgb_matrix_set_color(36, 0x00, 0x99, 0x00); - rgb_matrix_set_color(46, 0x00, 0x99, 0x00); -} - -bool rgb_matrix_indicators_user(void) { - led_t led_state = host_keyboard_led_state(); - if (!g_suspend_state) { - switch (get_highest_layer(layer_state)) { - case 3: - highlight_layer3(); break; - default: - break; - } - } - if (led_state.caps_lock) { - rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF); - } - return false; -} diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c b/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c deleted file mode 100644 index ff829f53fa..0000000000 --- a/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/keymap.c +++ /dev/null @@ -1,168 +0,0 @@ -/* Copyright 2022 Murali Suresh - * - * 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/>. - */ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Qwerty - * ,------------------------------------------------------------------------------------------. - * | ` ~ | 1! | 2@ | 3# | 4$ | 5% | 6^ | 7& | 8* | 9( | 0) | - | = | Bkspc | - * |------------------------------------------------------------------------------------------+ - * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | - * |------------------------------------------------------------------------------------------+ - * | Ctl_T(C) | A | S | D | F | G | H | J | K | L | ; | ' | Enter | - * |------------------------------------------------------------------------------------------+ - * | Shift | Z | X | C | V | B | N | M | , | . | / | RShift | - * |------------------------------------------------------------------------------------------+ - * | MO1 | Cmd | Alt | Space | RAlt | Cmd | MO2 | RCTL | - * `------------------------------------------------------------------------------------------' - */ - [0] = LAYOUT_60_ansi( - KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, LT(1,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_BSLS, - CTL_T(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_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_LGUI, KC_RALT, KC_SPC, KC_RALT, KC_RGUI, MO(2), KC_RCTL - ), - /* Layer1 - * ,------------------------------------------------------------------------------------------. - * | ` ~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Del | - * |------------------------------------------------------------------------------------------+ - * | | | | | | | Y | | I | | PScr| Slck| Paus| Reset | - * |------------------------------------------------------------------------------------------+ - * | | | | | | | Left| Down| Up | Rght| Home| Pgup| | - * |------------------------------------------------------------------------------------------+ - * | Shift | V- | V+ | C | | | | | | End | PgDn| | - * |------------------------------------------------------------------------------------------+ - * | | | | TO3 | | | | | - * `------------------------------------------------------------------------------------------' - */ - [1] = LAYOUT_60_ansi( - KC_ESC, 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_DEL, - _______, _______, _______, KC_END, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, QK_BOOT, - _______, KC_HOME, _______, _______, KC_PGDN, _______, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______, _______, _______, - _______, _______, _______, _______, _______, KC_PGUP, NK_TOGG, _______, _______, _______, _______, _______, - _______, _______, _______, TO(3) , _______, _______, _______, _______ - ), - [2] = LAYOUT_60_ansi( - _______, 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_BSPC, - _______, RGB_TOG, _______, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, RGB_MOD, _______, _______, _______, QK_BOOT, - _______, _______, _______, _______, _______, _______, _______, _______, RGB_SPI, RGB_SPD, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______ - ), - [3] = LAYOUT_60_ansi( - _______, 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_BSPC, - _______, _______, KC_PSCR, KC_SCRL, KC_PAUS, _______, _______, KC_P7, KC_P8, KC_P9, _______, _______, _______, TO(0), - _______, _______, KC_INS, KC_HOME, KC_PGUP, _______, _______, KC_P4, KC_P5, KC_P6, _______, _______, _______, - _______, _______, KC_DEL, KC_END, KC_PGDN, _______, _______, KC_P1, KC_P2, KC_P3, _______, KC_UP, - _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT - ), -}; - -void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { - for (int i = 0; i < RGB_MATRIX_LED_COUNT; i++) { - if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { - rgb_matrix_set_color( i, red, green, blue ); - } - } -} - -void highlight_layer1(void){ - // F9-F12 - rgb_matrix_set_color(4, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(3, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(2, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(1, 0xFF, 0xFF, 0xFF); - // F1-F4 - rgb_matrix_set_color(9, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(10, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(11, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(12, 0xFF, 0xFF, 0xFF); - // Reset - rgb_matrix_set_color(14, 0x99, 0x99, 0xFF); - // Pause + Slck + PrScr - rgb_matrix_set_color(15, 0xFF, 0x99, 0x00); - rgb_matrix_set_color(16, 0xFF, 0x99, 0x00); - rgb_matrix_set_color(17, 0xFF, 0x99, 0x00); - // Pgup, Home - rgb_matrix_set_color(39, 0x00, 0x99, 0x00); - rgb_matrix_set_color(24, 0x00, 0x99, 0x00); - // hjkl - rgb_matrix_set_color(31, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(32, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(33, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(34, 0x00, 0x00, 0xFF); - // PgDwn, End - rgb_matrix_set_color(36, 0x00, 0x99, 0x00); - rgb_matrix_set_color(46, 0x00, 0x99, 0x00); -} - -void highlight_layer2(void){ - // Mode - rgb_matrix_set_color(18, 0xFF, 0xFF, 0xFF); - // Value - rgb_matrix_set_color(19, 0x4C, 0x00, 0x99); - rgb_matrix_set_color(20, 0x4C, 0x00, 0x99); - // Sat - rgb_matrix_set_color(21, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(22, 0xFF, 0xFF, 0xFF); - // Hue - rgb_matrix_set_color(23, 0x99, 0x99, 0x00); - rgb_matrix_set_color(24, 0x99, 0x99, 0x00); - // Toggle - rgb_matrix_set_color(26, 0xFF, 0xFF, 0xFF); - // Speed - rgb_matrix_set_color(31, 0xFF, 0x99, 0x00); - rgb_matrix_set_color(32, 0xFF, 0x99, 0x00); -} - -void highlight_layer3(void) { - int ins_key_block[9] = {25, 24, 23, 38, 37, 36, 50, 49, 48}; - for(int i = 0; i < 9; i++) { - rgb_matrix_set_color(ins_key_block[i], 0x00, 0x99, 0x00); - } - int num_key_block[9] = {20, 19, 18, 33, 32, 31, 45, 44, 43}; - for(int i = 0; i < 9; i++) { - rgb_matrix_set_color(num_key_block[i], 0x00, 0x09, 0x09); - } - int easy_arrow_keys[4] = {41, 55, 54, 53}; - for(int i = 0; i < 4; i++) { - rgb_matrix_set_color(easy_arrow_keys[i], 0x09, 0x00, 0x09); - } -} - -bool rgb_matrix_indicators_user(void) { - led_t led_state = host_keyboard_led_state(); - if (!g_suspend_state) { - switch (get_highest_layer(layer_state)) { - case 1: - highlight_layer1(); break; - case 2: - highlight_layer2(); break; - case 3: - /* rgb_matrix_layer_helper(0x03, 0x03, 0x00); */ - highlight_layer3(); - break; - default: - break; - } - } - if (led_state.caps_lock) { - rgb_matrix_set_color(40, 0xFF, 0xFF, 0xFF); - } - return false; -} diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/readme.md b/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/readme.md deleted file mode 100644 index b9dbdfeb90..0000000000 --- a/keyboards/dztech/dz60rgb_ansi/keymaps/muralisc/readme.md +++ /dev/null @@ -1,26 +0,0 @@ -### ansi vim - -Keymap for dz60rgb terminal users - -### Philosophy - -Touch typing largely relies on muscle memory and hence -maintaining a uniform position of keys across devices helps a lot. - -The below keymap attempts to maintain a uniform keymap across Linux and Mac. - -Avoiding the use of `QK_GESC` as the intention is to use the same layer for mac and linux. -`QK_GESC` causes `` CMD+` `` to be send which has a default mapping - -Layer: 1 - -Using `A` for `Home` -Using `E` for `End` -Using `F` for `PgDN` -Using `B` for `PgUP` - -Layer 3: - -Dedicated Num keys block and `Ins, Home, PgUp` block. - -Dedicated Layer for arrow keys and Num keys and `Ins`, `Home` and `PgUp`. diff --git a/keyboards/dztech/dz65rgb/keymaps/adi/keymap.c b/keyboards/dztech/dz65rgb/keymaps/adi/keymap.c deleted file mode 100644 index 914d1cc756..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/adi/keymap.c +++ /dev/null @@ -1,19 +0,0 @@ -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_65_ansi( - 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_BSPC, 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_BSLS, KC_DEL, - LCTL_T(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_ENT, KC_PGUP, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, - KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [1] = LAYOUT_65_ansi( - QK_GESC, 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_DEL, KC_HOME, - KC_TRNS, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, QK_BOOT, KC_PGUP, - LCTL_T(KC_CAPS), RGB_SPD, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, EE_CLR, KC_PGDN, - KC_LSFT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PSCR, KC_SCRL, KC_PAUS, KC_VOLU, KC_MUTE, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT - ) - -}; diff --git a/keyboards/dztech/dz65rgb/keymaps/adi/readme.md b/keyboards/dztech/dz65rgb/keymaps/adi/readme.md deleted file mode 100644 index fd3a6744ca..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/adi/readme.md +++ /dev/null @@ -1,13 +0,0 @@ -# Adi's DZ65RGB Layout -![Layout Visual](https://i.imgur.com/xuFkvVI.png) - -This layout modifies the extra row on the right and makes some of the key bindings easier to reach on Layer 1. -## Step by Step -1. Build your Firmware: run build command in directory -```make dztech/dz65rgb/v1:adi``` -2. Flash your Firmware: - * Open QMK Toolbox Application - * Open firmware file: dztech_dz65rgb_v1_adi.bin - * Unplug keyboard USB-C, and hold the ESC key while plugging it back in - * Check that QMK Toolbox displays: *** STM32 device connected. - * Hit the flash button! diff --git a/keyboards/dztech/dz65rgb/keymaps/catrielmuller/config.h b/keyboards/dztech/dz65rgb/keymaps/catrielmuller/config.h deleted file mode 100644 index 76feedceb0..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/catrielmuller/config.h +++ /dev/null @@ -1,3 +0,0 @@ -#define LEADER_TIMEOUT 300 -#define FORCE_NKRO -#define UNICODE_SELECTED_MODES UNICODE_MODE_LINUX, UNICODE_MODE_MACOS, UNICODE_MODE_WINDOWS, UNICODE_MODE_WINCOMPOSE
\ No newline at end of file diff --git a/keyboards/dztech/dz65rgb/keymaps/catrielmuller/keymap.c b/keyboards/dztech/dz65rgb/keymaps/catrielmuller/keymap.c deleted file mode 100644 index 7b4e9ab728..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/catrielmuller/keymap.c +++ /dev/null @@ -1,243 +0,0 @@ -#include QMK_KEYBOARD_H - -// Config -const uint8_t MAIN_COLOR[3] = {0xFF, 0x00, 0x00}; - -// layers, ordering is important! -enum layers { - _MAIN, - _INDEX, - _FN, - _MULTIMEDIA, - _EMOJI, - _EXT1, - _EXT2, - _EXT3, - _EXT4, - _EXT5, - _EXT6, - _RGB, - _CONFIG, -} - -const layers_leds_map[] = { - [_MAIN] = 0, - [_INDEX] = 1, - [_FN] = 2, - [_MULTIMEDIA] = 3, - [_EMOJI] = 4, - [_EXT1] = 5, - [_EXT2] = 6, - [_EXT3] = 7, - [_EXT4] = 8, - [_EXT5] = 9, - [_EXT6] = 10, - [_RGB] = 11, - [_CONFIG] = 12, -}; - -enum unicode_names { - UC_GRINNING_FACE, // 😃 - UC_BEAMING_FACE, // 😁 - UC_GRINNING_FACE_WITH_SWEAT, // 😅 - UC_ROLLING_LAUGHING, // 🤣 - UC_FACE_TEARS_JOY, // 😂 - UC_WINKING_FACE, // 😉 - UC_SMILING_FACE_HALO, // 😇 - UC_SMILING_FACE_HEARTS, // 🥰 - UC_SMILING_FACE_HEART_EYES, // 😍 - UC_FACE_BLOWING_KISS, // 😘 - UC_FACE_SAVORING_FOOD, // 😋 - UC_ZANY_FACE, // 🤪 - UC_HUGGING_FACE, // 🤗 - UC_SHUSHING_FACE, // 🤫 - UC_THINKING_FACE, // 🤔 - UC_FACE_RAISED_EYEBROW, // 🤨 - UC_NEUTRAL_FACE, // 😐 - UC_SMIRKING_FACE, // 😏 - UC_FACE_ROLLING_EYES, // 🙄 - UC_PENSIVE_FACE, // 😔 - UC_FACE_VOMITING, // 🤮 - UC_WOOZY_FACE, // 🥴 - UC_PLEADING_FACE, // 🥺 - UC_LOUDLY_CRYING_FACE, // 😭 - UC_DISAPPOINTED_FACE, // 😞 - UC_FACE_SYMBOLS_MOUTH, // 🤬 - UC_SMILING_FACE_HORNS, // 😈 - UC_SKULL, // 💀 - UC_PILE_POO, // 💩 - UC_GHOST, // 👻 - UC_ALIEN_MONSTER, // 👾 - UC_RED_HEART, // ❤ - UC_BOMB, // 💣 - UC_WAVING_HAND, // 👋 - UC_OK_HAND, // 👌 - UC_CLAPPING_HANDS, // 👏 - UC_EYES, // 👀 - UC_MAN_FACEPALMING, // 🤦 - UC_TURTLE, // 🐢 - UC_SNAKE, // 🐍 - UC_SPOUTING_WHALE, // 🐳 - UC_DRAGON, // 🐉 - UC_TREX, // 🦖 - UC_ARGENTINA_A, // 🇦 - UC_ARGENTINA_R, // 🇷 - UC_THUMBSDOWN, // 👍 - UC_THUMBSUP, // 👎 -}; - -const uint32_t unicode_map[] PROGMEM = { - [UC_GRINNING_FACE] = 0x1F603, - [UC_BEAMING_FACE] = 0x1F601, - [UC_GRINNING_FACE_WITH_SWEAT] = 0x1F605, - [UC_ROLLING_LAUGHING] = 0x1F923, - [UC_FACE_TEARS_JOY] = 0x1F602, - [UC_WINKING_FACE] = 0x1F609, - [UC_SMILING_FACE_HALO] = 0x1F607, - [UC_SMILING_FACE_HEARTS] = 0x1F970, - [UC_SMILING_FACE_HEART_EYES] = 0x1F60D, - [UC_FACE_BLOWING_KISS] = 0x1F618, - [UC_FACE_SAVORING_FOOD] = 0x1F60B, - [UC_ZANY_FACE] = 0x1F92A, - [UC_HUGGING_FACE] = 0x1F917, - [UC_SHUSHING_FACE] = 0x1F92B, - [UC_THINKING_FACE] = 0x1F914, - [UC_FACE_RAISED_EYEBROW] = 0x1F928, - [UC_NEUTRAL_FACE] = 0x1F610, - [UC_SMIRKING_FACE] = 0x1F60F, - [UC_FACE_ROLLING_EYES] = 0x1F644, - [UC_PENSIVE_FACE] = 0x1F614, - [UC_FACE_VOMITING] = 0x1F92E, - [UC_WOOZY_FACE] = 0x1F974, - [UC_PLEADING_FACE] = 0x1F97A, - [UC_LOUDLY_CRYING_FACE] = 0x1F62D, - [UC_DISAPPOINTED_FACE] = 0x1F61E, - [UC_FACE_SYMBOLS_MOUTH] = 0x1F92C, - [UC_SMILING_FACE_HORNS] = 0x1F608, - [UC_SKULL] = 0x1F480, - [UC_PILE_POO] = 0x1F4A9, - [UC_GHOST] = 0x1F47B, - [UC_ALIEN_MONSTER] = 0x1F47E, - [UC_RED_HEART] = 0x2764, - [UC_BOMB] = 0x1F4A3, - [UC_WAVING_HAND] = 0x1F44B, - [UC_OK_HAND] = 0x1F44C, - [UC_CLAPPING_HANDS] = 0x1F44F, - [UC_EYES] = 0x1F440, - [UC_MAN_FACEPALMING] = 0x1F926, - [UC_TURTLE] = 0x1F422, - [UC_SNAKE] = 0x1F40D, - [UC_SPOUTING_WHALE] = 0x1F433, - [UC_DRAGON] = 0x1F409, - [UC_TREX] = 0x1F996, - [UC_ARGENTINA_A] = 0x1F1E6, - [UC_ARGENTINA_R] = 0x1F1F7, - [UC_THUMBSDOWN] = 0x1F44E, - [UC_THUMBSUP] = 0x1F44D, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_MAIN] = LAYOUT_65_ansi( - 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_BSPC, KC_HOME, - 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_BSLS, KC_END, - 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_ENT, KC_PGUP, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_APP), KC_UP, KC_PGDN, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, QK_LEAD, TO(_INDEX), MO(_FN), KC_LEFT, KC_DOWN, KC_RGHT - ), - [_INDEX] = LAYOUT_65_ansi( - TO(_MAIN), TO(_INDEX), TO(_FN), TO(_MULTIMEDIA), TO(_EMOJI), TO(_EXT1), TO(_EXT2), TO(_EXT3), TO(_EXT4), TO(_EXT5), TO(_EXT6), TO(_RGB), TO(_CONFIG), TO(_MAIN), KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), TO(_FN), KC_NO, KC_NO, KC_NO - ), - [_FN] = LAYOUT_65_ansi( - 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_DEL, KC_PSCR, - KC_TAB, KC_F13, KC_F14, KC_F15, KC_F16, KC_F17, KC_F18, KC_F19, KC_F20, KC_F21, KC_F22, KC_F23, KC_F24, KC_INS, KC_SCRL, - KC_APP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PAUS, - KC_LSFT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BTN1, KC_MS_U, KC_BTN2, - KC_LCTL, KC_LGUI, KC_LALT, KC_NO, KC_NO, TO(_INDEX), KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R - ), - [_MULTIMEDIA] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MPLY, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MSTP, KC_VOLU, KC_MUTE, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_MPRV, KC_VOLD, KC_MNXT - ), - [_EMOJI] = LAYOUT_65_ansi( - TO(_MAIN), UM(UC_GRINNING_FACE), UM(UC_BEAMING_FACE), UM(UC_GRINNING_FACE_WITH_SWEAT), UM(UC_ROLLING_LAUGHING), UM(UC_FACE_TEARS_JOY), UM(UC_WINKING_FACE), UM(UC_SMILING_FACE_HALO), UM(UC_SMILING_FACE_HEARTS), UM(UC_SMILING_FACE_HEART_EYES), UM(UC_FACE_BLOWING_KISS), UM(UC_FACE_SAVORING_FOOD), UM(UC_ZANY_FACE), KC_BSPC, KC_HOME, - KC_TAB, UM(UC_HUGGING_FACE), UM(UC_SHUSHING_FACE), UM(UC_THINKING_FACE), UM(UC_FACE_RAISED_EYEBROW), UM(UC_NEUTRAL_FACE), UM(UC_SMIRKING_FACE), UM(UC_FACE_ROLLING_EYES), UM(UC_PENSIVE_FACE), UM(UC_FACE_VOMITING), UM(UC_WOOZY_FACE), UM(UC_PLEADING_FACE), UM(UC_LOUDLY_CRYING_FACE), UM(UC_THUMBSUP), KC_END, - KC_APP, UM(UC_DISAPPOINTED_FACE), UM(UC_FACE_SYMBOLS_MOUTH), UM(UC_SMILING_FACE_HORNS), UM(UC_SKULL), UM(UC_PILE_POO), UM(UC_GHOST), UM(UC_ALIEN_MONSTER), UM(UC_RED_HEART), UM(UC_BOMB), UM(UC_WAVING_HAND), UM(UC_OK_HAND), KC_ENT, KC_PGUP, - KC_LSFT, UM(UC_CLAPPING_HANDS), UM(UC_EYES), UM(UC_MAN_FACEPALMING), UM(UC_TURTLE), UM(UC_SNAKE), UM(UC_SPOUTING_WHALE), UM(UC_DRAGON), UM(UC_TREX), UM(UC_ARGENTINA_A), UM(UC_ARGENTINA_R), UM(UC_THUMBSDOWN), KC_UP, KC_PGDN, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, QK_LEAD, TO(_INDEX), TO(_MAIN), KC_LEFT, KC_DOWN, KC_RGHT - ), - [_EXT1] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_EXT2] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_EXT3] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_EXT4] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_EXT5] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_EXT6] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_RGB] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, RGB_SPD, RGB_SPI, KC_NO, KC_NO, KC_NO, - KC_NO, RGB_M_P, RGB_M_B, RGB_M_R, RGB_M_SW, RGB_M_SN, RGB_M_K, RGB_M_X, RGB_M_G, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), - [_CONFIG] = LAYOUT_65_ansi( - TO(_MAIN), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_ACL2, - KC_NO, KC_PWR, KC_SLEP, KC_WAKE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, QK_BOOT, DB_TOGG, EE_CLR, KC_NO, KC_ACL1, - KC_NO, UC_PREV, UC_NEXT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_ACL0, - KC_NO, MAGIC_TOGGLE_NKRO, MAGIC_UNHOST_NKRO, MAGIC_HOST_NKRO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, TO(_INDEX), KC_NO, KC_NO, KC_NO, KC_NO - ), -}; - -bool rgb_matrix_indicators_user(void) { - - // CapsLock Light - if (host_keyboard_led_state().caps_lock) { - rgb_matrix_set_color(30, MAIN_COLOR[0], MAIN_COLOR[1], MAIN_COLOR[2]); - } - - // Show Selected Layer - rgb_matrix_set_color(layers_leds_map[get_highest_layer(layer_state)], MAIN_COLOR[0], MAIN_COLOR[1], MAIN_COLOR[2]); - return false; -} diff --git a/keyboards/dztech/dz65rgb/keymaps/catrielmuller/rules.mk b/keyboards/dztech/dz65rgb/keymaps/catrielmuller/rules.mk deleted file mode 100644 index 1bd58cf79c..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/catrielmuller/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -LEADER_ENABLE = yes -UNICODEMAP_ENABLE = yes
\ No newline at end of file diff --git a/keyboards/dztech/dz65rgb/keymaps/chocol8/config.h b/keyboards/dztech/dz65rgb/keymaps/chocol8/config.h deleted file mode 100644 index 1c801d7e3c..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/chocol8/config.h +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#define FORCE_NKRO diff --git a/keyboards/dztech/dz65rgb/keymaps/chocol8/keymap.c b/keyboards/dztech/dz65rgb/keymaps/chocol8/keymap.c deleted file mode 100644 index 735ceef722..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/chocol8/keymap.c +++ /dev/null @@ -1,25 +0,0 @@ -#include QMK_KEYBOARD_H - -enum tofu68_layers { - _QWERTY, - _FNM -}; - -#define FNM MO(_FNM) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_QWERTY] = LAYOUT_65_ansi( - 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_BSPC, 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_BSLS, KC_DEL, - KC_GRV, 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_PGUP, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, - KC_LCTL, KC_LALT, KC_LCMD, KC_SPC, FNM, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_FNM] = LAYOUT_65_ansi( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, KC_MUTE, KC_VOLU, - _______, RGB_TOG, RGB_MOD, RGB_HUI ,RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, QK_BOOT, KC_VOLD, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, AG_TOGG, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_MS_U, _______, - _______, _______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_R - ) -}; diff --git a/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk b/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk deleted file mode 100644 index 1778a5e141..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/chocol8/rules.mk +++ /dev/null @@ -1,5 +0,0 @@ -NKRO_ENABLE = yes # USB Nkey Rollover -VELOCIKEY_ENABLE = yes -# AUTO_SHIFT_ENABLE = yes # Auto Shift - -LTO_ENABLE = yes diff --git a/keyboards/dztech/dz65rgb/keymaps/drootz/config.h b/keyboards/dztech/dz65rgb/keymaps/drootz/config.h deleted file mode 100644 index 51fd5c6871..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/drootz/config.h +++ /dev/null @@ -1,52 +0,0 @@ -#pragma once - -#define LEADER_PER_KEY_TIMING -#define LEADER_TIMEOUT 425 -#define TAP_HOLD_CAPS_DELAY 80 - -#ifdef RGB_MATRIX_ENABLE -/* Reset default from dz65rgb/v2 config.h */ -# undef DISABLE_RGB_MATRIX_SPLASH -# undef DISABLE_RGB_MATRIX_SOLID_SPLASH -# undef RGB_MATRIX_LED_FLUSH_LIMIT -# undef RGB_MATRIX_DEFAULT_MODE -# undef RGB_MATRIX_MAXIMUM_BRIGHTNESS -# define RGB_MATRIX_MAXIMUM_BRIGHTNESS 255 -# define RGB_MATRIX_LED_FLUSH_LIMIT 16 // default: 26 -# define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_TYPING_HEATMAP -# define RGB_MATRIX_FRAMEBUFFER_EFFECTS -# define RGB_MATRIX_DEFAULT_HUE 10 -# define RGB_MATRIX_DEFAULT_SAT 255 -# define RGB_MATRIX_DEFAULT_VAL 200 -# define RGB_MATRIX_DEFAULT_SPD 75 -/* Active RBG Modes */ -/* # undef ENABLE_RGB_MATRIX_TYPING_HEATMAP // How hot is your WPM! */ -/* # undef ENABLE_RGB_MATRIX_SPLASH // Full gradient & value pulse away from a single key hit then fades value out */ -/* # undef ENABLE_RGB_MATRIX_SOLID_SPLASH // Hue & value pulse away from a single key hit then fades value out */ -/* Disabling to optimize firmware size */ -# undef ENABLE_RGB_MATRIX_ALPHAS_MODS // Static dual hue, speed is hue for secondary hue -# undef ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT // Static gradient left to right, speed controls how much gradient changes -# undef ENABLE_RGB_MATRIX_BREATHING // Single hue brightness cycling animation -# undef ENABLE_RGB_MATRIX_BAND_VAL // Single hue band fading brightness scrolling left to right -# undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL // Single hue 3 blade spinning pinwheel fades brightness -# undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL // Single hue spinning spiral fades brightness -# undef ENABLE_RGB_MATRIX_CYCLE_ALL // Full keyboard solid hue cycling through full gradient -# undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT // Full gradient scrolling left to right -# undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN // Full gradient scrolling top to bottom -# undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN // Full gradient scrolling out to in -# undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL // Full dual gradients scrolling out to in -# undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON // Full gradent Chevron shapped scrolling left to right -# undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL // Full gradient spinning pinwheel around center of keyboard -# undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL // Full gradient spinning spiral around center of keyboard -# undef ENABLE_RGB_MATRIX_DUAL_BEACON // Full gradient spinning around center of keyboard -# undef ENABLE_RGB_MATRIX_RAINBOW_BEACON // Full tighter gradient spinning around center of keyboard -# undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS // Full dual gradients spinning two halfs of keyboard -# undef ENABLE_RGB_MATRIX_RAINDROPS // Randomly changes a single key's hue -# undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS // Randomly changes a single key's hue and saturation -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE // Static single hue, pulses keys hit to shifted hue then fades to current hue -#endif /* RBG MATRIX */ - -/* Firmware size Optimizations */ -#define NO_ACTION_MACRO -#define NO_ACTION_FUNCTION -#define NO_ACTION_ONESHOT diff --git a/keyboards/dztech/dz65rgb/keymaps/drootz/keymap.c b/keyboards/dztech/dz65rgb/keymaps/drootz/keymap.c deleted file mode 100644 index 8a7bbd22ec..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/drootz/keymap.c +++ /dev/null @@ -1,747 +0,0 @@ -#include QMK_KEYBOARD_H - -/**************** SOME GLOBALS *********************/ - -bool onMac = false; -bool isLeader = false; -bool isBlinking = false; -bool isRecording = false; -bool isPlaying = false; -const float led_dim_ratio = 0.50; -static uint16_t blink_cycle_timer, - blink_fade_in_timer, - blink_fade_out_timer, - macro_one_play_timer, - macro_two_play_timer, - macro_play_blink_timer = 2000; -static uint8_t fade_in_step_counter, - fade_out_step_counter, - blink_hsv_value; - -/**************** LED BLINK HELPER FUNCTIONS *********************/ - -/* -Function to set color with hsv arguments -- "hue", "sat" and "val" arguments above 255 will get value from rgb matrix config -- "val_ratio" is used to adjust brightness ratio -*/ -void rgb_matrix_set_color_hsv(uint8_t led, uint16_t hue, uint16_t sat, uint16_t val, float val_ratio) { - const uint8_t h = hue <= 255 ? hue : rgb_matrix_config.hsv.h; - const uint8_t s = sat <= 255 ? sat : rgb_matrix_config.hsv.s; - const uint8_t v = val <= 255 ? val * val_ratio : rgb_matrix_config.hsv.v * val_ratio; - HSV hsv_in = {h, s, v}; - RGB rgb_out = hsv_to_rgb(hsv_in); - rgb_matrix_set_color(led, rgb_out.r, rgb_out.g, rgb_out.b); -} - -void reset_blink_cycle(void) { - blink_cycle_timer = timer_read(); - blink_fade_in_timer = timer_read(); - blink_fade_out_timer = timer_read(); - blink_hsv_value = 0; - fade_in_step_counter = 0; - fade_out_step_counter = 0; -} - -void reset_blink_status(void) { - isRecording = false; - isPlaying = false; - isBlinking = false; -} - -void get_this_led_blinking(uint8_t led_index, bool speed, uint8_t hue, uint8_t sat) { - const uint16_t static_on_time = speed ? 200 : 500; - const uint16_t static_off_time = speed ? 200 : 500; - const uint8_t fade_timing = speed ? 100 : 150; - const uint8_t fade_step = speed ? 10 : 15; - const uint8_t fade_value_step_size = rgb_matrix_config.hsv.v / fade_step; - const uint8_t fade_cycle_time_elapsed = fade_timing / fade_step; - if (timer_elapsed(blink_cycle_timer) < static_on_time) { - if (timer_elapsed(blink_fade_in_timer) > fade_cycle_time_elapsed && fade_in_step_counter < fade_step) { - blink_hsv_value = blink_hsv_value + fade_value_step_size; - fade_in_step_counter = fade_in_step_counter + 1; - blink_fade_in_timer = timer_read(); - } - } else { - if (timer_elapsed(blink_fade_out_timer) > fade_cycle_time_elapsed && fade_out_step_counter < fade_step) { - blink_hsv_value = blink_hsv_value - fade_value_step_size; - fade_out_step_counter = fade_out_step_counter + 1; - blink_fade_out_timer = timer_read(); - } - } - - rgb_matrix_set_color_hsv(led_index, hue, sat, blink_hsv_value, 0.75); - - if (timer_elapsed(blink_cycle_timer) > static_on_time + static_off_time) { - reset_blink_cycle(); - } -} - - -/**************** LAYOUT *********************/ - -/* -[LEDS] - 0, 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 - -[KEYS] -ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, BCK, INS -TAB, Q, W, E, R, T, Y, U, I, O, P, [, ], \,PGUP -CPS, A, S, D, F, G, H, J, K, L, COL, QOT, RETURN,PGDN -SFT, Z, X, C, V, B, N, M, COM, DOT, SLS, SHIFT, UP, DEL -CTL, GUI, ALT, SPACEBAR, ALT, FN, CTL, LFT, DWN, RIT -*/ - -enum layers { - _MAIN, - _MAC, - _FN -} - -const layers_leds_map[] = { - [_MAIN] = 45, - [_MAC] = 46, - [_FN] = 63 -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_MAIN] = LAYOUT_65_ansi( - 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_BSPC, KC_INS, - 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_BSLS, KC_PGUP, - QK_LEAD, 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_PGDN, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_DEL, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_MAC] = LAYOUT_65_ansi( - 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, 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, 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, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_LALT, KC_LGUI, KC_TRNS, KC_TRNS, MO(_FN), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS - ), - [_FN] = LAYOUT_65_ansi( - DM_RSTP, 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_NO, - KC_TRNS, KC_MUTE, KC_VOLU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_SAD, RGB_SAI, DM_PLY2, DM_REC2, - KC_TRNS, KC_BRID, KC_VOLD, KC_BRIU, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_HUD, RGB_HUI, DM_PLY1, DM_REC1, - KC_TRNS, TO(_MAIN), TO(_MAC), KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_SPD, RGB_SPI, KC_TRNS, RGB_VAI, KC_NO, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_RMOD, RGB_VAD, RGB_MOD - ), -}; - -//**************** MATRIX SCANS *********************// - -bool rgb_matrix_indicators_user(void) { - - #ifdef RGB_MATRIX_ENABLE - - /*Ensure some leds don't completeley turn off if hsv value setting is below 100 in the rgb matrix config */ - const uint8_t led_constant_val = rgb_matrix_config.hsv.v < 100 ? 100 : rgb_matrix_config.hsv.v; - - /* CapsLock LED indicator */ - if (host_keyboard_led_state().caps_lock) { - rgb_matrix_set_color_hsv(30, 999, 0, led_constant_val, 0.75); // WHITE - } - - /* Current layer LED indicator */ - rgb_matrix_set_color_hsv(layers_leds_map[get_highest_layer(layer_state)], 999, 0, led_constant_val, led_dim_ratio); // WHITE - - /* Leader Key LED under-glow */ - if (isLeader) { - rgb_matrix_set_color_hsv(14, 999, 999, 999, 1); // CONFIG - rgb_matrix_set_color_hsv(30, 999, 999, 999, 1); // CONFIG - } else { - rgb_matrix_set_color_hsv(14, 999, 999, 999, led_dim_ratio); // CONFIG - } - - /* Blinking LED indicator when recording Dynamic Macro */ - if (isRecording && isBlinking) { - get_this_led_blinking(0, false, 0, 255); - } - - /* Blinking LED indicator when playing Dynamic Macro */ - if (isPlaying && isBlinking) { - if (timer_elapsed(macro_one_play_timer) < macro_play_blink_timer || timer_elapsed(macro_two_play_timer) < macro_play_blink_timer) { - get_this_led_blinking(0, true, 85, 255); - } else { - if (isBlinking && isPlaying) { - reset_blink_status(); - reset_blink_cycle(); - } - } - } - - switch (get_highest_layer(layer_state)) { - case _FN: - /* Dynamic Macro LED indicator */ - if (isRecording) { - rgb_matrix_set_color_hsv(0, 0, 999, 999, 1); /* RED macro stop */ - } else { - rgb_matrix_set_color_hsv(43, 0, 999, 999, led_dim_ratio); /* RED macro 1 record */ - rgb_matrix_set_color_hsv(29, 0, 999, 999, led_dim_ratio); /* RED macro 2 record */ - rgb_matrix_set_color_hsv(42, 85, 999, 999, led_dim_ratio); /* GREEN macro 1 play */ - rgb_matrix_set_color_hsv(28, 85, 999, 999, led_dim_ratio); /* GREEN macro 2 play */ - } - /* Layer LED indicators */ - rgb_matrix_set_color_hsv(45, 999, 0, led_constant_val, led_dim_ratio); /* WHITE Layer _MAIN */ - rgb_matrix_set_color_hsv(46, 999, 0, led_constant_val, led_dim_ratio); /* WHITE Layer _MAC */ - break; - } - - #endif /* RGB_MATRIX */ - return false; -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - bool pressed = record->event.pressed; - if (pressed) { - switch (keycode) { - case TO(_MAC): - onMac = true; - break; - case TO(_MAIN): - onMac = false; - break; - } - } - return true; -} - -//**************** LEADER *********************// - -#ifdef LEADER_ENABLE - -/******* FRENCH ACCENT HELPER FUNCTIONS & DECLARATIONS *************/ -/*Most comonly used accents only*/ - -enum french_letter { - _A, - _E, - _I, - _O, - _U -}; - -const uint8_t french_letter_index[5] = { - [_A] = 0, - [_E] = 1, - [_I] = 2, - [_O] = 3, - [_U] = 4 -}; - -enum french_accent { - _CIRCUMFLEX, - _GRAVE, - _ACUTE -}; - -const uint8_t french_accent_index[3] = { - [_CIRCUMFLEX] = 0, - [_GRAVE] = 1, - [_ACUTE] = 2 -}; - -/* -This represent unicode decimal values -Each index will be mapped to numpad keycode to out put the correct sequence -All codes in this array should be of size 3 -All accent codes have the same index position as in the french_accent_index Array -*/ -const uint8_t french_decimal_unicodes[5][3][2] = { /*[Letter][Accent][Case]*/ - { - { - 131, // â - 194 //  - },{ - 133, // à - 192 // À - } - },{ - { - 136, // ê - 202 // Ê - },{ - 138, // è - 200 // È - },{ - 130, // é - 201 // É - } - },{ - { - 140, // î - 206 // Î - } - },{ - { - 147, // ô - 212 // Ô - } - },{ - { - 150, // û - 219 // Û - },{ - 151, // ù - 217 // Ù - } - } -}; - -void break_int_in_array(uint8_t int_code, uint8_t size, uint8_t *array) { - uint8_t i; - i = size; - while (i--) { - array[i] = int_code%10; - int_code /= 10; - } -} - -/* -Function meant to be used in Leader Key macros to output most commonly used french accents -This is designed and work on an English language keyboard setting on both Windows and Mac -=> accept french_letter and french_accent enum's as argument -*/ -void send_french_accent(uint8_t letter, uint8_t accent) { - - bool isCaps; - uint8_t decimal_unicode_in; - uint8_t decimal_unicode_size = 3; - uint8_t decimal_unicode_out[decimal_unicode_size]; - - /*Map to numpad keycodes*/ - const uint16_t numpad_key_map[10] = { - KC_P0, KC_P1, KC_P2, KC_P3, KC_P4, KC_P5, KC_P6, KC_P7, KC_P8, KC_P9 - }; - - /*Map to letter keycodes*/ - const uint16_t french_letter_key_map[5] = { - KC_A, KC_E, KC_I, KC_O, KC_U - }; - - /*Map to mod keys for French Mac shortcuts*/ - const uint16_t osx_mod_key_map[3] = { - KC_I, // _CIRCUMFLEX - KC_GRAVE, // _GRAVE - KC_E // _ACUTE - }; - - /* - Function to tap the correct keycodes in sequence for the - "Windows Alt Code" requested, aka Decimal Unicodes - */ - void tap_win_alt_code(void) { - if (isCaps) { - tap_code(numpad_key_map[0]); // Leading 0 on all upper case "Windows alt codes" - } - for (int i = 0; i < decimal_unicode_size; ++i) { - tap_code(numpad_key_map[decimal_unicode_out[i]]); - } - } - - isCaps = host_keyboard_led_state().caps_lock ? true : false; - - if (onMac) { - if (isCaps) { - SEND_STRING(SS_TAP(X_CAPS_LOCK)); - register_code(KC_LALT); - tap_code(osx_mod_key_map[accent]); - unregister_code(KC_LALT); - register_code(KC_LSFT); - tap_code(french_letter_key_map[letter]); - unregister_code(KC_LSFT); - tap_code(KC_CAPS); - } else { - register_code(KC_LALT); - tap_code(osx_mod_key_map[accent]); - unregister_code(KC_LALT); - tap_code(french_letter_key_map[letter]); - } - } else { - /*get the correct decimal unicode*/ - decimal_unicode_in = isCaps ? french_decimal_unicodes[letter][accent][1] : french_decimal_unicodes[letter][accent][0]; - break_int_in_array(decimal_unicode_in, decimal_unicode_size, decimal_unicode_out); - register_code(KC_LALT); - tap_win_alt_code(); - unregister_code(KC_LALT); - } -} - -/*Couple functions used to output the same macro on two different sequences*/ - -/* (|) */ -void ldrkey_send_paranthesis_wrap_ini(void) { - SEND_STRING("()" SS_TAP(X_LEFT)); -} - -/* (X) */ -void ldrkey_send_paranthesis_wrap_word(void) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_LEFT)) "(" SS_LALT(SS_TAP(X_RIGHT)) ")") : SEND_STRING(SS_LCTL(SS_TAP(X_LEFT)) "(" SS_LCTL(SS_TAP(X_RIGHT)) ")"); -} - -/* (selection) */ -void ldrkey_send_paranthesis_wrap_selection(void) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_X)) "()" SS_TAP(X_LEFT) SS_LGUI(SS_TAP(X_V)) SS_TAP(X_RIGHT)) : SEND_STRING(SS_LCTL(SS_TAP(X_X)) "()" SS_TAP(X_LEFT) SS_LCTL(SS_TAP(X_V)) SS_TAP(X_RIGHT)); -} - -/* [|] */ -void ldrkey_send_bracket_wrap_ini(void) { - SEND_STRING("[]" SS_TAP(X_LEFT)); -} - -/* [X] */ -void ldrkey_send_bracket_wrap_word(void) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_LEFT)) "[" SS_LALT(SS_TAP(X_RIGHT)) "]") : SEND_STRING(SS_LCTL(SS_TAP(X_LEFT)) "[" SS_LCTL(SS_TAP(X_RIGHT)) "]"); -} - -/* [selection] */ -void ldrkey_send_bracket_wrap_selection(void) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_X)) "[]" SS_TAP(X_LEFT) SS_LGUI(SS_TAP(X_V)) SS_TAP(X_RIGHT)) : SEND_STRING(SS_LCTL(SS_TAP(X_X)) "[]" SS_TAP(X_LEFT) SS_LCTL(SS_TAP(X_V)) SS_TAP(X_RIGHT)); -} - -/* {|} */ -void ldrkey_send_curlybrace_wrap_ini(void) { - SEND_STRING("{}" SS_TAP(X_LEFT)); -} - -/* {X} */ -void ldrkey_send_curlybrace_wrap_word(void) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_LEFT)) "{" SS_LALT(SS_TAP(X_RIGHT)) "}") : SEND_STRING(SS_LCTL(SS_TAP(X_LEFT)) "{" SS_LCTL(SS_TAP(X_RIGHT)) "}"); -} - -/* {selection} */ -void ldrkey_send_curlybrace_wrap_selection(void) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_X)) "{}" SS_TAP(X_LEFT) SS_LGUI(SS_TAP(X_V)) SS_TAP(X_RIGHT)) : SEND_STRING(SS_LCTL(SS_TAP(X_X)) "{}" SS_TAP(X_LEFT) SS_LCTL(SS_TAP(X_V)) SS_TAP(X_RIGHT)); -} - -void leader_start_user(void) { - isLeader = true; -} - -void leader_end_user(void) { - isLeader = false; - - /* Sequences on layer _MAIN & _MAC */ - /* éÉ => LdrKey > / */ - if (leader_sequence_one_key(KC_SLSH)) { - send_french_accent(_E, _ACUTE); - } - /* àÀ => LdrKey > A */ - if (leader_sequence_one_key(KC_A)) { - send_french_accent(_A, _GRAVE); - } - /* èÈ => LdrKey > E */ - if (leader_sequence_one_key(KC_E)) { - send_french_accent(_E, _GRAVE); - } - /* ùÙ => LdrKey > U */ - if (leader_sequence_one_key(KC_U)) { - send_french_accent(_U, _GRAVE); - } - /* â => LdrKey > A > A */ - if (leader_sequence_two_keys(KC_A, KC_A)) { - send_french_accent(_A, _CIRCUMFLEX); - } - /* êÊ => LdrKey > E > E */ - if (leader_sequence_two_keys(KC_E, KC_E)) { - send_french_accent(_E, _CIRCUMFLEX); - } - /* îÎ => LdrKey > I > I */ - if (leader_sequence_two_keys(KC_I, KC_I)) { - send_french_accent(_I, _CIRCUMFLEX); - } - /* ôÔ => LdrKey > O > O */ - if (leader_sequence_two_keys(KC_O, KC_O)) { - send_french_accent(_O, _CIRCUMFLEX); - } - /* ûÛ => LdrKey > U > U */ - if (leader_sequence_two_keys(KC_U, KC_U)) { - send_french_accent(_U, _CIRCUMFLEX); - } - /* çÇ => LdrKey > C */ - if (leader_sequence_one_key(KC_C)) { - if (onMac) { - SEND_STRING(SS_LALT("c")); - } else { - host_keyboard_led_state().caps_lock ? SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P2) SS_TAP(X_P8) SS_UP(X_LALT)) : SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P1) SS_TAP(X_P3) SS_TAP(X_P5) SS_UP(X_LALT)); - } - } - /* CapsLock */ - if (leader_sequence_one_key(QK_LEAD)) { - tap_code(KC_CAPS); - } - /* ± => LdrKey > = > - */ - if (leader_sequence_two_keys(KC_EQL, KC_MINS)) { - onMac ? SEND_STRING(SS_LALT(SS_LSFT(SS_TAP(X_EQL)))) : SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P2) SS_TAP(X_P4) SS_TAP(X_P1) SS_UP(X_LALT)); - } - /* ≤ => LdrKey > - > = */ - if (leader_sequence_two_keys(KC_MINS, KC_EQL)) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_COMM))) : SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P2) SS_TAP(X_P4) SS_TAP(X_P3) SS_UP(X_LALT)); - } - /* ≥ => LdrKey > = > = */ - if (leader_sequence_two_keys(KC_EQL, KC_EQL)) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_DOT))) : SEND_STRING(SS_DOWN(X_LALT) SS_TAP(X_P2) SS_TAP(X_P4) SS_TAP(X_P2) SS_UP(X_LALT)); - } - /* <= => LdrKey > , > , */ - if (leader_sequence_two_keys(KC_COMM, KC_COMM)) { - SEND_STRING(SS_LSFT(SS_TAP(X_COMM)) SS_TAP(X_SPC) SS_TAP(X_EQL) SS_TAP(X_LEFT) SS_TAP(X_BSPC) SS_TAP(X_RIGHT)); - } - /* => => LdrKey > . > . */ - if (leader_sequence_two_keys(KC_DOT, KC_DOT)) { - SEND_STRING("=>"); - } - /* ", " => LdrKey > " " */ - if (leader_sequence_one_key(KC_SPC)) { - SEND_STRING(", "); - } - /* ". " => LdrKey > " " > " " */ - if (leader_sequence_two_keys(KC_SPC, KC_SPC)) { - SEND_STRING(". "); - } - /* Backward delete current word (on cursor) */ - if (leader_sequence_two_keys(KC_BSPC, KC_BSPC)) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_RIGHT)) SS_LALT(SS_LSFT(SS_TAP(X_LEFT))) SS_TAP(X_BSPC)) : SEND_STRING(SS_LCTL(SS_TAP(X_RIGHT)) SS_LCTL(SS_LSFT(SS_TAP(X_LEFT))) SS_TAP(X_BSPC)); - } - /* Previous word delete */ - if (leader_sequence_one_key(KC_BSPC)) { - onMac ? SEND_STRING(SS_LALT(SS_LSFT(SS_TAP(X_LEFT))) SS_TAP(X_BSPC)) : SEND_STRING(SS_LCTL(SS_LSFT(SS_TAP(X_LEFT))) SS_TAP(X_BSPC)); - } - /* Forward delete current word (on cursor) */ - if (leader_sequence_two_keys(KC_DEL, KC_DEL)) { - - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_LEFT)) SS_LALT(SS_LSFT(SS_TAP(X_RIGHT))) SS_TAP(X_DEL)) : SEND_STRING(SS_LCTL(SS_TAP(X_LEFT)) SS_LCTL(SS_LSFT(SS_TAP(X_RIGHT))) SS_TAP(X_DEL)); - } - /* Next word delete */ - if (leader_sequence_one_key(KC_DEL)) { - onMac ? SEND_STRING(SS_LALT(SS_LSFT(SS_TAP(X_RIGHT))) SS_TAP(X_DEL)): SEND_STRING(SS_LCTL(SS_LSFT(SS_TAP(X_RIGHT))) SS_TAP(X_DEL)); - } - /* ` => LdrKey > Escape */ - if (leader_sequence_one_key(QK_GESC)) { - SEND_STRING("`"); - } - /* ``` => LdrKey > Escape > Escape > Escape */ - if (leader_sequence_three_keys(QK_GESC, QK_GESC, QK_GESC)) { - SEND_STRING("```"); - } - /* Printscreen => LdrKey > Insert */ - if (leader_sequence_one_key(KC_INS)) { - onMac ? SEND_STRING(SS_LGUI(SS_LSFT(SS_TAP(X_4)))) : SEND_STRING(SS_TAP(X_PSCR)); - } - /* Home => LdrKey > Page Up */ - if (leader_sequence_one_key(KC_PGUP)) { - onMac ? SEND_STRING(SS_TAP(X_HOME)) : SEND_STRING(SS_LCTL(SS_TAP(X_HOME))); - } - /* End => LdrKey > Page Down */ - if (leader_sequence_one_key(KC_PGDN)) { - onMac ? SEND_STRING(SS_TAP(X_END)) : SEND_STRING(SS_LCTL(SS_TAP(X_END))); - } - /* Close Curernt File/Tab => LdrKey > W */ - if (leader_sequence_one_key(KC_W)) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_W))) : SEND_STRING(SS_LCTL(SS_TAP(X_W))); - } - /* Close Current App => LdrKey > Q */ - if (leader_sequence_one_key(KC_Q)) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_Q))) : SEND_STRING(SS_LALT(SS_TAP(X_F4))); - } - /* " => LdrKey > ' */ - if (leader_sequence_one_key(KC_QUOT)) { - SEND_STRING("\""); - } - /* "|" => LdrKey > ' > ' */ - if (leader_sequence_two_keys(KC_QUOT, KC_QUOT)) { - SEND_STRING("\"\"" SS_TAP(X_LEFT)); - } - /* "X" wrap => LdrKey > ' > ' > ' */ - if (leader_sequence_three_keys(KC_QUOT, KC_QUOT, KC_QUOT)) { - onMac ? SEND_STRING(SS_LALT(SS_TAP(X_LEFT)) "\"" SS_LALT(SS_TAP(X_RIGHT)) "\"") : SEND_STRING(SS_LCTL(SS_TAP(X_LEFT)) "\"" SS_LCTL(SS_TAP(X_RIGHT)) "\""); - } - /* ( => LdrKey > Left Shift */ - if (leader_sequence_one_key(KC_LSFT)) { - SEND_STRING("("); - } - /* ) => LdrKey > Right Shift */ - if (leader_sequence_one_key(KC_RSFT)) { - SEND_STRING(")"); - } - /* (|) => LdrKey > Left Shift > Left Shift */ - if (leader_sequence_two_keys(KC_LSFT, KC_LSFT)) { - ldrkey_send_paranthesis_wrap_ini(); - } - /* (|) => LdrKey > Right Shift > Right Shift */ - if (leader_sequence_two_keys(KC_RSFT, KC_RSFT)) { - ldrkey_send_paranthesis_wrap_ini(); - } - /* (X) wrap => LdrKey > Left Shift > W */ - if (leader_sequence_two_keys(KC_LSFT, KC_W)) { - ldrkey_send_paranthesis_wrap_word(); - } - /* (X) wrap => LdrKey > Right Shift > W */ - if (leader_sequence_two_keys(KC_RSFT, KC_W)) { - ldrkey_send_paranthesis_wrap_word(); - } - /* (X) wrap selection => LdrKey > Left Shift > W > W */ - if (leader_sequence_three_keys(KC_LSFT, KC_W, KC_W)) { - ldrkey_send_paranthesis_wrap_selection(); - } - /* (X) wrap selection => LdrKey > Right Shift > W > W */ - if (leader_sequence_three_keys(KC_RSFT, KC_W, KC_W)) { - ldrkey_send_paranthesis_wrap_selection(); - } - /* [ => LdrKey > Left CTL */ - if (leader_sequence_one_key(KC_LCTL)) { - SEND_STRING("["); - } - /* ] => LdrKey > Right CTL */ - if (leader_sequence_one_key(KC_RCTL)) { - SEND_STRING("]"); - } - /* [|] => LdrKey > Left CTL > Left CTL */ - if (leader_sequence_two_keys(KC_LCTL, KC_LCTL)) { - ldrkey_send_bracket_wrap_ini(); - } - /* [|] => LdrKey > Right CTL > Right CTL */ - if (leader_sequence_two_keys(KC_RCTL, KC_RCTL)) { - ldrkey_send_bracket_wrap_ini(); - } - /* [X] wrap => LdrKey > Left CTL > W */ - if (leader_sequence_two_keys(KC_LCTL, KC_W)) { - ldrkey_send_bracket_wrap_word(); - } - /* [X] wrap => LdrKey > Right CTL > W */ - if (leader_sequence_two_keys(KC_RCTL, KC_W)) { - ldrkey_send_bracket_wrap_word(); - } - /* [X] wrap selection => LdrKey > Left CTL > W > W */ - if (leader_sequence_three_keys(KC_LCTL, KC_W, KC_W)) { - ldrkey_send_bracket_wrap_selection(); - } - /* [X] wrap selection => LdrKey > Right CTL > W > W */ - if (leader_sequence_three_keys(KC_RCTL, KC_W, KC_W)) { - ldrkey_send_bracket_wrap_selection(); - } - /* { => LdrKey > Left ALT */ - if (leader_sequence_one_key(KC_LALT)) { - SEND_STRING("{"); - } - /* } => LdrKey > Right ALT */ - if (leader_sequence_one_key(KC_RALT)) { - SEND_STRING("}"); - } - /* {|} => LdrKey > Left ALT > Left ALT */ - if (leader_sequence_two_keys(KC_LALT, KC_LALT)) { - ldrkey_send_curlybrace_wrap_ini(); - } - /* {|} => LdrKey > Right ALT > Right ALT */ - if (leader_sequence_two_keys(KC_RALT, KC_RALT)) { - ldrkey_send_curlybrace_wrap_ini(); - } - /* {X} wrap => LdrKey > Left ALT > W */ - if (leader_sequence_two_keys(KC_LALT, KC_W)) { - ldrkey_send_curlybrace_wrap_word(); - } - /* {X} wrap => LdrKey > Right ALT > W */ - if (leader_sequence_two_keys(KC_RALT, KC_W)) { - ldrkey_send_curlybrace_wrap_word(); - } - /* {X} wrap selection => LdrKey > Left ALT > W > W */ - if (leader_sequence_three_keys(KC_LALT, KC_W, KC_W)) { - ldrkey_send_curlybrace_wrap_selection(); - } - /* {X} wrap selection => LdrKey > Right ALT > W > W */ - if (leader_sequence_three_keys(KC_RALT, KC_W, KC_W)) { - ldrkey_send_curlybrace_wrap_selection(); - } - /* Select everything on this line before cursor => LdrKey > Left */ - if (leader_sequence_one_key(KC_LEFT)) { - onMac ? SEND_STRING(SS_LSFT(SS_LGUI(SS_TAP(X_LEFT)))) : SEND_STRING(SS_LSFT(SS_TAP(X_HOME))); - } - /* Select everything on this line after cursor => LdrKey > Right */ - if (leader_sequence_one_key(KC_RIGHT)) { - onMac ? SEND_STRING(SS_LSFT(SS_LGUI(SS_TAP(X_RIGHT)))) : SEND_STRING(SS_LSFT(SS_TAP(X_END))); - } - /* Select everything on this line before cursor and bring on previous line => LdrKey > Left > Left */ - if (leader_sequence_two_keys(KC_LEFT, KC_LEFT)) { - onMac ? SEND_STRING(SS_LSFT(SS_TAP(X_UP) SS_LGUI(SS_TAP(X_RIGHT)))) : SEND_STRING(SS_LSFT(SS_TAP(X_UP) SS_TAP(X_END))); - } - /* Select everything on this line => LdrKey > Right > Left */ - if (leader_sequence_two_keys(KC_RIGHT, KC_LEFT)) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_RIGHT) SS_LSFT(SS_LGUI(SS_TAP(X_LEFT))))) : SEND_STRING(SS_TAP(X_END) SS_LSFT(SS_TAP(X_HOME))); - } - /* Select 1x Page Up on the page before the cursor => LdrKey > Up */ - if (leader_sequence_one_key(KC_UP)) { - SEND_STRING(SS_LSFT(SS_TAP(X_PGUP))); - } - /* Select 1x Page Down on the page after the cursor => LdrKey > Down */ - if (leader_sequence_one_key(KC_DOWN)) { - SEND_STRING(SS_LSFT(SS_TAP(X_PGDN))); - } - /* Select everything on the page before the cursor => LdrKey > Up > Up */ - if (leader_sequence_two_keys(KC_UP, KC_UP)) { - onMac ? SEND_STRING(SS_LSFT(SS_LGUI(SS_TAP(X_UP)))) : SEND_STRING(SS_LSFT(SS_LCTL(SS_TAP(X_HOME)))); - } - /* Select everything on the page after the cursor => LdrKey > Down > Down */ - if (leader_sequence_two_keys(KC_DOWN, KC_DOWN)) { - onMac ? SEND_STRING(SS_LSFT(SS_LGUI(SS_TAP(X_DOWN)))) : SEND_STRING(SS_LSFT(SS_LCTL(SS_TAP(X_END)))); - } - /* HELPER => spit out the url of the layout description page on github */ - if (leader_sequence_five_keys(QK_GESC, QK_GESC, QK_GESC, QK_GESC, QK_GESC)) { - SEND_STRING("https://github.com/qmk/qmk_firmware/tree/master/keyboards/dztech/dz65rgb/keymaps/drootz"); - } - /* google.ca => LdrKey > G > G */ - if (leader_sequence_two_keys(KC_G, KC_G)) { - SEND_STRING("https://google.ca" SS_TAP(X_ENT)); - } - /* @gmail => LdrKey > M > L > T */ - if (leader_sequence_three_keys(KC_M, KC_L, KC_T)) { - SEND_STRING("mailto." SS_TAP(X_D) SS_TAP(X_A) SS_TAP(X_N) SS_TAP(X_I) SS_TAP(X_E) SS_TAP(X_L) SS_TAP(X_R) SS_TAP(X_A) SS_TAP(X_C) SS_TAP(X_I) SS_TAP(X_N) SS_TAP(X_E) "@gmail.com"); - } - /* Show Desktop => LdrKey > D */ - if (leader_sequence_one_key(KC_D)) { - onMac ? SEND_STRING(SS_LGUI(SS_TAP(X_SPC)) "Mission" SS_TAP(X_ENT)) : SEND_STRING(SS_LGUI(SS_TAP(X_D))); - } -} - -#endif /* LEADER */ - -/**************** DYNAMIC MACRO *********************/ - -void dynamic_macro_record_start_user(int8_t direction) { - onMac = false; /* reset layer bool as dynamic macro clear the keyboard and reset layers. */ - if (!isBlinking && !isRecording) { - reset_blink_cycle(); - isBlinking = true; - isRecording = true; - } -} - -void dynamic_macro_record_end_user(int8_t direction) { - if (isBlinking && isRecording) { - reset_blink_status(); - reset_blink_cycle(); - } -} - -void dynamic_macro_play_user(int8_t direction) { - switch (direction) { - case 1: - if (!isBlinking && !isPlaying) { - reset_blink_cycle(); - isBlinking = true; - isPlaying = true; - macro_one_play_timer = timer_read(); - } - break; - case -1: - if (!isBlinking && !isPlaying) { - reset_blink_cycle(); - isBlinking = true; - isPlaying = true; - macro_two_play_timer = timer_read(); - } - break; - } -} diff --git a/keyboards/dztech/dz65rgb/keymaps/drootz/readme.md b/keyboards/dztech/dz65rgb/keymaps/drootz/readme.md deleted file mode 100644 index 15f15d752b..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/drootz/readme.md +++ /dev/null @@ -1,210 +0,0 @@ -![DZ65RGBv2 Layout Image - MAIN](https://res.cloudinary.com/drootz/image/upload/c_scale,w_800/v1582000645/drootz_dz65rgb_layer_0_main_n61oxl.jpg) - -# Drootz's DZ65RGBv2 ANSI Layout - -This layout fit best people who mainly type in English but regularly need to type in French _(using an English keyboard in OS setting)_. There are also some cool LED indicator effects and tons of Leader Key bindings/macros designed to work on both Mac and Windows OS. I tried to keep things as simple as possible from a usability perspective. Enjoy! - -- [LAYERS](#LAYERS) -- [LEADER KEY BINDINGS:](#LEADER-KEY-BINDINGS) - - [OS and Keyboard Macros](#OS-and-Keyboard-Macros) - - [French Accents](#French-Accents) - - [Special Characters and Punctuation](#Special-Characters-and-Punctuation) - - [Text Selection Macros](#Text-Selection-Macros) - - [Expanded Space Cadet Macros](#Expanded-Space-Cadet-Macros) - - [Text Expanders](#Text-Expanders) -- [STEP BY STEP FLASH INSTRUCTIONS](#STEP-BY-STEP-FLASH-INSTRUCTIONS) - -## HIGH LEVEL DESCRIPTION - -#### Dual function Capslock key -- Single tap to trigger the Leader Key -- Double tap to toggle Capslock ON/OFF - -#### 70+ useful Leader Key bindings and macros -- "Designed" to work on both Mac and Windows OS with an English keyboard OS setting -- Per key timing set at 425ms. Never a key sequence! -- 20+ Punctuation, ASCII, System shortcuts and macros -- 15+ French accents (è, é, ê, È, É, Ê, à, etc.) - - No need to switch to a French keyboard OS setting! - - Preserve Capslock if enabled -- 8 Text "selection" shortcuts -- 20+ Expanded "Space Cadet" feature with Shift, Ctrl, Alt and DoubleQuote for (), [], {} and "" -- Few useful strings output for my workflow (You may want to change or remove them...) - -#### Dynamic Macros enabled -- Record/Play up to 2 Macros -- Nesting allowed - -#### Kept only 4 RGB matrix animations due to size of firmware -- Typing Heatmap => How hot is your WPM! (preferred animation because of LED indicators) -- Matrix Splash => Full gradient & value pulse away from a single key hit then fades value out -- Solid Splash => Hue & value pulse away from a single key hit then fades value out -- Solid Color => Static single hue, no speed support - -#### LED indicators and animations -- White led when Capslock toggle ON -- The brightness of all the other indicator can be adjusted globally with the RGB matrix brightness setting on layer \_FN -- White LED indicator for layer selection and current layer identification -- Red and green blinking indicator when "recording" or "playing" Dynamic Macros -- Leader Key LED indicator: - - Persistent 50% dimmed under-glow on top right corner key - - Light up at 100% for the duration of the Leader Key timeout when activated - - Hue, saturation and brightness can be globally adjusted with the RGB matrix settings on layer \_FN - -#### 3 Layers -- \_MAIN: Default layer for Windows OS -- \_MAC: Transparent layer that switch left hand modifier KC_LALT and KC_LGUI keys for MacOS -- \_FN: Functions & settings layer: - - Macro 1 & 2 keycodes (Record, Stop, Play) with LED indicators - - F Keys (F1...F12) on number row - - RGB matrix & animation settings - - Screen brightness & volume system controls - - Layer selection - -## LAYERS - -- Colored keys on the layout visuals below represent the position of the LED indicators on each layer. -- Press down and hold the MO(\_FN) key to access the \_FN layer -- Double tap on the Capslock key to toggle Capslock ON/OFF -- \_TRNS keys use the next lowest non-transparent key (on lower layers) -- \_NO keys are ignored (nothing happens) - -### [Layer 0: \_MAIN](http://www.keyboard-layout-editor.com/#/gists/67c22220856a927766bd3e0331ed782a) -![DZ65RGBv2 Layout Image - MAIN](https://res.cloudinary.com/drootz/image/upload/c_scale,w_800/v1582000645/drootz_dz65rgb_layer_0_main_n61oxl.jpg) - -### [Layer 1: \_MAC](http://www.keyboard-layout-editor.com/#/gists/4a32d80c67c778658febf28524fb5000) -![DZ65RGBv2 Layout Image - MAC](https://res.cloudinary.com/drootz/image/upload/c_scale,w_800/v1582000653/drootz_dz65rgb_layer_1_mac_z4tsaw.jpg) - -### [Layer 2: \_FN](http://www.keyboard-layout-editor.com/#/gists/b583bd7cc5b0a75b4610bbda18fba65e) -![DZ65RGBv2 Layout Image - FN](https://res.cloudinary.com/drootz/image/upload/c_scale,w_800/v1582000661/drootz_dz65rgb_layer_2_fn_zv8yte.jpg) - -## LEADER KEY BINDINGS - -The Leader Key on this layout is triggered by tapping the Capslock key once. Once triggered, we have 450ms between each key press to type any one of the sequences listed below. All sequences are designed to work on both Mac and Windows with an English keyboard OS setting. - -- [OS and Keyboard Macros](#OS-and-Keyboard-Macros) -- [French Accents](#French-Accents) -- [Special Characters and Ponctuation](#Special-Characters-and-Ponctuation) -- [Text Selection Macros](#Text-Selection-Macros) -- [Expanded Space Cadet Macros](#Expanded-Space-Cadet-Macros) -- [Text Expanders](#Text-Expanders) - -#### Legend: - -| Acronym | Description | -| :--- | :--- | -| LDR | Leader Key | -| SFT | Shift key | -| CTL | Control key | -| ESC | Escape key | -| ¶ | Text cursor position | - -### OS and Keyboard Macros - -| Output | Sequence | Description -| :--- | :--- | :--- | -| Toggle Capslock | `LDR LDR` | Single tap Capslock to trigger the LDR key | -| Delete all previous characters in word on cursor OR; | `LDR BACKSPACE` | n/a | -| => Delete previous word if triggered repeatedly | `LDR BACKSPACE` | n/a | -| Delete all forward characters in word on cursor OR; | `LDR DEL` | n/a | -| => Delete next word if triggered repeatedly | `LDR DEL` | n/a | -| Backward Delete whole word on cursor | `LDR BACKSPACE BACKSPACE` | n/a | -| Forward Delete whole word on cursor | `LDR DEL DEL` | n/a | -| Printscreen | `LDR INSERT` | n/a | -| Home | `LDR PAGE-UP` | n/a | -| End | `LDR PAGE-DOWN` | n/a | -| OS: Close current file/tab | `LDR W` | n/a | -| OS: Close current application | `LDR Q` | n/a | -| OS: Show Desktop(Win) or Mission Control(Mac) | `LDR D` | The Mac sequence will work with LaunchBar (Cmd+Space) | - -### French Accents - -| Output | Sequence | Description -| :--- | :--- | :--- | -| `à`¶ or `À`¶ | `LDR A` | Will output upper character if Capslock enabled. | -| `â`¶ or `Â`¶ | `LDR A A` | Will output upper character if Capslock enabled. | -| `ç`¶ or `Ç`¶ | `LDR C` | Will output upper character if Capslock enabled. | -| `è`¶ or `È`¶ | `LDR E` | Will output upper character if Capslock enabled. | -| `ê`¶ or `Ê`¶ | `LDR E E` | Will output upper character if Capslock enabled. | -| `é`¶ or `É`¶ | `LDR /` | Will output upper character if Capslock enabled | -| `î`¶ or `Î`¶ | `LDR I I` | Will output upper character if Capslock enabled. | -| `ô`¶ or `Ô`¶ | `LDR O O` | Will output upper character if Capslock enabled. | -| `ù`¶ or `Ù`¶ | `LDR U` | Will output upper character if Capslock enabled. | -| `û`¶ or `Û`¶ | `LDR U U` | Will output upper character if Capslock enabled. | - -### Special Characters and Punctuation - -| Output | Sequence | Description | -| :--- | :--- | :--- | -| `±`¶ | `LDR = -` | n/a | -| `≤`¶ | `LDR - =` | n/a | -| `≥`¶ | `LDR = =` | n/a | -| `=>`¶ | `LDR , ,` | n/a | -| `<=`¶ | `LDR . .` | n/a | -| ``` ` ``` ¶ | `LDR ESC` | n/a | -| \`\`\` ¶ | `LDR ESC ESC ESC` | n/a | -| `,` space ¶ | `LDR SPACE` | n/a | -| `.` space ¶ | `LDR SPACE SPACE` | n/a | - -### Text Selection Macros - -| Output | Sequence | -| :--- | :--- | -| Select everything on this line before cursor | `LDR LEFT-ARROW` | -| Select everything on this line after cursor | `LDR RIGHT-ARROW` | -| Select everything on this line before cursor up to end of previous line | `LDR LEFT-ARROW LEFT-ARROW` | n/a | -| Select everything on this line | `LDR RIGHT-ARROW LEFT-ARROW` | -| Select 1x Page Up on the page before the cursor | `LDR UP-ARROW` | -| Select 1x Page Down on the page after the cursor | `LDR DOWN-ARROW` | -| Select everything on the page before the cursor | `LDR UP-ARROW UP-ARROW` | -| Select everything on the page after the cursor | `LDR DOWN-ARROW DOWN-ARROW` | - -### Expanded Space Cadet Macros - -| Output | Sequence | Description | -| :--- | :--- | :--- | -| `"`¶ | `LDR '` | Will output single double-quote | -| `"`¶`"` | `LDR ' '` | Will wrap cursor between two double-quotes | -| `"`WORD`"`¶ | `LDR ' ' '` | Will wrap word on cursor between two double-quotes | -| `(`¶ | `LDR LEFT-SFT` | Will output single left parenthesis | -| `)`¶ | `LDR RIGHT-SFT` | Will output single right parenthesis | -| `(`¶`)` | `LDR LEFT-SFT LEFT-SFT` | Will wrap cursor between two parenthesis' | -| `(`¶`)` | `LDR RIGHT-SFT RIGHT-SFT` | Will wrap cursor between two parenthesis' | -| `(`WORD`)`¶ | `LDR LEFT-SFT W` | Will wrap word on cursor between two parenthesis' | -| `(`WORD`)`¶ | `LDR RIGHT-SFT W` | Will wrap word on cursor between two parenthesis' | -| `(`SELECTION`)`¶ | `LDR LEFT-SFT W W` | Will wrap selection between two parenthesis' | -| `(`SELECTION`)`¶ | `LDR RIGHT-SFT W W` | Will wrap selection between two parenthesis' | -| `[`¶ | `LDR LEFT-CTL` | Will output single left bracket | -| `]`¶ | `LDR RIGHT-CTL` | Will output single right bracket | -| `[`¶`]` | `LDR LEFT-CTL LEFT-CTL` | Will wrap cursor between two brackets' | -| `[`¶`]` | `LDR RIGHT-CTL RIGHT-CTL` | Will wrap cursor between two brackets' | -| `[`WORD`]`¶ | `LDR LEFT-CTL W` | Will wrap word on cursor between two brackets' | -| `[`WORD`]`¶ | `LDR RIGHT-CTL W` | Will wrap word on cursor between two brackets' | -| `[`SELECTION`]`¶ | `LDR LEFT-CTL W W` | Will wrap selection between two brackets' | -| `[`SELECTION`]`¶ | `LDR RIGHT-CTL W W` | Will wrap selection between two brackets' | -| `{`¶ | `LDR LEFT-ALT` | Will output single left curly brace | -| `}`¶ | `LDR RIGHT-ALT` | Will output single right curly brace | -| `{`¶`}` | `LDR LEFT-ALT LEFT-ALT` | Will wrap cursor between two curly braces' | -| `{`¶`}` | `LDR RIGHT-ALT RIGHT-ALT` | Will wrap cursor between two curly braces' | -| `{`WORD`}`¶ | `LDR LEFT-ALT W` | Will wrap word on cursor between two curly braces' | -| `{`WORD`}`¶ | `LDR RIGHT-ALT W` | Will wrap word on cursor between two curly braces' | -| `{`SELECTION`}`¶ | `LDR LEFT-ALT W W` | Will wrap selection between two curly braces' | -| `{`SELECTION`}`¶ | `LDR RIGHT-ALT W W` | Will wrap selection between two curly braces' | - -### Text Expanders - -| Output | Sequence | Description | -| :--- | :--- | :--- | -| https://google.ca | `LDR G G` | n/a | -| Layout Help URL | `LDR ESC ESC ESC ESC ESC` | URL to this readme.md page | -| My Gmail | `LDR M L T` | You may want to update this before compiling the firmware | - -## STEP BY STEP FLASH INSTRUCTIONS -1. Build the Firmware. Run build command in directory: `make dztech/dz65rgb/v2:drootz` - - Approximate firmware size: 27302/28672 (95%, 1370 bytes free) -2. Flash the Firmware: - - Open QMK Toolbox Application - - Open firmware file: dztech_dz65rgb_v2_drootz.hex - - Unplug keyboard USB, and hold the ESC key while plugging it back in - - Check that QMK Toolbox displays: *** DFU device connected. - - Hit the flash button! diff --git a/keyboards/dztech/dz65rgb/keymaps/drootz/rules.mk b/keyboards/dztech/dz65rgb/keymaps/drootz/rules.mk deleted file mode 100644 index 2f8ab8ecc3..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/drootz/rules.mk +++ /dev/null @@ -1,11 +0,0 @@ -DYNAMIC_MACRO_ENABLE = yes -LEADER_ENABLE = yes - -# Firmware size Optimizations -LTO_ENABLE = yes -MOUSEKEY_ENABLE = no -NKRO_ENABLE = no -SPACE_CADET_ENABLE = no -TAP_DANCE_ENABLE = no -UNICODEMAP_ENABLE = no -SPLIT_KEYBOARD = no diff --git a/keyboards/dztech/dz65rgb/keymaps/jumper149/config.h b/keyboards/dztech/dz65rgb/keymaps/jumper149/config.h deleted file mode 100644 index 081b2d8b41..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/jumper149/config.h +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright 2021 Felix Springer - * - * 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/>. - */ -#pragma once - -#define FORCE_NKRO - -#ifdef RGB_MATRIX_ENABLE - -# undef ENABLE_RGB_MATRIX_ALPHAS_MODS -# undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -# undef ENABLE_RGB_MATRIX_BREATHING -# undef ENABLE_RGB_MATRIX_BAND_SAT -# undef ENABLE_RGB_MATRIX_BAND_VAL -# undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -# undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -# undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -# undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -# undef ENABLE_RGB_MATRIX_CYCLE_ALL -# undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -# undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -# undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN -# undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -# undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -# undef ENABLE_RGB_MATRIX_DUAL_BEACON -# undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -# undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL -# undef ENABLE_RGB_MATRIX_RAINBOW_BEACON -# undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -# undef ENABLE_RGB_MATRIX_RAINDROPS -# undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -# undef ENABLE_RGB_MATRIX_TYPING_HEATMAP -# undef ENABLE_RGB_MATRIX_DIGITAL_RAIN -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -# undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -# undef ENABLE_RGB_MATRIX_SPLASH -# undef ENABLE_RGB_MATRIX_MULTISPLASH -# undef ENABLE_RGB_MATRIX_SOLID_SPLASH -# undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH - -// Fix RGB_MATRIX_STARTUP, because RGB_MATRIX_CYCLE_ALL is disabled. -// The actual handling of RGB_EFFECTs is done in keymap.c -#undef RGB_MATRIX_DEFAULT_MODE - -#endif diff --git a/keyboards/dztech/dz65rgb/keymaps/jumper149/keymap.c b/keyboards/dztech/dz65rgb/keymaps/jumper149/keymap.c deleted file mode 100644 index ec63d53bd7..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/jumper149/keymap.c +++ /dev/null @@ -1,120 +0,0 @@ -/* Copyright 2021 Felix Springer - * - * 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/>. - */ -#include QMK_KEYBOARD_H - -enum layers_user { - _QWERTY, - _AD, - _VI, - _FN, - _KB -}; - -enum keycodes_user { - _BASEEF = SAFE_RANGE, - _KITTEF -}; - -int selected_mode_user = RGB_MATRIX_CUSTOM_base_effect; // for layer_state_set_user() -bool process_record_user(uint16_t keycode, keyrecord_t * record) { - switch (keycode) { - case _BASEEF: - if (record->event.pressed) { - selected_mode_user = RGB_MATRIX_CUSTOM_base_effect; - } - return false; - case _KITTEF: - if (record->event.pressed) { - selected_mode_user = RGB_MATRIX_CUSTOM_kitt_effect; - } - return false; - default: - return true; - } -} - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_QWERTY] = LAYOUT_65_ansi( - KC_GRAVE, 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_BSPC, KC_HOME, - 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_BSLS, KC_PGUP, - 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_PGDN, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_AD] = LAYOUT_65_ansi( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_INS, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [_VI] = LAYOUT_65_ansi( - KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PGUP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - KC_ESC, XXXXXXX, XXXXXXX, KC_PGDN, XXXXXXX, XXXXXXX, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, XXXXXXX, XXXXXXX, _______, XXXXXXX, - _______, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_FIND, _______, _______, XXXXXXX, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [_FN] = LAYOUT_65_ansi( - XXXXXXX, 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_DEL, KC_INS, - XXXXXXX, KC_MUTE, KC_VOLU, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_PSCR, KC_SCRL, KC_PAUS, XXXXXXX, KC_PSTE, - CTL_T(KC_CAPS), KC_BRID, KC_VOLD, KC_BRIU, XXXXXXX, XXXXXXX, TG(_AD), TG(_VI), XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_COPY, - KC_LSFT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_APP, XXXXXXX, XXXXXXX, XXXXXXX, KC_RSFT, KC_MSTP, KC_CUT, - KC_LCTL, KC_LGUI, KC_LALT, XXXXXXX, MO(_KB), XXXXXXX, KC_RCTL, KC_MPRV, KC_MPLY, KC_MNXT - ), - [_KB] = LAYOUT_65_ansi( - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, RGB_SPI, RGB_SPD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, QK_BOOT, XXXXXXX, - XXXXXXX, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - XXXXXXX, XXXXXXX, RGB_SAI, RGB_SAD, XXXXXXX, XXXXXXX, _BASEEF, _KITTEF, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, EE_CLR, XXXXXXX, - KC_LSFT, RGB_VAI, RGB_VAD, XXXXXXX, XXXXXXX, XXXXXXX, NK_TOGG, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_RSFT, XXXXXXX, XXXXXXX, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX - ) - /* - [_LEDS] = LAYOUT_65_ansi( - 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , - 15 , 16 Q, 17 W, 18 E, 19 R, 20 T, 21 Y, 22 U, 23 I, 24 O, 25 P, 26 , 27 , 28 , 29 , - 30 , 31 A, 32 S, 33 D, 34 F, 35 G, 36 H, 37 J, 38 K, 39 L, 40 , 41 , 42 , 43 , - 44 , 45 Z, 46 X, 47 C, 48 V, 49 B, 50 N, 51 M, 52 , 53 , 54 , 55 , 56 , 57 , - 58 , 59 , 60 , 61 , 62 , 63 , 64 , 65 , 66 , 67 - ) - */ -}; - -layer_state_t layer_state_set_user(layer_state_t state) { - switch (get_highest_layer(state)) { - case _QWERTY: - rgb_matrix_mode(selected_mode_user); - break; - case _AD: - if (selected_mode_user == RGB_MATRIX_CUSTOM_base_effect) { - rgb_matrix_mode(RGB_MATRIX_CUSTOM_base_ad_effect); - } else { - rgb_matrix_mode(selected_mode_user); - } - break; - case _VI: - rgb_matrix_mode(RGB_MATRIX_CUSTOM_vi_effect); - break; - case _FN: - rgb_matrix_mode(RGB_MATRIX_CUSTOM_fn_indicator); - break; - case _KB: - rgb_matrix_mode(RGB_MATRIX_CUSTOM_kb_indicator); - break; - } - - return state; -} diff --git a/keyboards/dztech/dz65rgb/keymaps/jumper149/readme.md b/keyboards/dztech/dz65rgb/keymaps/jumper149/readme.md deleted file mode 100644 index 9de86be2d1..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/jumper149/readme.md +++ /dev/null @@ -1,24 +0,0 @@ -# jumper149's DZ65RGB v2 - -Run commands in the root directory of this repository. - -``` -qmk compile && sudo dfu-programmer atmega32u4 erase && sudo dfu-programmer atmega32u4 flash ./dztech_dz65rgb_v2_jumper149.hex && sudo dfu-programmer atmega32u4 reset -``` - -## build - -``` -qmk compile -``` - -## flash - -Use `qmk flash` or if it is broken (unknown reason) you can try this workaround. -I personally had some problems on ArchLinux, that I didn't debug any further though. - -``` -sudo dfu-programmer atmega32u4 erase -sudo dfu-programmer atmega32u4 flash ./dztech_dz65rgb_v2_jumper149.hex -sudo dfu-programmer atmega32u4 reset -``` diff --git a/keyboards/dztech/dz65rgb/keymaps/jumper149/rgb_matrix_user.inc b/keyboards/dztech/dz65rgb/keymaps/jumper149/rgb_matrix_user.inc deleted file mode 100644 index 8d99ff9481..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/jumper149/rgb_matrix_user.inc +++ /dev/null @@ -1,700 +0,0 @@ -/* Copyright 2021 Felix Springer - * - * 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/>. - */ -RGB_MATRIX_EFFECT(base_effect) -RGB_MATRIX_EFFECT(base_ad_effect) -RGB_MATRIX_EFFECT(vi_effect) -RGB_MATRIX_EFFECT(fn_indicator) -RGB_MATRIX_EFFECT(kb_indicator) -RGB_MATRIX_EFFECT(kitt_effect) - -#ifdef RGB_MATRIX_CUSTOM_EFFECT_IMPLS - -/* -[_LEDS] = LAYOUT_65_ansi( - 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , - 15 , 16 Q, 17 W, 18 E, 19 R, 20 T, 21 Y, 22 U, 23 I, 24 O, 25 P, 26 , 27 , 28 , 29 , - 30 , 31 A, 32 S, 33 D, 34 F, 35 G, 36 H, 37 J, 38 K, 39 L, 40 , 41 , 42 , 43 , - 44 , 45 Z, 46 X, 47 C, 48 V, 49 B, 50 N, 51 M, 52 , 53 , 54 , 55 , 56 , 57 , - 58 , 59 , 60 , 61 , 62 , 63 , 64 , 65 , 66 , 67 -) -*/ - -// variable for startup animation -bool BASE_EFFECT_NOT_STARTED_YET = true; -uint8_t base_effect_startup_counter = 255; - -static HSV base_effect_math(HSV hsv, uint8_t i, uint8_t time) { - - if (BASE_EFFECT_NOT_STARTED_YET) { - base_effect_startup_counter = 0; - BASE_EFFECT_NOT_STARTED_YET = false; - } - - // startup animation - if (base_effect_startup_counter < 255) { - - // jump to correct indices for alpha keys - if (i == 0) { // only run for one key (key 0 is an arbitrary choice) - if (base_effect_startup_counter == 0) { - base_effect_startup_counter = 1; - } else if (base_effect_startup_counter == 1) { - base_effect_startup_counter = 17; - } else if (base_effect_startup_counter == 26) { - base_effect_startup_counter = 31; - } else if (base_effect_startup_counter == 40) { - base_effect_startup_counter = 45; - } else if (base_effect_startup_counter == 52) { - base_effect_startup_counter = 100; - } else if (base_effect_startup_counter == 120) { - base_effect_startup_counter = 255; - } else { - base_effect_startup_counter++; - } - } - - // overwrite some highlit keys - if (3 + 39 - i < base_effect_startup_counter - 100 && i >= 36 && i <= 39) { - hsv.s = hsv.s; - } else if (3 + 39 - i < base_effect_startup_counter - 100 && i >= 31 && i <= 34) { - hsv.s = hsv.s; - // light up alpha keys - } else if (i < base_effect_startup_counter && i >= 16 && i <= 25) { - hsv.s = 0; - } else if (31 + 39 - i < base_effect_startup_counter && i >= 31 && i <= 39) { - hsv.s = 0; - } else if (i < base_effect_startup_counter && i >= 45 && i <= 51) { - hsv.s = 0; - // light up number row - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i == 2) { - hsv.s = 0; - hsv.v = 1 * (hsv.v / 8); - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i == 3) { - hsv.s = 0; - hsv.v = 2 * (hsv.v / 8); - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i == 4) { - hsv.s = 0; - hsv.v = 3 * (hsv.v / 8); - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i >= 5 && i <= 8) { - hsv.v = hsv.v; - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i == 9) { - hsv.s = 0; - hsv.v = 3 * (hsv.v / 8); - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i == 10) { - hsv.s = 0; - hsv.v = 2 * (hsv.v / 8); - } else if (12 + 1 - i < base_effect_startup_counter - 100 && i == 11) { - hsv.s = 0; - hsv.v = 1 * (hsv.v / 8); - // light up punctuation keys - } else if (27 + 1 - i < base_effect_startup_counter - 100 && i >= 26 && i <= 27) { - hsv.s = 0; - hsv.v = hsv.v / 8; - } else if (41 + 2 - i < base_effect_startup_counter - 100 && i >= 40 && i <= 41) { - hsv.s = 0; - hsv.v = hsv.v / 8; - } else if (54 + 3 - i < base_effect_startup_counter - 100 && i >= 52 && i <= 54) { - hsv.s = 0; - hsv.v = hsv.v / 8; - // rest - } else { - hsv.v = 0; - } - - } else { - - switch (i) { - - // number row - case 0: - hsv.v = 0; - break; - case 1: - hsv.v = 0; - break; - case 2: - hsv.s = 0; - hsv.v = 1 * (hsv.v / 8); - break; - case 3: - hsv.s = 0; - hsv.v = 2 * (hsv.v / 8); - break; - case 4: - hsv.s = 0; - hsv.v = 3 * (hsv.v / 8); - break; - case 5: - hsv.v = hsv.v; - break; - case 6: - hsv.v = hsv.v; - break; - case 7: - hsv.v = hsv.v; - break; - case 8: - hsv.v = hsv.v; - break; - case 9: - hsv.s = 0; - hsv.v = 3 * (hsv.v / 8); - break; - case 10: - hsv.s = 0; - hsv.v = 2 * (hsv.v / 8); - break; - case 11: - hsv.s = 0; - hsv.v = 1 * (hsv.v / 8); - break; - case 12: - hsv.v = 0; - break; - - // punctuation keys - case 26: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - case 27: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - case 40: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - case 41: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - case 52: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - case 53: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - case 54: - hsv.s = 0; - hsv.v = hsv.v / 8; - break; - - default: - if ( - (i > 15 && i <= 25) || - (i > 30 && i <= 39) || - (i > 44 && i <= 51) - ) { - if (i > 35 && i <= 39) { - hsv.s = hsv.s; - } else if (i > 30 && i <= 34) { - hsv.s = hsv.s; - } else { - hsv.s = 0; - } - } else { - hsv.v = 0; - } - break; - - } - - } - - return hsv; -} - -bool base_effect(effect_params_t* params) { - return effect_runner_i(params, &base_effect_math); -} - -static HSV base_ad_effect_math(HSV hsv, uint8_t i, uint8_t time) { - - // no startup animation - if (BASE_EFFECT_NOT_STARTED_YET) { - base_effect_startup_counter = 255; // act like startup is already completed - BASE_EFFECT_NOT_STARTED_YET = false; - } - - switch (i) { - - // delete - case 14: - hsv.h = 0; - hsv.s = 255; - break; - - // insert - case 29: - hsv.h = 255/3; - hsv.s = 255; - break; - - // home - case 43: - hsv.s = 0; - break; - - // end - case 57: - hsv.s = 255; - break; - - default: - hsv = base_effect_math(hsv, i, time); - break; - - } - - return hsv; -} - -bool base_ad_effect(effect_params_t* params) { - return effect_runner_i(params, &base_ad_effect_math); -} - -static HSV vi_effect_math(HSV hsv, uint8_t i, uint8_t time) { - - // no startup animation - if (BASE_EFFECT_NOT_STARTED_YET) { - base_effect_startup_counter = 255; // act like startup is already completed - BASE_EFFECT_NOT_STARTED_YET = false; - } - - switch (i) { - - // hjkl - case 36: - break; - case 37: - break; - case 38: - break; - case 39: - break; - - // page up - case 22: - hsv.s = 0; - break; - - // page down - case 33: - hsv.s = 0; - break; - - // find - case 54: - hsv.s = 0; - break; - - default: - hsv.v = 0; - break; - - } - - return hsv; -} - -bool vi_effect(effect_params_t* params) { - return effect_runner_i(params, &vi_effect_math); -} - -static HSV fn_indicator_math(HSV hsv, uint8_t i, uint8_t time) { - - // cancel base effect startup - base_effect_startup_counter = 255; - - switch (i) { - - // F1 - F12 - case 1: - hsv.h = 0 * 255 / 3; - hsv.s = 255; - break; - case 2: - hsv.h = 0 * 255 / 3; - hsv.s = 255; - break; - case 3: - hsv.h = 0 * 255 / 3; - hsv.s = 255; - break; - case 4: - hsv.h = 0 * 255 / 3; - hsv.s = 255; - break; - case 5: - hsv.h = 1 * 255 / 3; - hsv.s = 255; - break; - case 6: - hsv.h = 1 * 255 / 3; - hsv.s = 255; - break; - case 7: - hsv.h = 1 * 255 / 3; - hsv.s = 255; - break; - case 8: - hsv.h = 1 * 255 / 3; - hsv.s = 255; - break; - case 9: - hsv.h = 2 * 255 / 3; - hsv.s = 255; - break; - case 10: - hsv.h = 2 * 255 / 3; - hsv.s = 255; - break; - case 11: - hsv.h = 2 * 255 / 3; - hsv.s = 255; - break; - case 12: - hsv.h = 2 * 255 / 3; - hsv.s = 255; - break; - - // delete/insert - case 13: - hsv.h = 0; - hsv.s = 255; - break; - case 14: - hsv.h = 1 * (255 / 3); - hsv.s = 255; - break; - - // paste/copy/cut - case 29: - hsv.s = 0; - break; - case 43: - hsv.h = 200; - hsv.s = 255; - break; - case 57: - hsv.h = 0; - hsv.s = 255; - break; - - // print/scroll/pause - case 25: - hsv.s = 0; - break; - case 26: - hsv.s = 0; - break; - case 27: - hsv.s = 0; - break; - - // caps lock - case 30: - hsv.s = 0; - break; - - // modifier - case 44: - hsv.s = 0; - hsv.v = hsv.v / 2; - break; - case 55: - hsv.s = 0; - hsv.v = hsv.v / 2; - break; - case 58: - hsv.s = 0; - hsv.v = hsv.v / 2; - break; - case 59: - hsv.s = 0; - hsv.v = hsv.v / 2; - break; - case 60: - hsv.s = 0; - hsv.v = hsv.v / 2; - break; - case 64: - hsv.s = 0; - hsv.v = hsv.v / 2; - break; - - // volume - case 18: // mute - hsv.h = 0; - break; - case 17: // increase - hsv.s = 255; - break; - case 32: // decrease - hsv.s = 0; - break; - - // brightness - case 33: // increase - hsv.s = 255; - break; - case 31: // decrease - hsv.s = 0; - break; - - // media - case 65: // previous - hsv.s = 0; - break; - case 67: // next - hsv.s = 0; - break; - case 56: // stop - hsv.h = 0; - break; - case 66: // play/pause - hsv.h = 255/3; - break; - - // menu - case 51: - hsv.s = 0; - break; - - // toggle AD layer - case 36: - hsv.h = 0; - break; - - // toggle VI layer - case 37: - hsv.h = 255/3; - break; - - // KB layer - case 62: - hsv.h = time; - hsv.s = 255; - break; - - // no function - default: - hsv.v = 0; - break; - - } - - return hsv; -} - -bool fn_indicator(effect_params_t* params) { - return effect_runner_i(params, &fn_indicator_math); -} - -static HSV kb_indicator_math(HSV hsv, uint8_t i, uint8_t time) { - - // cancel base effect startup - base_effect_startup_counter = 255; - - switch (i) { - - // test HSV - case 14: - break; - case 29: - break; - case 43: - break; - case 57: - break; - case 67: - break; - - // toggle RGB - case 16: - hsv.s = 0; - if (time < (255 / 2)) { - hsv.v = 255; - } else { - hsv.v = 0; - } - break; - - // cycle effect - case 17: - hsv.s = 255; - hsv.v = 255; - if (time < (255 / 3)) { - hsv.h = 0; - } else if (time < (2 * 255 / 3)) { - hsv.h = 255 / 3; - } else { - hsv.h = 2 * 255 / 3; - } - break; - - // adjust hue - case 18: - hsv.h = time; - hsv.s = 255; - hsv.v = 255; - break; - case 19: - hsv.h = 255 - time; - hsv.s = 255; - hsv.v = 255; - break; - - // adjust saturation - case 32: - hsv.s = 255; - hsv.v = 255; - break; - case 33: - hsv.s = 0; - hsv.v = 255; - break; - - // adjust value - case 45: - hsv.v = 255; - break; - case 46: - hsv.v = 63; - break; - - // adjust speed - case 4: - if (((time / 8) % 2) == 0) { - hsv.v = 255; - } else { - hsv.v = 63; - } - break; - case 5: - if (((time / 16) % 2) == 0) { - hsv.v = 63; - } else { - hsv.v = 255; - } - break; - - // set main effect - case 36: // BASE - hsv.s = 0; - break; - case 37: // KITT - hsv.h = 0; - hsv.s = 255; - if (time < 128) { - hsv.v = time; - } else { - hsv.v = 255 - time; - } - break; - - // reset (for flashing) - case 13: - hsv.s = 0; - if (time < 16) { - hsv.v = 255 - time * 128 / 16; - } else { - hsv.v = 127; - } - break; - - // reset (reinitialize EEPROM) - case 42: - hsv.s = 0; - hsv.v = 127; - break; - - // shift - case 44: - hsv.s = 0; - hsv.v = 63; - break; - case 55: - hsv.s = 0; - hsv.v = 63; - break; - - // no function - default: - hsv.v = 0; - - } - - return hsv; -} - -bool kb_indicator(effect_params_t* params) { - return effect_runner_i(params, &kb_indicator_math); -} - -uint8_t led_count = 7; -uint8_t led_first = 33; -static uint8_t time_to_led(uint8_t time, uint8_t led_behind) { - uint16_t led_time = led_count * time; - uint16_t step = ((2 * led_count + (led_time / 128)) - led_behind) % (2 * led_count); - uint8_t led; - if (step < led_count) { - led = step; - } else { - led = led_count - 1 - (step - led_count); - } - return led; -} - -static HSV kitt_effect_math(HSV hsv, uint8_t i, uint8_t time) { - - // reset base effect startup - if (i == 0) { - BASE_EFFECT_NOT_STARTED_YET = true; - } - - hsv.h = 0; - hsv.s = 255; - - if (i >= led_first && i < led_first + led_count) { - uint8_t j = i - led_first; - if (j == time_to_led(time, 0)) { - hsv.v = hsv.v; - } else if (j == time_to_led(time, 1)) { - hsv.v = hsv.v/2; - } else if (j == time_to_led(time, 2)) { - hsv.v = hsv.v/4; - } else if (j == time_to_led(time, 3)) { - hsv.v = hsv.v/8; - } else { - hsv.v = 0; - } - } else { - hsv.v = 0; - } - - return hsv; -} - -bool kitt_effect(effect_params_t* params) { - return effect_runner_i(params, &kitt_effect_math); -} - -#endif // RGB_MATRIX_CUSTOM_EFFECT_IMPLS - -// vim: syntax=c diff --git a/keyboards/dztech/dz65rgb/keymaps/jumper149/rules.mk b/keyboards/dztech/dz65rgb/keymaps/jumper149/rules.mk deleted file mode 100644 index 6245023e80..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/jumper149/rules.mk +++ /dev/null @@ -1 +0,0 @@ -RGB_MATRIX_CUSTOM_USER = yes diff --git a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/config.h b/keyboards/dztech/dz65rgb/keymaps/matthewrobo/config.h deleted file mode 100644 index bce34bcfbc..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/config.h +++ /dev/null @@ -1,65 +0,0 @@ -#pragma once - -#define FORCE_NKRO - -#define PERMISSIVE_HOLD -#define TAPPING_TERM 150 - -#define TAP_HOLD_CAPS_DELAY 0 -#undef RGB_MATRIX_DEFAULT_MODE -#define RGB_MATRIX_FRAMEBUFFER_EFFECTS - -// #undef ENABLE_RGB_MATRIX_SOLID_COLOR -// #undef ENABLE_RGB_MATRIX_ALPHAS_MODS -// #undef ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -// #undef ENABLE_RGB_MATRIX_BREATHING -#undef ENABLE_RGB_MATRIX_BAND_SAT -// #undef ENABLE_RGB_MATRIX_BAND_VAL -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -#undef ENABLE_RGB_MATRIX_CYCLE_ALL -#undef ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -#undef ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN -#undef ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -#undef ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -#undef ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -// #undef ENABLE_RGB_MATRIX_CYCLE_SPIRAL -#undef ENABLE_RGB_MATRIX_DUAL_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_BEACON -#undef ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -#undef ENABLE_RGB_MATRIX_RAINDROPS -#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -// #undef ENABLE_RGB_MATRIX_TYPING_HEATMAP -#undef ENABLE_RGB_MATRIX_DIGITAL_RAIN -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -// #undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -// #undef ENABLE_RGB_MATRIX_SPLASH -// #undef ENABLE_RGB_MATRIX_MULTISPLASH -// #undef ENABLE_RGB_MATRIX_SOLID_SPLASH -// #undef ENABLE_RGB_MATRIX_SOLID_MULTISPLASH - -// #define RGB_MATRIX_KEYRELEASES - -// some speed shit - -#ifndef NO_DEBUG -#define NO_DEBUG -#endif // !NO_DEBUG -#if !defined(NO_PRINT) && !defined(CONSOLE_ENABLE) -#define NO_PRINT -#endif // !NO_PRINT - -#define NO_ACTION_ONESHOT -#define QUICK_TAP_TERM 0 - -// #include "config_led.h" -// #include "dz60rgb.h" diff --git a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/keymap.c b/keyboards/dztech/dz65rgb/keymaps/matthewrobo/keymap.c deleted file mode 100644 index 7936aaff75..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/keymap.c +++ /dev/null @@ -1,306 +0,0 @@ -#include QMK_KEYBOARD_H - -enum dz65rgb_layers { - _QWERTY, - _FNM, - _NAV, - _FNC -}; - -enum dz65rgb_keycodes { - REBOOT = SAFE_RANGE, - REEPROM, - MAS_CRM, - MAS_PRP, - MAS_RED, - MAS_GRN, - MAS_BLU, - MAS_CYN, - MAS_MGT, - MAS_YEL, - MAS_KEY, - MAS_WHT, -}; - -#define TG_NKRO MAGIC_TOGGLE_NKRO -#define _V_V_V_ KC_TRNS -#define LT_CAPS LT(_NAV, KC_CAPS) -#define MT_APP RALT_T(KC_APP) -#define LM_LALT LM(_FNM, MOD_LALT) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_QWERTY] = LAYOUT_65_ansi( - 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_BSPC, KC_DEL, - 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_BSLS, KC_PGUP, - LT_CAPS, 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_PGDN, - SC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SC_RSPC, KC_UP, KC_END, - KC_LCTL, KC_LGUI, LM_LALT, KC_SPC, KC_RALT, MO(_FNC), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [_FNM] = LAYOUT_65_ansi( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _V_V_V_, _______, _______, _______, _______, _______, _______, _______ - ), - [_NAV] = LAYOUT_65_ansi( - KC_NUM, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_P7, KC_P8, KC_P9, KC_PAST, KC_PMNS, KC_PPLS, _______, _______, - _______, KC_PGUP, KC_HOME, KC_UP, KC_END, _______, _______, KC_P4, KC_P5, KC_P6, KC_PSLS, KC_PSCR, KC_SCRL, KC_INS, KC_PMNS, - _V_V_V_, KC_PGDN, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, KC_P1, KC_P2, KC_P3, _______, _______, KC_PENT, KC_PPLS, - _______, _______, _______, _______, _______, _______, KC_P0, KC_P0, KC_P0, KC_PDOT, KC_PSLS, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ - ), - [_FNC] = LAYOUT_65_ansi( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, AS_TOGG, - _______, RGB_MOD, RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, _______, _______, MAS_MGT, MAS_BLU, MAS_WHT, RGB_RMOD, RGB_MOD, _______, KC_MPRV, - _______, RGB_RMOD, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, MAS_RED, MAS_KEY, MAS_CYN, MAS_PRP, _______, EE_CLR, KC_MNXT, - _______, RGB_TOG, _______, _______, REEPROM, REBOOT, TG_NKRO, MAS_YEL, MAS_GRN, MAS_CRM, _______, _______, KC_VOLU, KC_MUTE, - _______, _______, _______, _______, _______, _V_V_V_, _______, RGB_SPD, KC_VOLD, RGB_SPI - ), - /* - [_LEDS] = LAYOUT_65_ansi( - 17, 16, 15, 14, 13, 12, 11, 10, 9, 18, 19, 20, 21, 22, 23, - 7, 6, 5, 4, 3, 2, 1, 0, 26, 27, 28, 29, 30, 31, 24, - 8, 48, 47, 46, 45, 44, 43, 51, 52, 53, 54, 55, 56, 25, - 49, 40, 39, 38, 37, 36, 60, 61, 62, 63, 57, 58, 59, 32, - 50, 42, 41, 35, 64, 65, 66, 67, 34, 33 - ), - */ -}; - -/* -17, 16, 15, 14, 13, 12, 11, 10, 9, 18, 19, 20, 21, 22, 23 - 7, 6, 5, 4, 3, 2, 1, 0, 26, 27, 28, 29, 30, 31, 24 - 8, 48, 47, 46, 45, 44, 43, 51, 52, 53, 54, 55, 56, 25 -49, 40, 39, 38, 37, 36, 60, 61, 62, 63, 57, 58, 59, 32 -50, 42, 41, 35, 64, 65, 66, 67, 34, 33 - -ESC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =, BCK, DEL -TAB, Q, W, E, R, T, Y, U, I, O, P, [, ], \, - -CPS, A, S, D, F, G, H, J, K, L, COL, QOT, RETURN, + -SFT, Z, X, C, V, B, N, M, COM, DOT, SLS, SHIFT, UP, 0 -CTL, GUI, ALT, SPACEBAR, ALT, FN, CTL, LFT, DWN, RIT -*/ -bool rgb_matrix_indicators_user(void) { - if (host_keyboard_led_state().caps_lock) { - rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF); - } - - led_t led_state = host_keyboard_led_state(); - - if (!g_suspend_state && rgb_matrix_config.enable) { - switch (get_highest_layer(layer_state)) { - case _NAV: - if (led_state.num_lock) { - rgb_matrix_set_color(17, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(26, 0xFF, 0xFF, 0x00); - } else { - rgb_matrix_set_color(17, 0x00, 0x00, 0x00); - rgb_matrix_set_color(26, 0xFF, 0x00, 0x00); - } - - rgb_matrix_set_color(8, 0xFF, 0xFF, 0xFF); // layer indicator - // ESDF - rgb_matrix_set_color(4, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(47, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(46, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(45, 0xFF, 0x00, 0x00); - // home/end - rgb_matrix_set_color(5, 0x00, 0xFF, 0x00); - rgb_matrix_set_color(3, 0x00, 0xFF, 0x00); - // pgup/dn - rgb_matrix_set_color(6, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(48, 0x00, 0x00, 0xFF); - // numpad - rgb_matrix_set_color(10, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(9, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(18, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(0, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(27, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(51, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(52, 0xFF, 0xFF, 0x00); - rgb_matrix_set_color(53, 0xFF, 0xFF, 0x00); - // zero - rgb_matrix_set_color(60, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(61, 0xFF, 0x00, 0x00); - rgb_matrix_set_color(62, 0xFF, 0x00, 0x00); - // dot - rgb_matrix_set_color(63, 0x00, 0x00, 0xFF); - // math shit - rgb_matrix_set_color(19, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(20, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(21, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(28, 0x00, 0x00, 0xFF); - rgb_matrix_set_color(24, 0x00, 0x00, 0xFF); // macro minus - rgb_matrix_set_color(25, 0x00, 0x00, 0xFF); // macro plus - // other - rgb_matrix_set_color(29, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(30, 0xFF, 0xFF, 0xFF); - rgb_matrix_set_color(31, 0xFF, 0xFF, 0xFF); - break; - - case _FNC: { - HSV hsv = { rgb_matrix_config.hsv.h, rgb_matrix_config.hsv.s, rgb_matrix_config.hsv.v }; - HSV hui = hsv; - HSV hud = hsv; - HSV sai = hsv; - HSV sad = hsv; - HSV vai = hsv; - HSV vad = hsv; - hui.h = hsv.h + 8; - hud.h = hsv.h - 8; - sai.s = hsv.s + 16 > 255 ? 255u : hsv.s + 16; - sad.s = hsv.s - 16 < 0 ? 0 : hsv.s - 16; - vai.v = hsv.v + 16 > 255 ? 255 : hsv.v + 16; - vad.v = hsv.v - 16 < 0 ? 0 : hsv.v - 16; - RGB rgb = hsv_to_rgb(hsv); - RGB rgbHUI = hsv_to_rgb(hui); - RGB rgbHUD = hsv_to_rgb(hud); - RGB rgbSAI = hsv_to_rgb(sai); - RGB rgbSAD = hsv_to_rgb(sad); - RGB rgbVAI = hsv_to_rgb(vai); - RGB rgbVAD = hsv_to_rgb(vad); - rgb_matrix_set_color(65, 0xFF, 0xFF, 0xFF); // layer indicator - rgb_matrix_set_color(36, 0xFF, 0x00, 0x00); // MASBOOT - rgb_matrix_set_color(37, 0xFF, 0x00, 0x40); // REEPROM - rgb_matrix_set_color(37, 0xFF, 0x00, 0x40); // 60 - rgb_matrix_set_color(59, 0x00, 0x80, 0xFF); // KC_VOLU - rgb_matrix_set_color(34, 0x00, 0x80, 0xFF); - rgb_matrix_set_color(32, 0xFF, 0x00, 0x00); // KC_MUTE - rgb_matrix_set_color(24, 0xFF, 0x40, 0x00); // KC_MPRV - rgb_matrix_set_color(25, 0xFF, 0x40, 0x00); - - rgb_matrix_set_color(6, 0xFF, 0x80, 0x00); //RGB_MOD - rgb_matrix_set_color(48, 0xFF, 0x80, 0x00); - rgb_matrix_set_color(29, 0xFF, 0x80, 0x00); //RGB_MOD - rgb_matrix_set_color(30, 0xFF, 0x80, 0x00); - rgb_matrix_set_color(40, 0xFF, 0x40, 0x00); //RGB_TOG - rgb_matrix_set_color(4, rgbHUI.r, rgbHUI.g, rgbHUI.b); //RGB_HUI - rgb_matrix_set_color(46, rgbHUD.r, rgbHUD.g, rgbHUD.b); - rgb_matrix_set_color(3, rgbSAI.r, rgbSAI.g, rgbSAI.b); //RGB_SAI - rgb_matrix_set_color(45, rgbSAD.r, rgbSAD.g, rgbSAD.b); - rgb_matrix_set_color(2, rgbVAI.r, rgbVAI.g, rgbVAI.b); //RGB_VAI - rgb_matrix_set_color(44, rgbVAD.r, rgbVAD.g, rgbVAD.b); - rgb_matrix_set_color(35, rgb.r, rgb.g, rgb.b); // config display - rgb_matrix_set_color(5, 0x80, 0x80, 0x80); //RGB_SPI - rgb_matrix_set_color(47, 0x80, 0x80, 0x80); - rgb_matrix_set_color(67, 0x80, 0x80, 0x80); //RGB_SPI - rgb_matrix_set_color(33, 0x80, 0x80, 0x80); - rgb_matrix_set_color(26, 0xF0, 0x00, 0xFF); //MAS_MGT - rgb_matrix_set_color(27, 0x00, 0x02, 0xFF); //MAS_BLU - rgb_matrix_set_color(51, 0xFF, 0x00, 0x00); //MAS_RED - rgb_matrix_set_color(52, 0x00, 0x00, 0x00); //MAS_KEY - rgb_matrix_set_color(53, 0x00, 0xFF, 0xF7); //MAS_CYN - rgb_matrix_set_color(61, 0xFF, 0xDA, 0x00); //MAS_YEL - rgb_matrix_set_color(62, 0x00, 0xFF, 0x01); //MAS_GRN - rgb_matrix_set_color(63, 0xFF, 0xA5, 0x18); //MAS_CRM - rgb_matrix_set_color(54, 0x81, 0x3C, 0xFF); //MAS_PRP - rgb_matrix_set_color(28, 0xFF, 0xFF, 0xFF); //MAS_WHT - } - break; - } - } - return false; -} - -bool process_record_user(uint16_t keycode, keyrecord_t* record) -{ - static uint32_t key_timer; - - switch (keycode) { - case REBOOT: - if (record->event.pressed) { - key_timer = timer_read32(); - } else { - if (timer_elapsed32(key_timer) >= 500) { - reset_keyboard(); - } - } - - return false; - - case REEPROM: - if (record->event.pressed) { - key_timer = timer_read32(); - } else { - if (timer_elapsed32(key_timer) >= 500) { - eeconfig_init(); - } - } - - return false; - - case MAS_CRM: - if (record->event.pressed) { - rgb_matrix_sethsv(32, 160, 255); - } - - return false; - - case MAS_PRP: - if (record->event.pressed) { - rgb_matrix_sethsv(192, 112, 255); - } - - return false; - - case MAS_RED: - if (record->event.pressed) { - rgb_matrix_sethsv(0, 255, 255); - } - - return false; - - case MAS_GRN: - if (record->event.pressed) { - rgb_matrix_sethsv(88, 255, 255); - } - - return false; - - case MAS_BLU: - if (record->event.pressed) { - rgb_matrix_sethsv(168, 255, 255); - } - - return false; - - case MAS_CYN: - if (record->event.pressed) { - rgb_matrix_sethsv(128, 255, 255); - } - - return false; - - case MAS_MGT: - if (record->event.pressed) { - rgb_matrix_sethsv(216, 255, 255); - } - - return false; - - case MAS_YEL: - if (record->event.pressed) { - rgb_matrix_sethsv(40, 255, 255); - } - - return false; - - case MAS_KEY: - if (record->event.pressed) { - rgb_matrix_sethsv(0, 0, 0); - } - - return false; - - case MAS_WHT: - if (record->event.pressed) { - rgb_matrix_sethsv(128, 0, 255); - } - - return false; - - default: - return true; - } -} diff --git a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk b/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk deleted file mode 100644 index 29afe8cd03..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/matthewrobo/rules.mk +++ /dev/null @@ -1,5 +0,0 @@ -NKRO_ENABLE = yes # USB Nkey Rollover -AUTO_SHIFT_ENABLE = yes # Auto Shift -# VELOCIKEY_ENABLE = yes - -LTO_ENABLE = yes diff --git a/keyboards/dztech/dz65rgb/keymaps/pagondel/keymap.c b/keyboards/dztech/dz65rgb/keymaps/pagondel/keymap.c deleted file mode 100644 index ae7e29c837..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/pagondel/keymap.c +++ /dev/null @@ -1,65 +0,0 @@ -/* Copyright 2020 pagondel - * - * 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/>. - */ - -#include QMK_KEYBOARD_H - -enum layers { - _BL, - _FL, -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Keymap _BL: (Base Layer) Default Layer - * ,-----------------------------------------------------------------------------. - * |Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp |~ ` | - * |-----------------------------------------------------------------------------| - * |Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |Del | - * |-----------------------------------------------------------------------------| - * |FN | A | S | D | F | G | H | J | K | L | ; | ' |Return |PgUp| - * |-----------------------------------------------------------------------------| - * |Shift | Z | X | C | V | B | N | M | , | . | / |Shift | Up |PgDn| - * |-----------------------------------------------------------------------------| - * |Ctrl |Win |Alt | Space |Alt | FN |Ctrl |Lef |Dow |Rig | - * `-----------------------------------------------------------------------------' - */ - [_BL] = LAYOUT_65_ansi( - 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_BSPC, 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_BSLS, KC_DEL, - MO(1), 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_PGUP, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_PGDN, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - /* Keymap _FL: Function Layer - * ,-----------------------------------------------------------------------------. - * |Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 |F10 |F11 |F12 |DEL |PNTS| - * |-----------------------------------------------------------------------------| - * | |RgbT|RgbM|Hue+|Hue-|Sat+|Sat-|BR+ |BR- | | |SLCK|Paus|RST | | - * |-----------------------------------------------------------------------------| - * | |Eff+|Eff-| | | | | | | | | |EEP RST | | - * |-----------------------------------------------------------------------------| - * |Shift | | | | | |NK T|Mute|Vol-|Vol+| | |PgUp| | - * |-----------------------------------------------------------------------------| - * | | | | Play | | | |Home|PgDn|End | - * `-----------------------------------------------------------------------------' - */ - [_FL] = LAYOUT_65_ansi( - KC_ESC, 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_DEL, KC_PSCR, - _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, KC_SCRL, KC_PAUS, QK_BOOT, _______, - _______, RGB_SPI, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, _______, EE_CLR, _______, - KC_LSFT, _______, _______, _______, _______, _______, NK_TOGG, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, KC_PGUP, _______, - _______, _______, _______, KC_MPLY, _______, _______, _______, KC_HOME, KC_VOLD, KC_END - ) -}; diff --git a/keyboards/dztech/dz65rgb/keymaps/pagondel/readme.md b/keyboards/dztech/dz65rgb/keymaps/pagondel/readme.md deleted file mode 100644 index 8f55ce428a..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/pagondel/readme.md +++ /dev/null @@ -1,35 +0,0 @@ -# pagondel's DZ65RGB v2 layout - -``` - Keymap Default Layer - ,-----------------------------------------------------------------------------. - |Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp |~ ` | - |-----------------------------------------------------------------------------| - |Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |Del | - |-----------------------------------------------------------------------------| - |FN | A | S | D | F | G | H | J | K | L | ; | ' |Return |PgUp| - |-----------------------------------------------------------------------------| - |Shift | Z | X | C | V | B | N | M | , | . | / |Shift | Up |PgDn| - |-----------------------------------------------------------------------------| - |Ctrl |Win |Alt | Space |Alt | FN |Ctrl |Lef |Dow |Rig | - `-----------------------------------------------------------------------------' -``` - -``` - Keymap Function Layer - ,-----------------------------------------------------------------------------. - |Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 |F10 |F11 |F12 |DEL |PNTS| - |-----------------------------------------------------------------------------| - | |RgbT|RgbM|Hue+|Hue-|Sat+|Sat-|BR+ |BR- | | |SLCK|Paus|RST | | - |-----------------------------------------------------------------------------| - | |Eff+|Eff-| | | | | | | | | |EEP RST | | - |-----------------------------------------------------------------------------| - |Shift | | | | | |NK T|Mute|Vol-|Vol+| | |PgUp| | - |-----------------------------------------------------------------------------| - | | | | Play | | | |Home|PgDn|End | - `-----------------------------------------------------------------------------' -``` - -### Build layout - -```qmk compile -kb dztech/dz65rgb/v2 -km pagondel``` diff --git a/keyboards/dztech/dz65rgb/keymaps/sbennett13/config.h b/keyboards/dztech/dz65rgb/keymaps/sbennett13/config.h deleted file mode 100644 index 2d4559fadd..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/sbennett13/config.h +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2021 Scott Bennett (@SBennett13) -// SPDX-License-Identifier: GPL-2.0-or-later -#pragma once - -#define NO_MUSIC_MODE -#define FORCE_NKRO - -// I don't use a bunch of layers -#define LAYER_STATE_8BIT - -// Disable the RGB Light (underglow) stuff -#undef RBGLIGHT_ANIMATIONS -#undef RBGLIGHT_EFFECT_BREATHING -#undef RBGLIGHT_EFFECT_RAINBOW_MOOD -#undef RBGLIGHT_EFFECT_RAINBOW_SWIRL -#undef RBGLIGHT_EFFECT_SNAKE -#undef RBGLIGHT_EFFECT_KNIGHT -#undef RBGLIGHT_EFFECT_CHRISTMAS -#undef RBGLIGHT_EFFECT_STATIC_GRADIENT -#undef RBGLIGHT_EFFECT_RGB_TEST -#undef RBGLIGHT_EFFECT_ALTERNATING -#undef RBGLIGHT_EFFECT_TWINKLE - -// No Cherry MX Lock switch -#undef LOCKING_SUPPORT_ENABLE -#undef LOCKING_RESYNC_ENABLE - -// No oneshot (Active until another key hit) -#define NO_ACTION_ONESHOT - -// Remove some RGB -#undef ENABLE_RGB_MATRIX_ALPHAS_MODS -#undef ENABLE_RGB_MATRIX_BREATHING -#undef ENABLE_RGB_MATRIX_BAND_VAL -#undef ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -#undef ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -#undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL -#undef ENABLE_RGB_MATRIX_PIXEL_FLOW -#undef ENABLE_RGB_MATRIX_PIXEL_RAIN -#undef ENABLE_RGB_MATRIX_RAINDROPS -#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -#undef ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -#undef ENABLE_RGB_MATRIX_SOLID_SPLASH diff --git a/keyboards/dztech/dz65rgb/keymaps/sbennett13/keymap.c b/keyboards/dztech/dz65rgb/keymaps/sbennett13/keymap.c deleted file mode 100644 index 34977bdbe3..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/sbennett13/keymap.c +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2021 Scott Bennett (@SBennett13) -// SPDX-License-Identifier: GPL-2.0-or-later -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_65_ansi( - 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_BSPC, KC_HOME, - 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_BSLS, KC_PGUP, - CTL_T(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_ENT, KC_PGDN, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, - KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT - ), - [1] = LAYOUT_65_ansi( - 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_DEL, KC_PSCR, - _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, KC_SCRL, KC_PAUS, QK_BOOT, KC_PGUP, - CTL_T(KC_CAPS), RGB_SPI, RGB_SPD, _______, _______, _______, _______, _______, _______, _______, _______, _______, EE_CLR, KC_PGDN, - KC_LSFT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_VOLU, KC_MUTE, - _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT - ) -}; diff --git a/keyboards/dztech/dz65rgb/keymaps/sbennett13/readme.md b/keyboards/dztech/dz65rgb/keymaps/sbennett13/readme.md deleted file mode 100644 index e5535e9ffc..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/sbennett13/readme.md +++ /dev/null @@ -1,50 +0,0 @@ -# sbennett13 DZ65RGB v2 layout - -Copyright 2022 Scott Bennett scottbennett027@gmail @SBennett13 - -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/>. - -```text - Keymap Default Layer - ,-----------------------------------------------------------------------------. - |Esc ~| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = |Backsp|Home| - |-----------------------------------------------------------------------------| - |Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |PgUp| - |-----------------------------------------------------------------------------| - |FN | A | S | D | F | G | H | J | K | L | ; | ' |Return |PgDn| - |-----------------------------------------------------------------------------| - |Shift | Z | X | C | V | B | N | M | , | . | / |Shift | Up | End| - |-----------------------------------------------------------------------------| - |Ctrl |Win |Alt | Space |Alt | FN |Ctrl |Lef |Dow |Rig | - `-----------------------------------------------------------------------------' -``` - -```text - Keymap Function Layer - ,-----------------------------------------------------------------------------. - | `~ | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 |F10 |F11 |F12 |DEL |PNTS| - |-----------------------------------------------------------------------------| - | |RgbT|RgbM|Hue+|Hue-|Sat+|Sat-|BR+ |BR- | | |SLCK|Paus|RST | | - |-----------------------------------------------------------------------------| - | |Eff+|Eff-| | | | | | | | | |EEP RST | | - |-----------------------------------------------------------------------------| - | | | | | | | | | | | | |Vol+|MUTE| - |-----------------------------------------------------------------------------| - | | | | | | | |LAST|Vol-|NEXT| - `-----------------------------------------------------------------------------' -``` - -### Build layout - -```qmk compile -kb dztech/dz65rgb/v2 -km sbennett13``` diff --git a/keyboards/dztech/dz65rgb/keymaps/sbennett13/rules.mk b/keyboards/dztech/dz65rgb/keymaps/sbennett13/rules.mk deleted file mode 100644 index ed0a53416b..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/sbennett13/rules.mk +++ /dev/null @@ -1,23 +0,0 @@ -# Load Time Optimization -LTO_ENABLE = yes - -# Space Cadet (Shift/Ctrl/Alt tapping for parenthesis) -SPACE_CADET_ENABLE = no - -# Mouse keys bindable to keyboard -MOUSEKEY_ENABLE = no - -# Console -CONSOLE_ENABLE = no - -# Command (Change keyboard behavior without having to flash) -COMMAND_ENABLE = no - -# Magic QMK keycodes -MAGIC_ENABLE = no - -# No audio stuff -MUSIC_ENABLE = no - -# No WPM -WPM_ENABLE = no
\ No newline at end of file diff --git a/keyboards/dztech/dz65rgb/keymaps/yuannan/config.h b/keyboards/dztech/dz65rgb/keymaps/yuannan/config.h deleted file mode 100644 index e0c5522cb0..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/yuannan/config.h +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright 2021 DZTECH <moyi4681@live.cn> - * - * 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/>. - */ - -#pragma once - -#undef ENABLE_RGB_MATRIX_PIXEL_FLOW -#undef ENABLE_RGB_MATRIX_PIXEL_FRACTAL -#undef ENABLE_RGB_MATRIX_PIXEL_RAIN -#undef ENABLE_RGB_MATRIX_RAINDROPS -#undef ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS - -#undef RGB_MATRIX_DEFAULT_MODE -#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_OUT_IN_DUAL - -#define RGB_MATRIX_HUE_STEP 8 -#define RGB_MATRIX_SAT_STEP 8 -#define RGB_MATRIX_VAL_STEP 8 -#define RGB_MATRIX_SPD_STEP 8 - -#define MOUSEKEY_DELAY 0 -#define MOUSEKEY_INTERVAL 1 -#define MOUSEKEY_MOVE_DELTA 1 -#define MOUSEKEY_MAX_SPEED 25 -#define MOUSEKEY_TIME_TO_MAX 255 -#define MOUSEKEY_WHEEL_DELAY 0 -#define MOUSEKEY_WHEEL_INTERVAL 100 -#define MOUSEKEY_WHEEL_MAX_SPEED 100 -#define MOUSEKEY_WHEEL_TIME_TO_MAX 100 diff --git a/keyboards/dztech/dz65rgb/keymaps/yuannan/keymap.c b/keyboards/dztech/dz65rgb/keymaps/yuannan/keymap.c deleted file mode 100644 index 87ea995a9a..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/yuannan/keymap.c +++ /dev/null @@ -1,212 +0,0 @@ -/* Copyright 2021 Yuannan (https://github.com/yuannan) - * - * 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/>. -*/ - -#include QMK_KEYBOARD_H - -enum custom_keycodes { - AUTOCLICK_TOGGLE = SAFE_RANGE, - AUTO_BURST, - RAPID_BURST, - INC_CLICK_SPEED, - DEC_CLICK_SPEED, - DEL_LINE, - DEL_HOME, - DEL_END -}; - -enum my_layers { - _ALPHA_LAYER, - _VIM_EDITING_LAYER, - _MOUSE_LAYER, - _HYPER_LAYER -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [_ALPHA_LAYER] = LAYOUT_65_ansi( - QK_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, KC_BSPC, KC_HOME, - 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_BSLS, KC_PGUP, - KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOTE, KC_ENTER, KC_PGDN, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RSFT, KC_UP, KC_END, - KC_CAPS,KC_LGUI,TL_LOWR, KC_SPACE, TL_UPPR, KC_LALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RIGHT - ), - [_VIM_EDITING_LAYER] = LAYOUT_65_ansi( - KC_GRAVE, 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_DELETE, KC_INSERT, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DEL_HOME, KC_HOME, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SCRL, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DEL_LINE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_TRNS, KC_TRNS, KC_MPLY, KC_PAUSE, - KC_TRNS, AUTOCLICK_TOGGLE, KC_TRNS, AUTO_BURST,RAPID_BURST, KC_TRNS, DEL_END, KC_END, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLU, KC_PSCR, - DEC_CLICK_SPEED,INC_CLICK_SPEED, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_VOLD, KC_MNXT - ), - [_MOUSE_LAYER] = LAYOUT_65_ansi( - KC_GRAVE, 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_ACL0, KC_BTN1, KC_MS_U, KC_BTN2, KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN4, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_ACL1, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, KC_TRNS, KC_WH_L, KC_WH_D, KC_WH_U, KC_WH_R, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_ACL2, AUTOCLICK_TOGGLE, KC_BTN3, AUTO_BURST, RAPID_BURST, KC_TRNS, KC_TRNS, KC_BTN5, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - DEC_CLICK_SPEED,INC_CLICK_SPEED,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS - ), - [_HYPER_LAYER] = LAYOUT_65_ansi( - DM_RSTP, DM_REC1, DM_REC2, 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_NO, DM_PLY1, DM_PLY2, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_LSFT, KC_NO, KC_NO, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, RGB_MOD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, RGB_TOG, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS - ) -}; - -#define CLICKSPEEDS 5 -const uint16_t clickspeed_sets[CLICKSPEEDS] = {1000, 100, 50, 20, 1}; -uint16_t clickspeed_set = CLICKSPEEDS - 1; -deferred_token autoclick_token = INVALID_DEFERRED_TOKEN; -bool rapid = false; - -void decrement_click_speed(void){ - clickspeed_set += CLICKSPEEDS - 1; - clickspeed_set %= CLICKSPEEDS; -} - -void increment_click_speed(void){ - clickspeed_set ++; - clickspeed_set %= CLICKSPEEDS; -} - -uint32_t autoclick_callback(uint32_t trigger_time, void *cb_arg){ - tap_code(KC_BTN1); - - return rapid ? 1 : clickspeed_sets[clickspeed_set]; -} - -void start_autoclicker(void){ - autoclick_token = defer_exec(1, autoclick_callback, NULL); -} - -void stop_autoclicker(void){ - cancel_deferred_exec(autoclick_token); - autoclick_token = INVALID_DEFERRED_TOKEN; -} - -// Custom process key to allow for custom keycodes -bool process_record_user(uint16_t keycode, keyrecord_t *record){ - switch (keycode) { - case AUTOCLICK_TOGGLE: - if (record->event.pressed) { - if (autoclick_token == INVALID_DEFERRED_TOKEN){ - start_autoclicker(); - } else{ - stop_autoclicker(); - } - } - break; - case AUTO_BURST: - if (record->event.pressed && (autoclick_token == INVALID_DEFERRED_TOKEN)) { - start_autoclicker(); - } else if (autoclick_token != INVALID_DEFERRED_TOKEN){ - stop_autoclicker(); - } - break; - case RAPID_BURST: - if (record->event.pressed){ - rapid = true; - start_autoclicker(); - } else{ - rapid = false; - stop_autoclicker(); - } - break; - case INC_CLICK_SPEED: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RSFT)){ - decrement_click_speed(); - } else{ - increment_click_speed(); - } - } - break; - case DEC_CLICK_SPEED: - if (record->event.pressed){ - if (get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RSFT)){ - increment_click_speed(); - } else{ - decrement_click_speed(); - } - } - break; - case DEL_LINE: - if(record->event.pressed){ - SEND_STRING(SS_TAP(X_HOME) SS_LSFT(SS_TAP(X_END)) SS_TAP(X_DELETE)); - } - break; - case DEL_HOME: - if(record->event.pressed){ - SEND_STRING(SS_LSFT(SS_TAP(X_HOME)) SS_TAP(X_DELETE)); - } - break; - case DEL_END: - if(record->event.pressed){ - SEND_STRING(SS_LSFT(SS_TAP(X_END)) SS_TAP(X_DELETE)); - } - break; - case RGB_TOG: - if(record->event.pressed){ - if (!(get_mods() & MOD_BIT(KC_LSFT) || get_mods() & MOD_BIT(KC_RSFT))){ - if(rgb_matrix_get_val() < 128){ - rgb_matrix_sethsv(rgb_matrix_get_hue(), rgb_matrix_get_sat(), 255); - } else{ - rgb_matrix_sethsv(rgb_matrix_get_hue(), rgb_matrix_get_sat(), 0); - } - return false; - } - } - break; - } - - return true; -}; - -RGB get_inverted_RGB(void){ - HSV current_HSV = rgb_matrix_get_hsv(); - current_HSV.h = 255 - current_HSV.h; - current_HSV.s = 255; - current_HSV.v = 255; - - return hsv_to_rgb(current_HSV); -} - -// Move Caps indicator to the ctrl key where it belongs -bool rgb_matrix_indicators_user(void){ - RGB inverted_RGB = get_inverted_RGB(); - if (host_keyboard_led_state().caps_lock){ - rgb_matrix_set_color(58, inverted_RGB.r, inverted_RGB.g, inverted_RGB.b); - } - return false; -} - -// show coloured indicator for layers with a keybind -bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max){ - uint8_t layer = get_highest_layer(layer_state); - if (layer > 0) { - RGB inverted_RGB = get_inverted_RGB(); - for (uint8_t row = 0; row < MATRIX_ROWS; ++row) { - for (uint8_t col = 0; col < MATRIX_COLS; ++col) { - uint8_t index = g_led_config.matrix_co[row][col]; - - if (index >= led_min && index <= led_max && index != NO_LED && - keymap_key_to_keycode(layer, (keypos_t){col,row}) > KC_TRNS) { - rgb_matrix_set_color(index, inverted_RGB.r, inverted_RGB.g, inverted_RGB.b); - } - } - } - } - return false; -} diff --git a/keyboards/dztech/dz65rgb/keymaps/yuannan/readme.md b/keyboards/dztech/dz65rgb/keymaps/yuannan/readme.md deleted file mode 100644 index c6768aceec..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/yuannan/readme.md +++ /dev/null @@ -1,88 +0,0 @@ -[DZ65RGB/v3 Yuannan's Layout Imgur Album](https://imgur.com/a/BI2RjgE) - -![Alpha](https://i.imgur.com/ikqvrtF.png) -![Vim Editing Layer](https://i.imgur.com/hoBvSRR.png) -![Mouse and Autoclicker](https://i.imgur.com/QWmWaWY.png) -![Hyper functions and RGB Layer](https://i.imgur.com/Zm6Tf6p.png) - -# Yuannan's DZ65 Custom Profile. Autoclicker, Vim, and more! - -## Features - -1. Much better mouse support. Now able to: - - Move mouse around with 3 levels of acceleration - - Click and nav using mouse buttons 1-5 - - Mouse scroll in all 4 directions, autoclick with 5 different levels of speed! - - Increase or Decrease the autoclick speed from the preset array of {500, 50, 20, 10, 1} clicks per second \*(Read Notes). Press Shift while using the Increase or Decrease button to do the opposite. Designed to work with other keymaps and keyboards! -2. Ctrl and Caps swapped. The new indicator is dynamically colored and has been moved to the CTRL key to reflect the keymap. -3. Improved navigation via Vim like keys. -4. Dynamic Macros now enabled! -5. Custom Editing Macros such as: - - Deleting entire line - - Deleting from cursor to start of line - - Deleting form cursor to end of line -6. VIA support. -7. Improved granularity of the RGB Matrix. Now with steps of 8/256, which is 32 steps! -8. The default toggle for RGB now sets the matrix to be on low brightness. Why? If the matrix is completely toggled off then the indicators for Caps Locks and FN are also completely off. You can completely turn it off by pressing shift while processing the "RGB_TOG" keycode. (It is {FN1+FN2+Shift+Space} on this keymap.) -9. Disabled some effects to free up more space. - -### Notes - -#### Note Autoclicker Speed - -The click events are now programmed with the new Deferred Execution API (https://docs.qmk.fm/#/custom_quantum_functions?id=deferred-execution). - -While it's programmed to input with a delay of 1ms (500CPS), the result will vary depending on your board and host. This is a massive improvment compared to timer based events. This new API is much faster and will work with less interference from other tasks on the board. - -#### Note Autoclick Linux libinput (Linux autoclicker not working) - -Linux's input driver (libinput) has a debounce feature. This is useful in normal usage as a person cannot feasibly click more than 20CPS. However when the keyboard tries to input 50+CPS and sometimes up to ~500CPS this is a problem. - -Create a file at "/etc/libinput/local-overrides.quirks" with the contents: - - [Never Debounce] - MatchUdevType=mouse - ModelBouncingKeys=1 - -This disables the debounce feature for libnput. This maybe be different if you use evdev, On Arch Linux the driver packages are {"libinput", "xf86-input-libinput"} compared to {"libevdev", "xf86-input-evdev"}. I have {"libinput", "xf86-input-libinput"} installed. In addition I have {"libevdev"} installed as a dependency of other packages. You maybe need to change the driver for your device if you have both installed. For me it was working just fine. Check what driver your xsession currently is utilizing with: - - $cat /var/log/Xorg.0.log | grep libinput - -If it is using libinput then it will show contents. Otherwise search for "evdev". - -#### Still not working? (Linux) - -Check if the events are reaching your OS with either: - - $evtest /dev/input/by-id/YOUR_KEYBOARD - -or - - $cat /dev/input/by-id/YOUR_KEYBOARD - -It should end in `event-mouse`. In my case it was `/dev/input/by-id/usb-DZTECH_DZ65RGBV3-if02-event-mouse` which was a symlink to `/dev/input/event12`. It **WILL** vary on your setup. - -The output will appear "garbled" as it's trying to interoperate the data stream into text. The underlying data is actually a struct of the form: - - struct input_event { - struct timeval time; - unsigned short type; - unsigned short code; - unsigned int value; - }; - -You can read more about it here (https://www.kernel.org/doc/Documentation/input/input.txt) - -If it has an output when you autoclick but do not receive it in your desktop then it's a driver issue. - -View libinput with: - - $libinput debug-events --device /dev/input/by-id/usb-DZTECH_DZ65RGBV3-if02-event-mouse --verbose - -If you experience "DEBOUNCE" events then it's a driver issue and should be able to be disabled with the above method, restart your display manager or just reboot afterwards. - -If you have any issues feel free to make bug report or pull request to me, QMK, or libinput. Please send logs along with any steps you have tried. - -#### ALT Position - -The physical Right_Alt is mapped as a Left_Alt. This is to ensure compatibility in legacy and programs which treat them differently. A key example would be the TTY system in Linux. diff --git a/keyboards/dztech/dz65rgb/keymaps/yuannan/rules.mk b/keyboards/dztech/dz65rgb/keymaps/yuannan/rules.mk deleted file mode 100644 index e98ba61c3a..0000000000 --- a/keyboards/dztech/dz65rgb/keymaps/yuannan/rules.mk +++ /dev/null @@ -1,5 +0,0 @@ -VIA_ENABLE = yes -LTO_ENABLE = yes -DYNAMIC_MACRO_ENABLE = yes -MOUSEKEY_ENABLE = yes -DEFERRED_EXEC_ENABLE = yes |