mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 09:56:54 +06:00
Remove redundant KC_TRNS and KC_NO fillers in layouts (#5142)
This commit is contained in:
parent
3309e91e0b
commit
bbd4b5eb88
|
@ -11,9 +11,6 @@
|
||||||
#define SFLOCK 11 // symbols arrows and F keys on F held down
|
#define SFLOCK 11 // symbols arrows and F keys on F held down
|
||||||
#define SJLOCK 12 // same as Flock but with fall thru J and mapped to J held down
|
#define SJLOCK 12 // same as Flock but with fall thru J and mapped to J held down
|
||||||
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
// Sends macro when key is tapped, presses mod when key is held
|
// Sends macro when key is tapped, presses mod when key is held
|
||||||
#define tap_mod_macro(record, mod, macro) ( ((record)->event.pressed) ? \
|
#define tap_mod_macro(record, mod, macro) ( ((record)->event.pressed) ? \
|
||||||
( ((record)->tap.count <= 0 || (record)->tap.interrupted) ? MACRO(D(mod), END) : MACRO_NONE ) : \
|
( ((record)->tap.count <= 0 || (record)->tap.interrupted) ? MACRO(D(mod), END) : MACRO_NONE ) : \
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#include "eeprom.h"
|
#include "eeprom.h"
|
||||||
|
|
||||||
#define LAYER_ON(pos) ((layer_state) & (1<<(pos)))
|
#define LAYER_ON(pos) ((layer_state) & (1<<(pos)))
|
||||||
#define _______ KC_TRNS
|
|
||||||
|
|
||||||
#define EECONFIG_BELAK_MAGIC (uint16_t)0xBE42
|
#define EECONFIG_BELAK_MAGIC (uint16_t)0xBE42
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,6 @@
|
||||||
#define NUMP 3 // numpad
|
#define NUMP 3 // numpad
|
||||||
#define ARRW 4 // function, media, arrow keys
|
#define ARRW 4 // function, media, arrow keys
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
// Tap Dancing
|
// Tap Dancing
|
||||||
void dance_lock (qk_tap_dance_state_t *state, void *user_data) {
|
void dance_lock (qk_tap_dance_state_t *state, void *user_data) {
|
||||||
if (state->count == 1) { // Press once for NUMLOCK
|
if (state->count == 1) { // Press once for NUMLOCK
|
||||||
|
|
|
@ -9,8 +9,6 @@
|
||||||
#define SYMBOLS 1 // symbols
|
#define SYMBOLS 1 // symbols
|
||||||
#define MEDIA 2 // media keys
|
#define MEDIA 2 // media keys
|
||||||
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
TD_BSPC = 0
|
TD_BSPC = 0
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,6 @@ enum custom_keycodes {
|
||||||
};
|
};
|
||||||
|
|
||||||
//Redefine Key Names for Readaibilty
|
//Redefine Key Names for Readaibilty
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
#define SCRN_CLIPB LCTL(LGUI(LSFT(KC_4)))
|
#define SCRN_CLIPB LCTL(LGUI(LSFT(KC_4)))
|
||||||
#define CHRM_L LALT(LGUI(KC_LEFT)) //Move left one tab in Chrome
|
#define CHRM_L LALT(LGUI(KC_LEFT)) //Move left one tab in Chrome
|
||||||
#define CHRM_R LALT(LGUI(KC_RIGHT)) //Move right one tab in Chrome
|
#define CHRM_R LALT(LGUI(KC_RIGHT)) //Move right one tab in Chrome
|
||||||
|
|
|
@ -31,11 +31,6 @@ extern keymap_config_t keymap_config;
|
||||||
#define QWERTY M(_QW)
|
#define QWERTY M(_QW)
|
||||||
#define COLEMAK M(_CM)
|
#define COLEMAK M(_CM)
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Layer 0 : Dvorak
|
/* Layer 0 : Dvorak
|
||||||
|
|
|
@ -21,7 +21,6 @@ enum custom_keycodes {
|
||||||
};
|
};
|
||||||
|
|
||||||
#define KC_ KC_TRNS
|
#define KC_ KC_TRNS
|
||||||
#define _______ KC_TRNS
|
|
||||||
|
|
||||||
#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
|
#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
|
||||||
#define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen
|
#define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen
|
||||||
|
|
|
@ -20,10 +20,6 @@ enum custom_keycodes {
|
||||||
ADJUST,
|
ADJUST,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Colemak
|
/* Colemak
|
||||||
|
|
|
@ -33,10 +33,6 @@ enum custom_keycodes {
|
||||||
EXT_PLV
|
EXT_PLV
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Qwerty
|
/* Qwerty
|
||||||
|
|
|
@ -24,10 +24,6 @@ enum custom_keycodes {
|
||||||
ADJUST,
|
ADJUST,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Qwerty
|
/* Qwerty
|
||||||
|
@ -211,4 +207,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,10 +54,6 @@ enum custom_keycodes {
|
||||||
#define HYPR_1 HYPR(KC_EXLM) // Send Hyper + !.
|
#define HYPR_1 HYPR(KC_EXLM) // Send Hyper + !.
|
||||||
#define HYPR_2 HYPR(KC_AT) // Send Hyper + @.
|
#define HYPR_2 HYPR(KC_AT) // Send Hyper + @.
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Qwerty
|
/* Qwerty
|
||||||
|
|
|
@ -33,10 +33,6 @@ const uint8_t flicker_max_levels = 7;
|
||||||
uint8_t flicker_restore_level = 0;
|
uint8_t flicker_restore_level = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
#define LOWER MO(_LOWER)
|
#define LOWER MO(_LOWER)
|
||||||
#define RAISE MO(_RAISE)
|
#define RAISE MO(_RAISE)
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,6 @@ enum custom_keycodes {
|
||||||
R_RAISE
|
R_RAISE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
/* Qwerty
|
/* Qwerty
|
||||||
|
|
|
@ -24,10 +24,6 @@ enum custom_keycodes {
|
||||||
ADJUST
|
ADJUST
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
// Aliases to keep the keymap tidy
|
// Aliases to keep the keymap tidy
|
||||||
#define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped.
|
#define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped.
|
||||||
#define RGB_SWR RGB_M_SW // Swirl Animation alias
|
#define RGB_SWR RGB_M_SW // Swirl Animation alias
|
||||||
|
|
|
@ -24,10 +24,6 @@ enum custom_keycodes {
|
||||||
ADJUST,
|
ADJUST,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
// Aliases to keep the keymap tidy
|
// Aliases to keep the keymap tidy
|
||||||
#define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped.
|
#define GUIBSPC GUI_T(KC_BSPC) // GUI when held, BSPC when tapped.
|
||||||
#define RGB_SWR RGB_M_SW // Swirl Animation alias
|
#define RGB_SWR RGB_M_SW // Swirl Animation alias
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = LAYOUT_numpad_5x4(
|
[0] = LAYOUT_numpad_5x4(
|
||||||
TG(1), KC_PSLS, KC_PAST, KC_PMNS, \
|
TG(1), KC_PSLS, KC_PAST, KC_PMNS, \
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#include QMK_KEYBOARD_H
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
#define XXXXXXX KC_NO
|
|
||||||
|
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
KC_P00 = SAFE_RANGE
|
KC_P00 = SAFE_RANGE
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user