mirror of
https://github.com/qmk/qmk_firmware
synced 2024-12-22 08:26:21 +00:00
Fix some missing QMK_KEYBOARD_H includes in user keymaps (#20417)
This commit is contained in:
parent
cf5626e024
commit
54634e9263
@ -1,4 +1,4 @@
|
||||
#include "1up60rgb.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "1up60rgb.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "sweet16.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers {
|
||||
num,
|
||||
|
@ -14,7 +14,7 @@
|
||||
* 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 "hid_liber.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
// Helpful defines
|
||||
#define FN_CAPS LT(_FL, KC_CAPS)
|
||||
|
@ -14,7 +14,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "contra.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "keymap_german.h"
|
||||
|
||||
enum contra_layers {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "contra.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "action_layer.h"
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
@ -20,14 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
|
||||
#ifdef SUBPROJECT_v2
|
||||
#include "../../v2/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_protosplit
|
||||
#include "../../protosplit/config.h"
|
||||
#endif
|
||||
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
|
@ -19,11 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MASTER_LEFT
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
|
||||
#ifdef SUBPROJECT_v2
|
||||
#include "../../v2/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_protosplit
|
||||
#include "../../protosplit/config.h"
|
||||
#endif
|
||||
|
@ -1,6 +1,4 @@
|
||||
#include "deltasplit75.h"
|
||||
#include "action_layer.h"
|
||||
#include "eeconfig.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
|
@ -19,11 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MASTER_LEFT
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
|
||||
#ifdef SUBPROJECT_v2
|
||||
#include "../../v2/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_protosplit
|
||||
#include "../../protosplit/config.h"
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "scrabblepad.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include <stdlib.h>
|
||||
|
||||
static uint16_t keystroke;
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "ergodox_ez.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "version.h"
|
||||
|
||||
#define LONGPRESS_DELAY 180
|
||||
|
@ -3,7 +3,7 @@
|
||||
* https://github.com/qmk/qmk_firmware/blob/master/docs/keycodes.md
|
||||
*/
|
||||
|
||||
#include "gergoplex.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "g/keymap_combo.h"
|
||||
|
||||
enum {
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright 2022 Takeshi Noda (nodatk@gmail.com)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "twig50.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define LAL_NCV LALT_T(KC_LNG2)
|
||||
#define RAL_CNV RALT_T(KC_LNG1)
|
||||
|
@ -11,7 +11,6 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||
AUDIO_ENABLE = yes # Audio output
|
||||
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
|
||||
SPLIT_KEYBOARD = yes # Use shared split_common code
|
||||
SUBPROJECT_rev1 = yes
|
||||
|
||||
SRC += matrix.c
|
||||
DEBOUNCE_TYPE = sym_eager_pk
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "chocopad.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define _BASE 0
|
||||
#define _FN1 1
|
||||
|
@ -1,6 +1,4 @@
|
||||
#include "iris.h"
|
||||
#include "action_layer.h"
|
||||
#include "eeconfig.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
|
||||
|
@ -18,7 +18,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#define TAPPING_TERM 150
|
||||
#define EE_HANDS
|
||||
|
||||
#ifdef SUBPROJECT_rev1
|
||||
#include "../../rev1/config.h"
|
||||
#endif
|
||||
|
@ -21,15 +21,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#ifndef CONFIG_USER_H
|
||||
#define CONFIG_USER_H
|
||||
|
||||
#include "../../config.h"
|
||||
|
||||
/* Select hand configuration */
|
||||
|
||||
// #define MASTER_LEFT
|
||||
// #define MASTER_RIGHT
|
||||
#define EE_HANDS
|
||||
|
||||
#ifdef SUBPROJECT_rev2
|
||||
#ifdef KEYBOARD_lets_split_rev2
|
||||
/* RGB Underglow */
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
|
@ -19,14 +19,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define MASTER_LEFT
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
|
||||
#ifdef SUBPROJECT_rev1
|
||||
#include "../../rev1/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_rev2
|
||||
#include "../../rev2/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_rev2fliphalf
|
||||
#include "../../rev2fliphalf/config.h"
|
||||
#endif
|
||||
|
@ -41,14 +41,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#undef TAPPING_TOGGLE
|
||||
#define TAPPING_TOGGLE 2
|
||||
|
||||
#ifdef SUBPROJECT_rev1
|
||||
#include "../../rev1/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_rev2
|
||||
#include "../../rev2/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_rev2fliphalf
|
||||
#include "../../rev2fliphalf/config.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -20,17 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
// #define MASTER_RIGHT
|
||||
// #define EE_HANDS
|
||||
|
||||
|
||||
#ifdef SUBPROJECT_rev1
|
||||
#include "../../rev1/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_rev2
|
||||
#include "../../rev2/config.h"
|
||||
#endif
|
||||
#ifdef SUBPROJECT_rev2fliphalf
|
||||
#include "../../rev2fliphalf/config.h"
|
||||
#endif
|
||||
|
||||
#undef RGBLED_NUM
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
|
||||
|
@ -10,4 +10,3 @@ AUDIO_ENABLE = no # Audio output on port C6
|
||||
UNICODE_ENABLE = yes # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
|
||||
SUBPROJECT_rev1 = no
|
||||
|
@ -1,6 +1,24 @@
|
||||
#include "keymap.h"
|
||||
#include "zer09.h"
|
||||
|
||||
extern keymap_config_t keymap_config;
|
||||
#undef LAYOUT
|
||||
#define LAYOUT( \
|
||||
L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
|
||||
L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
|
||||
L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
|
||||
L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
|
||||
L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
|
||||
) { \
|
||||
{ L00, L01, L02, L03, L04 }, \
|
||||
{ L10, L11, L12, L13, L14 }, \
|
||||
{ L20, L21, L22, L23, L24 }, \
|
||||
{ L30, L31, L32, L33, L34 }, \
|
||||
{ L40, L41, L42, L43, L44 }, \
|
||||
{ R00, R01, R02, R03, R04 }, \
|
||||
{ R10, R11, R12, R13, R14 }, \
|
||||
{ R20, R21, R22, R23, R24 }, \
|
||||
{ R30, R31, R32, R33, R34 }, \
|
||||
{ R40, R41, R42, R43, R44 } \
|
||||
}
|
||||
|
||||
#define _baseLayer LAYOUT( \
|
||||
KC_QUOTE, KC_COMMA, KC_DOT, KC_P, KC_Y, /**/KC_F, KC_G, KC_C, KC_R, KC_L, \
|
||||
|
@ -1,32 +0,0 @@
|
||||
#include "lets_split.h"
|
||||
#include "action_layer.h"
|
||||
#include "eeconfig.h"
|
||||
#include "tap_dance.h"
|
||||
#include "zer09.h"
|
||||
|
||||
#ifdef LAYOUT_ortho_4x12
|
||||
#undef LAYOUT_ortho_4x12
|
||||
#endif
|
||||
|
||||
#ifdef LAYOUT
|
||||
#undef LAYOUT
|
||||
#define LAYOUT( \
|
||||
L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
|
||||
L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
|
||||
L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
|
||||
L30, L31, L32, L33, L34, R30, R31, R32, R33, R34, \
|
||||
L40, L41, L42, L43, L44, R40, R41, R42, R43, R44 \
|
||||
) \
|
||||
{ \
|
||||
{ L00, L01, L02, L03, L04 }, \
|
||||
{ L10, L11, L12, L13, L14 }, \
|
||||
{ L20, L21, L22, L23, L24 }, \
|
||||
{ L30, L31, L32, L33, L34 }, \
|
||||
{ L40, L41, L42, L43, L44 }, \
|
||||
{ R00, R01, R02, R03, R04 }, \
|
||||
{ R10, R11, R12, R13, R14 }, \
|
||||
{ R20, R21, R22, R23, R24 }, \
|
||||
{ R30, R31, R32, R33, R34 }, \
|
||||
{ R40, R41, R42, R43, R44 } \
|
||||
}
|
||||
#endif
|
@ -14,7 +14,45 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "keymap.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define MILLISECONDS_IN_SECOND 1000
|
||||
|
||||
// These are just to make it neater to use builtin HSV values in the keymap
|
||||
#define RED {HSV_RED}
|
||||
#define CORAL {HSV_CORAL}
|
||||
#define ORANGE {HSV_ORANGE}
|
||||
#define GOLDEN {HSV_GOLDENROD}
|
||||
#define GOLD {HSV_GOLD}
|
||||
#define YELLOW {HSV_YELLOW}
|
||||
#define CHART {HSV_CHARTREUSE}
|
||||
#define GREEN {HSV_GREEN}
|
||||
#define SPRING {HSV_SPRINGGREEN}
|
||||
#define TURQ {HSV_TURQUOISE}
|
||||
#define TEAL {HSV_TEAL}
|
||||
#define CYAN {HSV_CYAN}
|
||||
#define AZURE {HSV_AZURE}
|
||||
#define BLUE {HSV_BLUE}
|
||||
#define PURPLE {HSV_PURPLE}
|
||||
#define MAGENT {HSV_MAGENTA}
|
||||
#define PINK {HSV_PINK}
|
||||
|
||||
|
||||
|
||||
//========================================================== CONFIGURABLE DEFAULTS ==========================================================
|
||||
extern bool g_suspend_state;
|
||||
extern rgb_config_t rgb_matrix_config;
|
||||
bool disable_layer_color;
|
||||
|
||||
enum alt_keycodes {
|
||||
U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
|
||||
U_T_AGCR, // USB Toggle Automatic GCR control
|
||||
DBG_TOG, // DEBUG Toggle On / Off
|
||||
DBG_MTRX, // DEBUG Toggle Matrix Prints
|
||||
DBG_KBD, // DEBUG Toggle Keyboard Prints
|
||||
DBG_MOU, // DEBUG Toggle Mouse Prints
|
||||
MD_BOOT, // Restart into bootloader after hold timeout
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
|
@ -1,58 +0,0 @@
|
||||
/* Copyright 2020 elijahblake81
|
||||
*
|
||||
* 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
|
||||
|
||||
// HID has not yet been implemented for this keyboard
|
||||
// #include "raw_hid.h"
|
||||
|
||||
#define MILLISECONDS_IN_SECOND 1000
|
||||
|
||||
// These are just to make it neater to use builtin HSV values in the keymap
|
||||
#define RED {HSV_RED}
|
||||
#define CORAL {HSV_CORAL}
|
||||
#define ORANGE {HSV_ORANGE}
|
||||
#define GOLDEN {HSV_GOLDENROD}
|
||||
#define GOLD {HSV_GOLD}
|
||||
#define YELLOW {HSV_YELLOW}
|
||||
#define CHART {HSV_CHARTREUSE}
|
||||
#define GREEN {HSV_GREEN}
|
||||
#define SPRING {HSV_SPRINGGREEN}
|
||||
#define TURQ {HSV_TURQUOISE}
|
||||
#define TEAL {HSV_TEAL}
|
||||
#define CYAN {HSV_CYAN}
|
||||
#define AZURE {HSV_AZURE}
|
||||
#define BLUE {HSV_BLUE}
|
||||
#define PURPLE {HSV_PURPLE}
|
||||
#define MAGENT {HSV_MAGENTA}
|
||||
#define PINK {HSV_PINK}
|
||||
|
||||
|
||||
|
||||
//========================================================== CONFIGURABLE DEFAULTS ==========================================================
|
||||
extern bool g_suspend_state;
|
||||
extern rgb_config_t rgb_matrix_config;
|
||||
bool disable_layer_color;
|
||||
|
||||
enum alt_keycodes {
|
||||
U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
|
||||
U_T_AGCR, // USB Toggle Automatic GCR control
|
||||
DBG_TOG, // DEBUG Toggle On / Off
|
||||
DBG_MTRX, // DEBUG Toggle Matrix Prints
|
||||
DBG_KBD, // DEBUG Toggle Keyboard Prints
|
||||
DBG_MOU, // DEBUG Toggle Mouse Prints
|
||||
MD_BOOT, // Restart into bootloader after hold timeout
|
||||
};
|
@ -1,4 +1,98 @@
|
||||
#include "keymap.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include <string.h>
|
||||
|
||||
#define MILLISECONDS_IN_SECOND 1000
|
||||
|
||||
// These are just to make it neater to use builtin HSV values in the keymap
|
||||
#define RED {HSV_RED}
|
||||
#define CORAL {HSV_CORAL}
|
||||
#define ORANGE {HSV_ORANGE}
|
||||
#define GOLDEN {HSV_GOLDENROD}
|
||||
#define GOLD {HSV_GOLD}
|
||||
#define YELLOW {HSV_YELLOW}
|
||||
#define CHART {HSV_CHARTREUSE}
|
||||
#define GREEN {HSV_GREEN}
|
||||
#define SPRING {HSV_SPRINGGREEN}
|
||||
#define TURQ {HSV_TURQUOISE}
|
||||
#define TEAL {HSV_TEAL}
|
||||
#define CYAN {HSV_CYAN}
|
||||
#define AZURE {HSV_AZURE}
|
||||
#define BLUE {HSV_BLUE}
|
||||
#define PURPLE {HSV_PURPLE}
|
||||
#define MAGENT {HSV_MAGENTA}
|
||||
#define PINK {HSV_PINK}
|
||||
|
||||
//========================================================== CONFIGURABLE DEFAULTS ==========================================================
|
||||
#define RGB_DEFAULT_TIME_OUT 30
|
||||
#define RGB_FAST_MODE_TIME_OUT 3
|
||||
#define RGB_TIME_OUT_MAX 600
|
||||
#define RGB_TIME_OUT_MIN 10
|
||||
#define RGB_TIME_OUT_STEP 10
|
||||
|
||||
extern rgb_config_t rgb_matrix_config;
|
||||
bool disable_layer_color;
|
||||
|
||||
bool rgb_enabled_flag; // Current LED state flag. If false then LED is off.
|
||||
bool rgb_time_out_enable; // Idle LED toggle enable. If false then LED will not turn off after idle timeout.
|
||||
bool rgb_time_out_fast_mode_enabled; // Enable flag for RGB timeout fast mode
|
||||
bool rgb_time_out_user_value; // This holds the toggle value set by user with ROUT_TG. It's necessary as RGB_TOG changes timeout enable.
|
||||
uint16_t rgb_time_out_seconds; // Idle LED timeout value, in seconds not milliseconds
|
||||
uint16_t rgb_time_out_saved_seconds; // The saved user config for RGB timeout period
|
||||
led_flags_t rgb_time_out_saved_flag; // Store LED flag before timeout so it can be restored when LED is turned on again.
|
||||
|
||||
enum layout_names {
|
||||
_KL=0, // Keys Layout: The main keyboard layout that has all the characters
|
||||
_FL, // Function Layout: The function key activated layout with default functions and some added ones
|
||||
_ML, // Mouse Layout: Mouse Keys and mouse movement
|
||||
_GL, // GIT Layout: GIT shortcuts and macros
|
||||
_VL, // VIM Layout: VIM shorcuts and macros
|
||||
_YL, // Yakuake Layout: Yakuake drop-down terminal shortcuts and macros
|
||||
_EL, // KDE Layout: Shortcuts for KDE desktop using default KDE shortcuts settings
|
||||
};
|
||||
|
||||
enum tapdance_keycodes {
|
||||
TD_LGUI_ML = 0, // Tap dance key to switch to mouse layer _ML
|
||||
TD_APP_YL,
|
||||
TD_CTRL_TERM, // Tap dance key to open terminal on LCTRL double press
|
||||
};
|
||||
|
||||
enum ctrl_keycodes {
|
||||
U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
|
||||
U_T_AGCR, // USB Toggle Automatic GCR control
|
||||
DBG_TOG, // DEBUG Toggle On / Off
|
||||
DBG_MTRX, // DEBUG Toggle Matrix Prints
|
||||
DBG_KBD, // DEBUG Toggle Keyboard Prints
|
||||
DBG_MOU, // DEBUG Toggle Mouse Prints
|
||||
MD_BOOT, // Restart into bootloader after hold timeout
|
||||
SEL_CPY, // Select Copy. Select the word cursor is pointed at and copy, using double mouse click and ctrl+c
|
||||
ROUT_TG, // Timeout Toggle. Toggle idle LED time out on or off
|
||||
ROUT_VI, // Timeout Value Increase. Increase idle time out before LED disabled
|
||||
ROUT_VD, // Timeout Value Decrease. Decrease idle time out before LED disabled
|
||||
ROUT_FM, // RGB timeout fast mode toggle
|
||||
COPY_ALL, // Copy all text using ctrl(a+c)
|
||||
TERMINAL, // CTRL+ALT+T
|
||||
};
|
||||
|
||||
enum string_macro_keycodes {
|
||||
// The start of this enum should always be equal to end of ctrl_keycodes + 1
|
||||
G_INIT = TERMINAL + 1, // git init
|
||||
G_CLONE, // git clone
|
||||
G_CONF, // git config --global
|
||||
G_ADD, // git add
|
||||
G_DIFF, // git diff
|
||||
G_RESET, // git reset
|
||||
G_REBAS, // git rebase
|
||||
G_BRANH, // git branch
|
||||
G_CHECK, // git checkout
|
||||
G_MERGE, // git merge
|
||||
G_REMTE, // git remote add
|
||||
G_FETCH, // git fetch
|
||||
G_PULL, // git pull
|
||||
G_PUSH, // git push
|
||||
G_COMM, // git commit
|
||||
G_STAT, // git status
|
||||
G_LOG, // git log
|
||||
};
|
||||
|
||||
static uint16_t idle_timer; // Idle LED timeout timer
|
||||
static uint8_t idle_second_counter; // Idle LED seconds counter, counts seconds not milliseconds
|
||||
|
@ -1,99 +0,0 @@
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#include <print.h>
|
||||
#include <string.h>
|
||||
// HID has not yet been implemented for this keyboard
|
||||
// #include "raw_hid.h"
|
||||
|
||||
#define MILLISECONDS_IN_SECOND 1000
|
||||
|
||||
// These are just to make it neater to use builtin HSV values in the keymap
|
||||
#define RED {HSV_RED}
|
||||
#define CORAL {HSV_CORAL}
|
||||
#define ORANGE {HSV_ORANGE}
|
||||
#define GOLDEN {HSV_GOLDENROD}
|
||||
#define GOLD {HSV_GOLD}
|
||||
#define YELLOW {HSV_YELLOW}
|
||||
#define CHART {HSV_CHARTREUSE}
|
||||
#define GREEN {HSV_GREEN}
|
||||
#define SPRING {HSV_SPRINGGREEN}
|
||||
#define TURQ {HSV_TURQUOISE}
|
||||
#define TEAL {HSV_TEAL}
|
||||
#define CYAN {HSV_CYAN}
|
||||
#define AZURE {HSV_AZURE}
|
||||
#define BLUE {HSV_BLUE}
|
||||
#define PURPLE {HSV_PURPLE}
|
||||
#define MAGENT {HSV_MAGENTA}
|
||||
#define PINK {HSV_PINK}
|
||||
|
||||
//========================================================== CONFIGURABLE DEFAULTS ==========================================================
|
||||
#define RGB_DEFAULT_TIME_OUT 30
|
||||
#define RGB_FAST_MODE_TIME_OUT 3
|
||||
#define RGB_TIME_OUT_MAX 600
|
||||
#define RGB_TIME_OUT_MIN 10
|
||||
#define RGB_TIME_OUT_STEP 10
|
||||
|
||||
extern rgb_config_t rgb_matrix_config;
|
||||
bool disable_layer_color;
|
||||
|
||||
bool rgb_enabled_flag; // Current LED state flag. If false then LED is off.
|
||||
bool rgb_time_out_enable; // Idle LED toggle enable. If false then LED will not turn off after idle timeout.
|
||||
bool rgb_time_out_fast_mode_enabled; // Enable flag for RGB timeout fast mode
|
||||
bool rgb_time_out_user_value; // This holds the toggle value set by user with ROUT_TG. It's necessary as RGB_TOG changes timeout enable.
|
||||
uint16_t rgb_time_out_seconds; // Idle LED timeout value, in seconds not milliseconds
|
||||
uint16_t rgb_time_out_saved_seconds; // The saved user config for RGB timeout period
|
||||
led_flags_t rgb_time_out_saved_flag; // Store LED flag before timeout so it can be restored when LED is turned on again.
|
||||
|
||||
enum layout_names {
|
||||
_KL=0, // Keys Layout: The main keyboard layout that has all the characters
|
||||
_FL, // Function Layout: The function key activated layout with default functions and some added ones
|
||||
_ML, // Mouse Layout: Mouse Keys and mouse movement
|
||||
_GL, // GIT Layout: GIT shortcuts and macros
|
||||
_VL, // VIM Layout: VIM shorcuts and macros
|
||||
_YL, // Yakuake Layout: Yakuake drop-down terminal shortcuts and macros
|
||||
_EL, // KDE Layout: Shortcuts for KDE desktop using default KDE shortcuts settings
|
||||
};
|
||||
|
||||
enum tapdance_keycodes {
|
||||
TD_LGUI_ML = 0, // Tap dance key to switch to mouse layer _ML
|
||||
TD_APP_YL,
|
||||
TD_CTRL_TERM, // Tap dance key to open terminal on LCTRL double press
|
||||
};
|
||||
|
||||
enum ctrl_keycodes {
|
||||
U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
|
||||
U_T_AGCR, // USB Toggle Automatic GCR control
|
||||
DBG_TOG, // DEBUG Toggle On / Off
|
||||
DBG_MTRX, // DEBUG Toggle Matrix Prints
|
||||
DBG_KBD, // DEBUG Toggle Keyboard Prints
|
||||
DBG_MOU, // DEBUG Toggle Mouse Prints
|
||||
MD_BOOT, // Restart into bootloader after hold timeout
|
||||
SEL_CPY, // Select Copy. Select the word cursor is pointed at and copy, using double mouse click and ctrl+c
|
||||
ROUT_TG, // Timeout Toggle. Toggle idle LED time out on or off
|
||||
ROUT_VI, // Timeout Value Increase. Increase idle time out before LED disabled
|
||||
ROUT_VD, // Timeout Value Decrease. Decrease idle time out before LED disabled
|
||||
ROUT_FM, // RGB timeout fast mode toggle
|
||||
COPY_ALL, // Copy all text using ctrl(a+c)
|
||||
TERMINAL, // CTRL+ALT+T
|
||||
};
|
||||
|
||||
enum string_macro_keycodes {
|
||||
// The start of this enum should always be equal to end of ctrl_keycodes + 1
|
||||
G_INIT = TERMINAL + 1, // git init
|
||||
G_CLONE, // git clone
|
||||
G_CONF, // git config --global
|
||||
G_ADD, // git add
|
||||
G_DIFF, // git diff
|
||||
G_RESET, // git reset
|
||||
G_REBAS, // git rebase
|
||||
G_BRANH, // git branch
|
||||
G_CHECK, // git checkout
|
||||
G_MERGE, // git merge
|
||||
G_REMTE, // git remote add
|
||||
G_FETCH, // git fetch
|
||||
G_PULL, // git pull
|
||||
G_PUSH, // git push
|
||||
G_COMM, // git commit
|
||||
G_STAT, // git status
|
||||
G_LOG, // git log
|
||||
};
|
@ -16,7 +16,72 @@ 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 "keymap.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
#define MILLISECONDS_IN_SECOND 1000
|
||||
|
||||
// These are just to make it neater to use builtin HSV values in the keymap
|
||||
// clang-format off
|
||||
#define WHITE {HSV_WHITE}
|
||||
#define RED {HSV_RED}
|
||||
#define CORAL {HSV_CORAL}
|
||||
#define ORANGE {HSV_ORANGE}
|
||||
#define GOLDEN {HSV_GOLDENROD}
|
||||
#define GOLD {HSV_GOLD}
|
||||
#define YELLOW {HSV_YELLOW}
|
||||
#define CHART {HSV_CHARTREUSE}
|
||||
#define GREEN {HSV_GREEN}
|
||||
#define SPRING {HSV_SPRINGGREEN}
|
||||
#define TURQ {HSV_TURQUOISE}
|
||||
#define TEAL {HSV_TEAL}
|
||||
#define CYAN {HSV_CYAN}
|
||||
#define AZURE {HSV_AZURE}
|
||||
#define BLUE {HSV_BLUE}
|
||||
#define PURPLE {HSV_PURPLE}
|
||||
#define MAGENT {HSV_MAGENTA}
|
||||
#define PINK {HSV_PINK}
|
||||
#define HSV_CREAM 24, 240, 255
|
||||
#define CREAM {HSV_CREAM}
|
||||
#define HSV_9B59B5 208, 192, 255
|
||||
#define M9B59B5 {HSV_9B59B5}
|
||||
// clang-format on
|
||||
|
||||
#define LT_CAPS LT(_NL, KC_CAPS)
|
||||
#define _LAYER_ KC_TRNS
|
||||
|
||||
//========================================================== CONFIGURABLE DEFAULTS ==========================================================
|
||||
extern bool g_suspend_state;
|
||||
extern rgb_config_t rgb_matrix_config;
|
||||
bool disable_layer_color;
|
||||
|
||||
bool rgb_enabled_flag; // Current LED state flag. If false then LED is off.
|
||||
|
||||
enum layout_names {
|
||||
_KL = 0, // Keys Layout: The main keyboard layout that has all the characters
|
||||
_NL, // Navigation Layout: Cursor keys and numpad inputs
|
||||
_FL, // Function Layout: The function key activated layout with default functions and some added ones
|
||||
};
|
||||
|
||||
enum ctrl_keycodes {
|
||||
U_T_AUTO = SAFE_RANGE, // USB Extra Port Toggle Auto Detect / Always Active
|
||||
U_T_AGCR, // USB Toggle Automatic GCR control
|
||||
DBG_TOG, // DEBUG Toggle On / Off
|
||||
DBG_MTRX, // DEBUG Toggle Matrix Prints
|
||||
DBG_KBD, // DEBUG Toggle Keyboard Prints
|
||||
DBG_MOU, // DEBUG Toggle Mouse Prints
|
||||
MD_BOOT, // Restart into bootloader after hold timeout
|
||||
MAS_CRM,
|
||||
MAS_PRP,
|
||||
MAS_RED,
|
||||
MAS_GRN,
|
||||
MAS_BLU,
|
||||
MAS_CYN,
|
||||
MAS_MGT,
|
||||
MAS_YEL,
|
||||
MAS_KEY,
|
||||
MAS_WHT,
|
||||
};
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_KL] = LAYOUT(
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user