From 1063ff8bae565536f3ed379145a48d4ea97bc684 Mon Sep 17 00:00:00 2001 From: lokher Date: Fri, 5 Aug 2022 17:36:10 +0800 Subject: Remove Q1 and Q2 --- keyboards/keychron/q1/config.h | 108 ------------ keyboards/keychron/q1/q1.c | 35 ---- keyboards/keychron/q1/q1.h | 27 --- keyboards/keychron/q1/readme.md | 21 --- keyboards/keychron/q1/rev_0100/config.h | 31 ---- keyboards/keychron/q1/rev_0100/info.json | 91 ---------- .../keychron/q1/rev_0100/keymaps/default/keymap.c | 89 ---------- .../keychron/q1/rev_0100/keymaps/gtg465x/README.md | 21 --- .../keychron/q1/rev_0100/keymaps/gtg465x/config.h | 25 --- .../keychron/q1/rev_0100/keymaps/gtg465x/keymap.c | 102 ----------- .../q1/rev_0100/keymaps/gtg465x/keymap_user.h | 28 --- .../q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c | 71 -------- .../q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.h | 24 --- .../keychron/q1/rev_0100/keymaps/gtg465x/rules.mk | 6 - .../q1/rev_0100/keymaps/mkillewald/config.h | 23 --- .../q1/rev_0100/keymaps/mkillewald/keymap.c | 175 ------------------- .../q1/rev_0100/keymaps/mkillewald/keymap_user.h | 33 ---- .../q1/rev_0100/keymaps/mkillewald/readme.md | 54 ------ .../rev_0100/keymaps/mkillewald/rgb_matrix_user.c | 83 --------- .../rev_0100/keymaps/mkillewald/rgb_matrix_user.h | 26 --- .../q1/rev_0100/keymaps/mkillewald/rules.mk | 6 - .../keychron/q1/rev_0100/keymaps/teimor/config.h | 32 ---- .../keychron/q1/rev_0100/keymaps/teimor/keymap.c | 95 ---------- .../q1/rev_0100/keymaps/teimor/keymap_user.h | 48 ------ .../keychron/q1/rev_0100/keymaps/teimor/readme.md | 13 -- .../q1/rev_0100/keymaps/teimor/rgb_matrix_user.c | 91 ---------- .../q1/rev_0100/keymaps/teimor/rgb_matrix_user.h | 25 --- .../keychron/q1/rev_0100/keymaps/teimor/rules.mk | 14 -- .../rev_0100/keymaps/teimor/tap_dance_mac_caps.c | 50 ------ .../rev_0100/keymaps/teimor/tap_dance_mac_caps.h | 23 --- .../q1/rev_0100/keymaps/teimor/tap_dance_setup.c | 49 ------ .../q1/rev_0100/keymaps/teimor/tap_dance_setup.h | 38 ---- .../q1/rev_0100/keymaps/teimor/tap_dance_user.c | 28 --- .../rev_0100/keymaps/teimor/tap_dance_win_caps.c | 50 ------ .../rev_0100/keymaps/teimor/tap_dance_win_caps.h | 23 --- .../keychron/q1/rev_0100/keymaps/via/keymap.c | 107 ------------ .../keychron/q1/rev_0100/keymaps/via/rules.mk | 2 - keyboards/keychron/q1/rev_0100/readme.md | 1 - keyboards/keychron/q1/rev_0100/rev_0100.c | 143 --------------- keyboards/keychron/q1/rev_0100/rev_0100.h | 37 ---- keyboards/keychron/q1/rev_0100/rules.mk | 21 --- keyboards/keychron/q1/rev_0101/config.h | 37 ---- keyboards/keychron/q1/rev_0101/info.json | 191 --------------------- .../keychron/q1/rev_0101/keymaps/default/keymap.c | 90 ---------- .../keychron/q1/rev_0101/keymaps/via/keymap.c | 131 -------------- .../keychron/q1/rev_0101/keymaps/via/rules.mk | 2 - keyboards/keychron/q1/rev_0101/readme.md | 4 - keyboards/keychron/q1/rev_0101/rev_0101.c | 156 ----------------- keyboards/keychron/q1/rev_0101/rev_0101.h | 52 ------ keyboards/keychron/q1/rev_0101/rules.mk | 22 --- keyboards/keychron/q1/rev_0102/config.h | 31 ---- keyboards/keychron/q1/rev_0102/info.json | 99 ----------- .../keychron/q1/rev_0102/keymaps/default/keymap.c | 89 ---------- .../q1/rev_0102/keymaps/kubahorak/README.md | 16 -- .../q1/rev_0102/keymaps/kubahorak/config.h | 25 --- .../q1/rev_0102/keymaps/kubahorak/keymap.c | 66 ------- .../q1/rev_0102/keymaps/kubahorak/keymap_user.h | 28 --- .../rev_0102/keymaps/kubahorak/rgb_matrix_user.c | 75 -------- .../rev_0102/keymaps/kubahorak/rgb_matrix_user.h | 24 --- .../q1/rev_0102/keymaps/kubahorak/rules.mk | 6 - .../q1/rev_0102/keymaps/mkillewald_iso/config.h | 23 --- .../q1/rev_0102/keymaps/mkillewald_iso/keymap.c | 175 ------------------- .../rev_0102/keymaps/mkillewald_iso/keymap_user.h | 33 ---- .../q1/rev_0102/keymaps/mkillewald_iso/readme.md | 54 ------ .../keymaps/mkillewald_iso/rgb_matrix_user.c | 83 --------- .../keymaps/mkillewald_iso/rgb_matrix_user.h | 26 --- .../q1/rev_0102/keymaps/mkillewald_iso/rules.mk | 6 - .../keychron/q1/rev_0102/keymaps/via/keymap.c | 107 ------------ .../keychron/q1/rev_0102/keymaps/via/rules.mk | 2 - .../q1/rev_0102/keymaps/victorsavu3/config.h | 69 -------- .../q1/rev_0102/keymaps/victorsavu3/keymap.c | 152 ---------------- .../q1/rev_0102/keymaps/victorsavu3/readme.md | 4 - .../q1/rev_0102/keymaps/victorsavu3/rules.mk | 3 - keyboards/keychron/q1/rev_0102/readme.md | 1 - keyboards/keychron/q1/rev_0102/rev_0102.c | 144 ---------------- keyboards/keychron/q1/rev_0102/rev_0102.h | 37 ---- keyboards/keychron/q1/rev_0102/rules.mk | 21 --- keyboards/keychron/q2/chconf.h | 25 --- keyboards/keychron/q2/config.h | 121 ------------- keyboards/keychron/q2/halconf.h | 21 --- keyboards/keychron/q2/mcuconf.h | 22 --- keyboards/keychron/q2/q2.c | 33 ---- keyboards/keychron/q2/q2.h | 29 ---- keyboards/keychron/q2/readme.md | 19 -- keyboards/keychron/q2/rev_0110/config.h | 26 --- keyboards/keychron/q2/rev_0110/info.json | 82 --------- .../keychron/q2/rev_0110/keymaps/default/keymap.c | 94 ---------- .../keychron/q2/rev_0110/keymaps/ladduro/config.h | 25 --- .../keychron/q2/rev_0110/keymaps/ladduro/keymap.c | 96 ----------- .../q2/rev_0110/keymaps/ladduro/keymap_user.h | 27 --- .../keychron/q2/rev_0110/keymaps/ladduro/readme.md | 29 ---- .../q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c | 72 -------- .../q2/rev_0110/keymaps/ladduro/rgb_matrix_user.h | 25 --- .../keychron/q2/rev_0110/keymaps/ladduro/rules.mk | 5 - .../keychron/q2/rev_0110/keymaps/via/keymap.c | 112 ------------ .../keychron/q2/rev_0110/keymaps/via/rules.mk | 2 - keyboards/keychron/q2/rev_0110/readme.md | 1 - keyboards/keychron/q2/rev_0110/rev_0110.c | 123 ------------- keyboards/keychron/q2/rev_0110/rev_0110.h | 35 ---- keyboards/keychron/q2/rev_0110/rules.mk | 26 --- keyboards/keychron/q2/rev_0111/config.h | 33 ---- keyboards/keychron/q2/rev_0111/info.json | 159 ----------------- .../keychron/q2/rev_0111/keymaps/default/keymap.c | 94 ---------- .../keychron/q2/rev_0111/keymaps/via/keymap.c | 154 ----------------- .../keychron/q2/rev_0111/keymaps/via/rules.mk | 2 - keyboards/keychron/q2/rev_0111/readme.md | 5 - keyboards/keychron/q2/rev_0111/rev_0111.c | 137 --------------- keyboards/keychron/q2/rev_0111/rev_0111.h | 48 ------ keyboards/keychron/q2/rev_0111/rules.mk | 26 --- keyboards/keychron/q2/rev_0112/config.h | 26 --- keyboards/keychron/q2/rev_0112/info.json | 83 --------- .../keychron/q2/rev_0112/keymaps/default/keymap.c | 94 ---------- .../keychron/q2/rev_0112/keymaps/via/keymap.c | 112 ------------ .../keychron/q2/rev_0112/keymaps/via/rules.mk | 2 - keyboards/keychron/q2/rev_0112/readme.md | 1 - keyboards/keychron/q2/rev_0112/rev_0112.c | 124 ------------- keyboards/keychron/q2/rev_0112/rev_0112.h | 36 ---- keyboards/keychron/q2/rev_0112/rules.mk | 26 --- keyboards/keychron/q2/rev_0113/config.h | 33 ---- keyboards/keychron/q2/rev_0113/info.json | 161 ----------------- .../keychron/q2/rev_0113/keymaps/default/keymap.c | 94 ---------- .../keychron/q2/rev_0113/keymaps/dhertz/keymap.c | 94 ---------- .../keychron/q2/rev_0113/keymaps/dhertz/rules.mk | 1 - .../keychron/q2/rev_0113/keymaps/via/keymap.c | 154 ----------------- .../keychron/q2/rev_0113/keymaps/via/rules.mk | 2 - keyboards/keychron/q2/rev_0113/readme.md | 5 - keyboards/keychron/q2/rev_0113/rev_0113.c | 138 --------------- keyboards/keychron/q2/rev_0113/rev_0113.h | 48 ------ keyboards/keychron/q2/rev_0113/rules.mk | 26 --- 129 files changed, 7021 deletions(-) delete mode 100644 keyboards/keychron/q1/config.h delete mode 100644 keyboards/keychron/q1/q1.c delete mode 100644 keyboards/keychron/q1/q1.h delete mode 100644 keyboards/keychron/q1/readme.md delete mode 100644 keyboards/keychron/q1/rev_0100/config.h delete mode 100644 keyboards/keychron/q1/rev_0100/info.json delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/README.md delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/config.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/config.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap_user.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/readme.md delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rgb_matrix_user.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/mkillewald/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/config.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/keymap_user.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/readme.md delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/rgb_matrix_user.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_mac_caps.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_mac_caps.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_setup.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_setup.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_user.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_win_caps.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/teimor/tap_dance_win_caps.h delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0100/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0100/readme.md delete mode 100644 keyboards/keychron/q1/rev_0100/rev_0100.c delete mode 100644 keyboards/keychron/q1/rev_0100/rev_0100.h delete mode 100644 keyboards/keychron/q1/rev_0100/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0101/config.h delete mode 100644 keyboards/keychron/q1/rev_0101/info.json delete mode 100644 keyboards/keychron/q1/rev_0101/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0101/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0101/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0101/readme.md delete mode 100644 keyboards/keychron/q1/rev_0101/rev_0101.c delete mode 100644 keyboards/keychron/q1/rev_0101/rev_0101.h delete mode 100644 keyboards/keychron/q1/rev_0101/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0102/config.h delete mode 100644 keyboards/keychron/q1/rev_0102/info.json delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/README.md delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/config.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/keymap_user.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rgb_matrix_user.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/kubahorak/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/config.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/keymap_user.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/readme.md delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rgb_matrix_user.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/mkillewald_iso/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/victorsavu3/config.h delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/victorsavu3/keymap.c delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/victorsavu3/readme.md delete mode 100644 keyboards/keychron/q1/rev_0102/keymaps/victorsavu3/rules.mk delete mode 100644 keyboards/keychron/q1/rev_0102/readme.md delete mode 100644 keyboards/keychron/q1/rev_0102/rev_0102.c delete mode 100644 keyboards/keychron/q1/rev_0102/rev_0102.h delete mode 100644 keyboards/keychron/q1/rev_0102/rules.mk delete mode 100644 keyboards/keychron/q2/chconf.h delete mode 100644 keyboards/keychron/q2/config.h delete mode 100644 keyboards/keychron/q2/halconf.h delete mode 100644 keyboards/keychron/q2/mcuconf.h delete mode 100644 keyboards/keychron/q2/q2.c delete mode 100644 keyboards/keychron/q2/q2.h delete mode 100644 keyboards/keychron/q2/readme.md delete mode 100644 keyboards/keychron/q2/rev_0110/config.h delete mode 100644 keyboards/keychron/q2/rev_0110/info.json delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/config.h delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/keymap_user.h delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/readme.md delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.c delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/rgb_matrix_user.h delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/ladduro/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0110/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0110/readme.md delete mode 100644 keyboards/keychron/q2/rev_0110/rev_0110.c delete mode 100644 keyboards/keychron/q2/rev_0110/rev_0110.h delete mode 100644 keyboards/keychron/q2/rev_0110/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0111/config.h delete mode 100644 keyboards/keychron/q2/rev_0111/info.json delete mode 100644 keyboards/keychron/q2/rev_0111/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0111/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0111/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0111/readme.md delete mode 100644 keyboards/keychron/q2/rev_0111/rev_0111.c delete mode 100644 keyboards/keychron/q2/rev_0111/rev_0111.h delete mode 100644 keyboards/keychron/q2/rev_0111/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0112/config.h delete mode 100644 keyboards/keychron/q2/rev_0112/info.json delete mode 100644 keyboards/keychron/q2/rev_0112/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0112/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0112/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0112/readme.md delete mode 100644 keyboards/keychron/q2/rev_0112/rev_0112.c delete mode 100644 keyboards/keychron/q2/rev_0112/rev_0112.h delete mode 100644 keyboards/keychron/q2/rev_0112/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0113/config.h delete mode 100644 keyboards/keychron/q2/rev_0113/info.json delete mode 100644 keyboards/keychron/q2/rev_0113/keymaps/default/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0113/keymaps/dhertz/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0113/keymaps/dhertz/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0113/keymaps/via/keymap.c delete mode 100644 keyboards/keychron/q2/rev_0113/keymaps/via/rules.mk delete mode 100644 keyboards/keychron/q2/rev_0113/readme.md delete mode 100644 keyboards/keychron/q2/rev_0113/rev_0113.c delete mode 100644 keyboards/keychron/q2/rev_0113/rev_0113.h delete mode 100644 keyboards/keychron/q2/rev_0113/rules.mk (limited to 'keyboards') diff --git a/keyboards/keychron/q1/config.h b/keyboards/keychron/q1/config.h deleted file mode 100644 index de69b9e929..0000000000 --- a/keyboards/keychron/q1/config.h +++ /dev/null @@ -1,108 +0,0 @@ -/* Copyright 2021 @ Keychron(https://www.keychron.com) - * - * 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 . - */ - -#pragma once - -/* USB Device descriptor parameter */ -#define VENDOR_ID 0x3434 -#define MANUFACTURER Keychron -#define PRODUCT Keychron Q1 - -/* key matrix size */ -#define MATRIX_ROWS 6 -#define MATRIX_COLS 15 - -/* COL2ROW or ROW2COL */ -#define DIODE_DIRECTION ROW2COL - -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 - -/* RGB Matrix Driver Configuration */ -#define DRIVER_COUNT 2 -#define DRIVER_ADDR_1 0b1010000 -#define DRIVER_ADDR_2 0b1011111 - -/* DIP switch */ -#define DIP_SWITCH_MATRIX_GRID { {0,1} } - -/* Disable DIP switch in matrix data */ -#define MATRIX_MASKED - -/* NKRO */ -#define FORCE_NKRO - -/* Disable RGB lighting when PC is in suspend */ -#define RGB_DISABLE_WHEN_USB_SUSPENDED - -/* Allow VIA to edit lighting */ -#ifdef VIA_ENABLE -#define VIA_QMK_RGBLIGHT_ENABLE -#endif - -// RGB Matrix Animation modes. Explicitly enabled -// For full list of effects, see: -// https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects -// #define ENABLE_RGB_MATRIX_ALPHAS_MODS -// #define ENABLE_RGB_MATRIX_GRADIENT_UP_DOWN -// #define ENABLE_RGB_MATRIX_GRADIENT_LEFT_RIGHT -#define ENABLE_RGB_MATRIX_BREATHING -// #define ENABLE_RGB_MATRIX_BAND_SAT -// #define ENABLE_RGB_MATRIX_BAND_VAL -// #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_SAT -// #define ENABLE_RGB_MATRIX_BAND_PINWHEEL_VAL -// #define ENABLE_RGB_MATRIX_BAND_SPIRAL_SAT -// #define ENABLE_RGB_MATRIX_BAND_SPIRAL_VAL -#define ENABLE_RGB_MATRIX_CYCLE_ALL -#define ENABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT -#define ENABLE_RGB_MATRIX_CYCLE_UP_DOWN -#define ENABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON -#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN -#define ENABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL -#define ENABLE_RGB_MATRIX_CYCLE_PINWHEEL -#define ENABLE_RGB_MATRIX_CYCLE_SPIRAL -#define ENABLE_RGB_MATRIX_DUAL_BEACON -#define ENABLE_RGB_MATRIX_RAINBOW_BEACON -// #define ENABLE_RGB_MATRIX_RAINBOW_PINWHEELS -#define ENABLE_RGB_MATRIX_RAINDROPS -// #define ENABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS -// #define ENABLE_RGB_MATRIX_HUE_BREATHING -// #define ENABLE_RGB_MATRIX_HUE_PENDULUM -// #define ENABLE_RGB_MATRIX_HUE_WAVE -// #define ENABLE_RGB_MATRIX_PIXEL_RAIN -// #define ENABLE_RGB_MATRIX_PIXEL_FLOW -// #define ENABLE_RGB_MATRIX_PIXEL_FRACTAL -// enabled only if RGB_MATRIX_FRAMEBUFFER_EFFECTS is defined -#define ENABLE_RGB_MATRIX_TYPING_HEATMAP -#define ENABLE_RGB_MATRIX_DIGITAL_RAIN -// enabled only of RGB_MATRIX_KEYPRESSES or RGB_MATRIX_KEYRELEASES is defined -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS -#define ENABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS -#define ENABLE_RGB_MATRIX_SPLASH -#define ENABLE_RGB_MATRIX_MULTISPLASH -#define ENABLE_RGB_MATRIX_SOLID_SPLASH -#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH - -/* Allow VIA to edit lighting */ -#ifdef VIA_ENABLE -#define VIA_QMK_RGBLIGHT_ENABLE -#endif diff --git a/keyboards/keychron/q1/q1.c b/keyboards/keychron/q1/q1.c deleted file mode 100644 index a316c1fdcf..0000000000 --- a/keyboards/keychron/q1/q1.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2021 @ Keychron (https://www.keychron.com) - * - * 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 . - */ - -#include "q1.h" - - -const matrix_row_t matrix_mask[] = { - 0b0111111111111101, - 0b0111111111111111, - 0b0111111111111111, - 0b0111111111111111, - 0b0111111111111111, - 0b0111111111111111, -}; - -bool dip_switch_update_kb(uint8_t index, bool active) { - if (!dip_switch_update_user(index, active)) { return false;} - if (index == 0) { - default_layer_set(1UL << (active ? 2 : 0)); - } - return true; -} diff --git a/keyboards/keychron/q1/q1.h b/keyboards/keychron/q1/q1.h deleted file mode 100644 index cf6d196213..0000000000 --- a/keyboards/keychron/q1/q1.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright 2021 @ Keychron (https://www.keychron.com) - * - * 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 . - */ - -#pragma once - -#include "quantum.h" - -#if defined(KEYBOARD_keychron_q1_rev_0100) -# include "rev_0100.h" -#elif defined(KEYBOARD_keychron_q1_rev_0101) -# include "rev_0101.h" -#elif defined(KEYBOARD_keychron_q1_rev_0102) -# include "rev_0102.h" -#endif diff --git a/keyboards/keychron/q1/readme.md b/keyboards/keychron/q1/readme.md deleted file mode 100644 index d7b6af3b37..0000000000 --- a/keyboards/keychron/q1/readme.md +++ /dev/null @@ -1,21 +0,0 @@ -# Keychron Q1 - -![Keychron Q1](https://cdn.shopify.com/s/files/1/0059/0630/1017/t/5/assets/pf-823ebdc7--1073.jpg) - -A customizable 75% keyboard. - -* Keyboard Maintainer: [Keychron](https://github.com/keychron) -* Hardware Supported: Keychron Q1 -* Hardware Availability: [Keychron](https://www.keychron.com) - -Make example for this keyboard (after setting up your build environment): - - make keychron/q1/rev_0100:default - -Flashing example for this keyboard: - - make keychron/q1/rev_0100:default:flash - -**Reset Key**: Hold down the key located at *K00*, commonly programmed as *Esc* while plugging in the keyboard. - -See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/keychron/q1/rev_0100/config.h b/keyboards/keychron/q1/rev_0100/config.h deleted file mode 100644 index 435f386a59..0000000000 --- a/keyboards/keychron/q1/rev_0100/config.h +++ /dev/null @@ -1,31 +0,0 @@ -/* Copyright 2021 @ Keychron (https://www.keychron.com) - * - * 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 . - */ - -#pragma once - - -/* USB Device descriptor parameter */ -#define PRODUCT_ID 0x0100 -#define DEVICE_VER 0x0100 - -/* key matrix pins */ -#define MATRIX_ROW_PINS { D3, D2, B3, B2, B1, B0 } -#define MATRIX_COL_PINS { D5, D4, D6, D7, B4, B5, B6, C6, C7, F7, F6, F5, F4, F1, F0 } - -/* RGB Matrix Configuration */ -#define DRIVER_1_LED_TOTAL 59 -#define DRIVER_2_LED_TOTAL 23 -#define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL) \ No newline at end of file diff --git a/keyboards/keychron/q1/rev_0100/info.json b/keyboards/keychron/q1/rev_0100/info.json deleted file mode 100644 index dba3320ba7..0000000000 --- a/keyboards/keychron/q1/rev_0100/info.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "keyboard_name": "Keychron Q1", - "url": "https://github.com/Keychron", - "maintainer": "lalalademaxiya1", - "layouts": { - "LAYOUT_ansi_82": { - "layout": [{"label":"Esc", "x":0, "y":0}, - {"label":"F1", "x":1.25, "y":0}, - {"label":"F2", "x":2.25, "y":0}, - {"label":"F3", "x":3.25, "y":0}, - {"label":"F4", "x":4.25, "y":0}, - {"label":"F5", "x":5.5, "y":0}, - {"label":"F6", "x":6.5, "y":0}, - {"label":"F7", "x":7.5, "y":0}, - {"label":"F8", "x":8.5, "y":0}, - {"label":"F9", "x":9.75, "y":0}, - {"label":"F10", "x":10.75, "y":0}, - {"label":"F11", "x":11.75, "y":0}, - {"label":"F12", "x":12.75, "y":0}, - {"label":"Delete", "x":14, "y":0}, - {"label":"Insert", "x":15.25, "y":0}, - {"label":"~", "x":0, "y":1}, - {"label":"!", "x":1, "y":1}, - {"label":"@", "x":2, "y":1}, - {"label":"#", "x":3, "y":1}, - {"label":"$", "x":4, "y":1}, - {"label":"%", "x":5, "y":1}, - {"label":"^", "x":6, "y":1}, - {"label":"&", "x":7, "y":1}, - {"label":"*", "x":8, "y":1}, - {"label":"(", "x":9, "y":1}, - {"label":")", "x":10, "y":1}, - {"label":"_", "x":11, "y":1}, - {"label":"+", "x":12, "y":1}, - {"label":"Backspace", "x":13, "y":1, "w":2}, - {"label":"Page Up", "x":15.25, "y":1}, - {"label":"Tab", "x":0, "y":2, "w":1.5}, - {"label":"Q", "x":1.5, "y":2}, - {"label":"W", "x":2.5, "y":2}, - {"label":"E", "x":3.5, "y":2}, - {"label":"R", "x":4.5, "y":2}, - {"label":"T", "x":5.5, "y":2}, - {"label":"Y", "x":6.5, "y":2}, - {"label":"U", "x":7.5, "y":2}, - {"label":"I", "x":8.5, "y":2}, - {"label":"O", "x":9.5, "y":2}, - {"label":"P", "x":10.5, "y":2}, - {"label":"{", "x":11.5, "y":2}, - {"label":"}", "x":12.5, "y":2}, - {"label":"|", "x":13.5, "y":2, "w":1.5}, - {"label":"Page Down", "x":15.25, "y":2}, - {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, - {"label":"A", "x":1.75, "y":3}, - {"label":"S", "x":2.75, "y":3}, - {"label":"D", "x":3.75, "y":3}, - {"label":"F", "x":4.75, "y":3}, - {"label":"G", "x":5.75, "y":3}, - {"label":"H", "x":6.75, "y":3}, - {"label":"J", "x":7.75, "y":3}, - {"label":"K", "x":8.75, "y":3}, - {"label":"L", "x":9.75, "y":3}, - {"label":":", "x":10.75, "y":3}, - {"label":"\"", "x":11.75, "y":3}, - {"label":"Enter", "x":12.75, "y":3, "w":2.25}, - {"label":"Home", "x":15.25, "y":3}, - {"label":"Shift", "x":0, "y":4, "w":2.25}, - {"label":"Z", "x":2.25, "y":4}, - {"label":"X", "x":3.25, "y":4}, - {"label":"C", "x":4.25, "y":4}, - {"label":"V", "x":5.25, "y":4}, - {"label":"B", "x":6.25, "y":4}, - {"label":"N", "x":7.25, "y":4}, - {"label":"M", "x":8.25, "y":4}, - {"label":"<", "x":9.25, "y":4}, - {"label":">", "x":10.25, "y":4}, - {"label":"?", "x":11.25, "y":4}, - {"label":"Shift", "x":12.25, "y":4, "w":1.75}, - {"label":"\u2191", "x":14.25, "y":4.25}, - {"label":"Ctrl", "x":0, "y":5, "w":1.25}, - {"label":"Win", "x":1.25, "y":5, "w":1.25}, - {"label":"Alt", "x":2.5, "y":5, "w":1.25}, - {"x":3.75, "y":5, "w":6.25}, - {"label":"Alt", "x":10, "y":5}, - {"label":"Fn", "x":11, "y":5}, - {"label":"Ctrl", "x":12, "y":5}, - {"label":"\u2190", "x":13.25, "y":5.25}, - {"label":"\u2193", "x":14.25, "y":5.25}, - {"label":"\u2192", "x":15.25, "y":5.25}] - } - } -} diff --git a/keyboards/keychron/q1/rev_0100/keymaps/default/keymap.c b/keyboards/keychron/q1/rev_0100/keymaps/default/keymap.c deleted file mode 100644 index d1f71e9da6..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/default/keymap.c +++ /dev/null @@ -1,89 +0,0 @@ -/* Copyright 2021 @ Keychron (https://www.keychron.com) - * - * 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 . - */ - -#include QMK_KEYBOARD_H - -enum layers{ - MAC_BASE, - MAC_FN, - WIN_BASE, - WIN_FN -}; - -enum custom_keycodes { - KC_MISSION_CONTROL = SAFE_RANGE, - KC_LAUNCHPAD -}; - -#define KC_TASK LGUI(KC_TAB) -#define KC_FLXP LGUI(KC_E) -#define KC_MCTL KC_MISSION_CONTROL -#define KC_LPAD KC_LAUNCHPAD - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [MAC_BASE] = LAYOUT_ansi_82( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_INS, - 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_PGUP, - 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_PGDN, - 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_HOME, - 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_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), - - [MAC_FN] = LAYOUT_ansi_82( - KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, 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), - - [WIN_BASE] = LAYOUT_ansi_82( - 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_INS, - 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_PGUP, - 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_PGDN, - 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_HOME, - 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), - - [WIN_FN] = LAYOUT_ansi_82( - KC_TRNS, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, 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, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, 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) -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case KC_MISSION_CONTROL: - if (record->event.pressed) { - host_consumer_send(0x29F); - } else { - host_consumer_send(0); - } - return false; // Skip all further processing of this key - case KC_LAUNCHPAD: - if (record->event.pressed) { - host_consumer_send(0x2A0); - } else { - host_consumer_send(0); - } - return false; // Skip all further processing of this key - default: - return true; // Process all other keycodes normally - } -} diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/README.md b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/README.md deleted file mode 100644 index c2d5799bb8..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# gtg465x's Keychron Q1 keymap - -- On macOS, F3 opens Mission Control and F4 opens Launchpad without needing to configure shortcuts in System Preferences -- RGB lighting turns off when the computer sleeps -- Caps Lock and alpha keys turn red to indicate when Caps Lock is on -- When the Fn layer is active, RGB lighting turns off for keys that are not assigned - -## Changelog - -### 10/3/2021 - 1.0.3 - -- Feature: When the Fn layer is active, RGB lighting turns off for keys that are not assigned - -### 10/1/2021 - 1.0.2 - -- Added Caps Lock indicator (my implementation is different, but this was inspired by mkillewald) -- Mission Control and Launchpad custom keycodes are now defined using the VIA user keycodes range so they can be labeled properly in VIA - -### 9/28/2021 - 1.0.1 - -- Initial release diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/config.h b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/config.h deleted file mode 100644 index 5ac05d04c1..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/config.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2021 @ Grayson Carr - * - * 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 . - */ - -#pragma once - -/* RGB Matrix Configuration */ -#ifdef RGB_MATRIX_ENABLE -# define RGB_DISABLE_WHEN_USB_SUSPENDED -# define CAPS_LOCK_INDICATOR_COLOR RGB_RED -# define CAPS_LOCK_INDICATOR_LIGHT_ALPHAS -# define FN_LAYER_TRANSPARENT_KEYS_OFF -#endif diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap.c b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap.c deleted file mode 100644 index 7f806f6b45..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap.c +++ /dev/null @@ -1,102 +0,0 @@ -/* Copyright 2021 @ Grayson Carr - * - * 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 . - */ - -#include QMK_KEYBOARD_H -#include "keymap_user.h" -#ifdef RGB_MATRIX_ENABLE -# include "rgb_matrix_user.h" -#endif - -// clang-format off - -enum custom_keycodes { -#ifdef VIA_ENABLE - KC_MISSION_CONTROL = USER00, -#else - KC_MISSION_CONTROL = SAFE_RANGE, -#endif - KC_LAUNCHPAD -}; - -#define KC_MCTL KC_MISSION_CONTROL -#define KC_LPAD KC_LAUNCHPAD -#define KC_TASK LGUI(KC_TAB) -#define KC_FLXP LGUI(KC_E) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - -[MAC_BASE] = LAYOUT_ansi_82( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_INS, - 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_PGUP, - 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_PGDN, - 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_HOME, - 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_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), - -[MAC_FN] = LAYOUT_ansi_82( - KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, 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), - -[WIN_BASE] = LAYOUT_ansi_82( - 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_INS, - 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_PGUP, - 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_PGDN, - 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_HOME, - 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), - -[WIN_FN] = LAYOUT_ansi_82( - KC_TRNS, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, 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, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, 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) - -}; - -// clang-format on - -void matrix_init_user(void) { -#ifdef RGB_MATRIX_ENABLE - rgb_matrix_init_user(); -#endif -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case KC_MISSION_CONTROL: - if (record->event.pressed) { - host_consumer_send(0x29F); - } else { - host_consumer_send(0); - } - return false; // Skip all further processing of this key - case KC_LAUNCHPAD: - if (record->event.pressed) { - host_consumer_send(0x2A0); - } else { - host_consumer_send(0); - } - return false; // Skip all further processing of this key - default: - return true; // Process all other keycodes normally - } -} diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h deleted file mode 100644 index 728114d556..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/keymap_user.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright 2021 @ Grayson Carr - * - * 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 . - */ - -#pragma once - -// clang-format off - -enum layers { - MAC_BASE, - MAC_FN, - WIN_BASE, - WIN_FN -}; - -// clang-format on diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c deleted file mode 100644 index 9bc7231ece..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.c +++ /dev/null @@ -1,71 +0,0 @@ -/* Copyright 2021 @ Grayson Carr - * - * 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 . - */ - -#include QMK_KEYBOARD_H -#include "rgb_matrix_user.h" -#include "keymap_user.h" - -keypos_t led_index_key_position[DRIVER_LED_TOTAL]; - -void rgb_matrix_init_user(void) { - for (uint8_t row = 0; row < MATRIX_ROWS; row++) { - for (uint8_t col = 0; col < MATRIX_COLS; col++) { - uint8_t led_index = g_led_config.matrix_co[row][col]; - if (led_index != NO_LED) { - led_index_key_position[led_index] = (keypos_t){.row = row, .col = col}; - } - } - } -} - -void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { - uint8_t current_layer = get_highest_layer(layer_state); - switch (current_layer) { - case MAC_BASE: - case WIN_BASE: -#ifdef CAPS_LOCK_INDICATOR_COLOR - if (host_keyboard_led_state().caps_lock) { - rgb_matrix_set_color_by_keycode(led_min, led_max, current_layer, is_caps_lock_indicator, CAPS_LOCK_INDICATOR_COLOR); - } -#endif - break; - case MAC_FN: - case WIN_FN: -#ifdef FN_LAYER_TRANSPARENT_KEYS_OFF - rgb_matrix_set_color_by_keycode(led_min, led_max, current_layer, is_transparent, RGB_OFF); -#endif - break; - } -} - -void rgb_matrix_set_color_by_keycode(uint8_t led_min, uint8_t led_max, uint8_t layer, bool (*is_keycode)(uint16_t), uint8_t red, uint8_t green, uint8_t blue) { - for (uint8_t i = led_min; i < led_max; i++) { - uint16_t keycode = keymap_key_to_keycode(layer, led_index_key_position[i]); - if ((*is_keycode)(keycode)) { - rgb_matrix_set_color(i, red, green, blue); - } - } -} - -bool is_caps_lock_indicator(uint16_t keycode) { -#ifdef CAPS_LOCK_INDICATOR_LIGHT_ALPHAS - return (KC_A <= keycode && keycode <= KC_Z) || keycode == KC_CAPS; -#else - return keycode == KC_CAPS; -#endif -} - -bool is_transparent(uint16_t keycode) { return keycode == KC_TRNS; } diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.h b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.h deleted file mode 100644 index dead454167..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rgb_matrix_user.h +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright 2021 @ Grayson Carr - * - * 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 . - */ - -#pragma once - -void rgb_matrix_init_user(void); - -void rgb_matrix_set_color_by_keycode(uint8_t led_min, uint8_t led_max, uint8_t layer, bool (*is_keycode)(uint16_t), uint8_t red, uint8_t green, uint8_t blue); - -bool is_caps_lock_indicator(uint16_t keycode); -bool is_transparent(uint16_t keycode); diff --git a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rules.mk b/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rules.mk deleted file mode 100644 index 42ba38028d..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/gtg465x/rules.mk +++ /dev/null @@ -1,6 +0,0 @@ -VIA_ENABLE = yes -MOUSEKEY_ENABLE = no - -ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes) - SRC += rgb_matrix_user.c -endif diff --git a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/config.h b/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/config.h deleted file mode 100644 index bc9fe405c3..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/config.h +++ /dev/null @@ -1,23 +0,0 @@ -/* Copyright 2021 @ Mike Killewald - * - * 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 . - */ - -#pragma once - -#ifdef RGB_MATRIX_ENABLE -# define RGB_DISABLE_WHEN_USB_SUSPENDED -# define CAPS_LOCK_INDICATOR_COLOR RGB_RED -# define FN_LAYER_COLOR RGB_ORANGE -#endif \ No newline at end of file diff --git a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap.c b/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap.c deleted file mode 100644 index 937b20ee10..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap.c +++ /dev/null @@ -1,175 +0,0 @@ -/* Copyright 2021 @ Mike Killewald - * - * 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 . - */ - -#include QMK_KEYBOARD_H -#include "keymap_user.h" -#ifdef RGB_MATRIX_ENABLE -# include "rgb_matrix_user.h" -#endif - -// clang-format off - -typedef union { - uint32_t raw; - struct { - bool caps_lock_light_tab :1; - bool caps_lock_light_alphas :1; - bool fn_layer_transparent_keys_off :1; - bool fn_layer_color_enable :1; - }; -} user_config_t; - -user_config_t user_config; - -enum custom_keycodes { -#ifdef VIA_ENABLE - KC_MISSION_CONTROL = USER00, -#else - KC_MISSION_CONTROL = SAFE_RANGE, -#endif - KC_LAUNCHPAD, - KC_LIGHT_TAB_TOGGLE, - KC_LIGHT_ALPHAS_TOGGLE, - KC_FN_LAYER_TRANSPARENT_KEYS_TOGGLE, - KC_FN_LAYER_COLOR_TOGGLE -}; - -#define KC_MCTL KC_MISSION_CONTROL -#define KC_LPAD KC_LAUNCHPAD -#define KC_LTTOG KC_LIGHT_TAB_TOGGLE -#define KC_LATOG KC_LIGHT_ALPHAS_TOGGLE -#define KC_TKTOG KC_FN_LAYER_TRANSPARENT_KEYS_TOGGLE -#define KC_FCTOG KC_FN_LAYER_COLOR_TOGGLE -#define KC_TASK LGUI(KC_TAB) -#define KC_FLXP LGUI(KC_E) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - -[MAC_BASE] = LAYOUT_ansi_82( - KC_ESC, KC_BRID, KC_BRIU, KC_MCTL, KC_LPAD, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_DEL, KC_INS, - 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_PGUP, - 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_PGDN, - 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_HOME, - 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_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, MO(MAC_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), - -[MAC_FN] = LAYOUT_ansi_82( - KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_LTTOG, KC_LATOG, KC_TKTOG, KC_FCTOG, 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), - -[WIN_BASE] = LAYOUT_ansi_82( - 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_INS, - 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_PGUP, - 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_PGDN, - 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_HOME, - 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_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(WIN_FN),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT), - -[WIN_FN] = LAYOUT_ansi_82( - KC_TRNS, KC_BRID, KC_BRIU, KC_TASK, KC_FLXP, RGB_VAD, RGB_VAI, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, 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, - RGB_TOG, RGB_MOD, RGB_VAI, RGB_HUI, RGB_SAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, RGB_RMOD, RGB_VAD, RGB_HUD, RGB_SAD, RGB_SPD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_LTTOG, KC_LATOG, KC_TKTOG, KC_FCTOG, 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) - -}; - -// clang-format on - -void matrix_init_user(void) { -#ifdef RGB_MATRIX_ENABLE - rgb_matrix_init_user(); -#endif -} - -void keyboard_post_init_user(void) { - user_config.raw = eeconfig_read_user(); -} - -void eeconfig_init_user(void) { - user_config.raw = 0; - user_config.caps_lock_light_tab = false; - user_config.caps_lock_light_alphas = false; - user_config.fn_layer_transparent_keys_off = true; - user_config.fn_layer_color_enable = false; - eeconfig_update_user(user_config.raw); -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case KC_MISSION_CONTROL: - if (record->event.pressed) { - host_consumer_send(0x29F); - } else { - host_consumer_send(0); - } - return false; // Skip all further processing of this key - case KC_LAUNCHPAD: - if (record->event.pressed) { - host_consumer_send(0x2A0); - } else { - host_consumer_send(0); - } - return false; // Skip all further processing of this key - case KC_LIGHT_TAB_TOGGLE: - if (record->event.pressed) { - user_config.caps_lock_light_tab ^= 1; // bitwise xor to toggle status bit - eeconfig_update_user(user_config.raw); - } - return false; // Skip all further processing of this key - case KC_LIGHT_ALPHAS_TOGGLE: - if (record->event.pressed) { - user_config.caps_lock_light_alphas ^= 1; - eeconfig_update_user(user_config.raw); - } - return false; // Skip all further processing of this key - case KC_FN_LAYER_TRANSPARENT_KEYS_TOGGLE: - if (record->event.pressed) { - user_config.fn_layer_transparent_keys_off ^= 1; - eeconfig_update_user(user_config.raw); - } - return false; // Skip all further processing of this key - case KC_FN_LAYER_COLOR_TOGGLE: - if (record->event.pressed) { - user_config.fn_layer_color_enable ^= 1; - eeconfig_update_user(user_config.raw); - } - return false; // Skip all further processing of this key - default: - return true; // Process all other keycodes normally - } -} - -bool get_caps_lock_light_tab(void) { - return user_config.caps_lock_light_tab; -} - -bool get_caps_lock_light_alphas(void) { - return user_config.caps_lock_light_alphas; -} - -bool get_fn_layer_transparent_keys_off(void) { - return user_config.fn_layer_transparent_keys_off; -} - -bool get_fn_layer_color_enable(void) { - return user_config.fn_layer_color_enable; -} \ No newline at end of file diff --git a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap_user.h b/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap_user.h deleted file mode 100644 index 87b1baf47f..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/keymap_user.h +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright 2021 @ Mike Killewald - * - * 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 . - */ - -#pragma once - -// clang-format off - -enum layers { - MAC_BASE, - MAC_FN, - WIN_BASE, - WIN_FN -}; - -// clang-format on - -bool get_caps_lock_light_tab(void); -bool get_caps_lock_light_alphas(void); -bool get_fn_layer_transparent_keys_off(void); -bool get_fn_layer_color_enable(void); \ No newline at end of file diff --git a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/readme.md b/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/readme.md deleted file mode 100644 index f8d5de012f..0000000000 --- a/keyboards/keychron/q1/rev_0100/keymaps/mkillewald/readme.md +++ /dev/null @@ -1,54 +0,0 @@ -## mkillewald's Keychron Q1 keymap (ANSI rev_0100) v1.0.4 - -This keymap builds on the keymap by Grayson Carr (gtg465x) but adds a couple options. - -## Features: -- On macOS, F3 opens Mission Control and F4 opens Launchpad without needing to configure shortcuts in System Preferences -- RGB lighting turns off when the computer sleeps -- Caps Lock RGB indicator - - the Caps Lock key will light when Caps Lock is enabled with the following options: - - #define CAPS_LOCK_INDICATOR_COLOR [color] in config.h to set the backlight color used for the indicator when Caps Lock is enabled (default: red) - - Fn+Z will toggle lighting the TAB key when Caps Lock is enabled. This is useful with non backlit keycaps/legends. (default: off) - - Fn+X will toggle lighting all the alpha keys when Caps Lock is enabled. (default: off) - -- Dynamic Fn layer RGB indicator - - When the Fn key is held down, any keys defined on the Fn layer in this firmware or in VIA will be highlighted with the following options: - - #define FN_LAYER_COLOR [color] in config.h to set a static color for defined keys (default: orange) - - Fn+C will toggle turning off RGB for keys with no definition (default: RGB off) - - Fn+V will toggle lighting the defined Fn layer keys with the static color set with FN_LAYER_COLOR (default: static color off) - -- All custom keycodes can be moved to different keys in VIA by using the ANY key with the following keycodes: - - USER00 (default: F3) macOS Mission Control - - USER01 (default: F4) macOS Launchpad - - USER02 (default: Fn+Z) Caps Lock light Tab toggle - - USER03 (default: Fn+X) Caps Lock light alphas toggle - - USER04 (default: Fn+C) Fn layer non-defined keys RGB toggle - - USER05 (default: Fn+V) Fn layer defined keys static color toggle - -RGB must be toggled on for all indicators to function. If you do not want an RGB mode active but still want the indicators, toggle RGB on and turn the brightness all the way off. The indicators will remain at full brightness. - -Please make sure to save any customizations you have made in VIA to a .json file before flashing the firmware. Som