mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-28 14:10:13 +00:00
Compare commits
7 Commits
102abfb426
...
dd8773900e
Author | SHA1 | Date | |
---|---|---|---|
|
dd8773900e | ||
|
1f7d10902a | ||
|
d189de24a0 | ||
|
e4e015c0c8 | ||
|
4a5bae51cd | ||
|
b5a123c543 | ||
|
caaa8d2d6d |
@ -21,8 +21,10 @@ $(TEST_OUTPUT)_SRC := \
|
||||
$(SRC) \
|
||||
$(QUANTUM_PATH)/keymap_introspection.c \
|
||||
tests/test_common/matrix.c \
|
||||
tests/test_common/pointing_device_driver.c \
|
||||
tests/test_common/test_driver.cpp \
|
||||
tests/test_common/keyboard_report_util.cpp \
|
||||
tests/test_common/mouse_report_util.cpp \
|
||||
tests/test_common/keycode_util.cpp \
|
||||
tests/test_common/keycode_table.cpp \
|
||||
tests/test_common/test_fixture.cpp \
|
||||
|
@ -28,6 +28,7 @@ QUANTUM_SRC += \
|
||||
$(QUANTUM_DIR)/sync_timer.c \
|
||||
$(QUANTUM_DIR)/logging/debug.c \
|
||||
$(QUANTUM_DIR)/logging/sendchar.c \
|
||||
$(QUANTUM_DIR)/process_keycode/process_default_layer.c \
|
||||
|
||||
VPATH += $(QUANTUM_DIR)/logging
|
||||
# Fall back to lib/printf if there is no platform provided print
|
||||
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"ranges": {
|
||||
"0x52E0/0x001F": {
|
||||
"define": "QK_PERSISTENT_DEF_LAYER"
|
||||
}
|
||||
}
|
||||
}
|
@ -8,7 +8,8 @@ For a detailed explanation of how the layer stack works, checkout [Keymap Overvi
|
||||
|
||||
These functions allow you to activate layers in various ways. Note that layers are not generally independent layouts -- multiple layers can be activated at once, and it's typical for layers to use `KC_TRNS` to allow keypresses to pass through to lower layers. When using momentary layer switching with MO(), LM(), TT(), or LT(), make sure to leave the key on the above layers transparent or it may not work as intended.
|
||||
|
||||
* `DF(layer)` - switches the default layer. The default layer is the always-active base layer that other layers stack on top of. See below for more about the default layer. This might be used to switch from QWERTY to Dvorak layout. (Note that this is a temporary switch that only persists until the keyboard loses power. To modify the default layer in a persistent way requires deeper customization, such as calling the `set_single_persistent_default_layer` function inside of [process_record_user](custom_quantum_functions#programming-the-behavior-of-any-keycode).)
|
||||
* `DF(layer)` - switches the default layer. The default layer is the always-active base layer that other layers stack on top of. See below for more about the default layer. This might be used to switch from QWERTY to Dvorak layout. Note that this is a temporary switch that only persists until the keyboard loses power.
|
||||
* `PDF(layer)` - sets a persistent default layer. This switch, which will last through a power loss, might be used to switch from QWERTY to Dvorak layout and only switch again when you want to.
|
||||
* `MO(layer)` - momentarily activates *layer*. As soon as you let go of the key, the layer is deactivated.
|
||||
* `LM(layer, mod)` - Momentarily activates *layer* (like `MO`), but with modifier(s) *mod* active. Only supports layers 0-15. The modifiers this keycode accept are prefixed with `MOD_`, not `KC_`. These modifiers can be combined using bitwise OR, e.g. `LM(_RAISE, MOD_LCTL | MOD_LALT)`.
|
||||
* `LT(layer, kc)` - momentarily activates *layer* when held, and sends *kc* when tapped. Only supports layers 0-15.
|
||||
|
@ -401,7 +401,8 @@ See also: [Layer Switching](feature_layers#switching-and-toggling-layers)
|
||||
|
||||
|Key |Description |
|
||||
|----------------|----------------------------------------------------------------------------------|
|
||||
|`DF(layer)` |Set the base (default) layer |
|
||||
|`DF(layer)` |Set the base (default) layer until the keyboard loses power |
|
||||
|`PDF(layer)` |Set the base (default) layer in EEPROM |
|
||||
|`MO(layer)` |Momentarily turn on `layer` when pressed (requires `KC_TRNS` on destination layer)|
|
||||
|`OSL(layer)` |Momentarily activates `layer` until a key is pressed. See [One Shot Keys](one_shot_keys) for details. |
|
||||
|`LM(layer, mod)`|Momentarily turn on `layer` (like MO) with `mod` active as well. Where `mod` is a mods_bit. Mods can be viewed [here](mod_tap). Example Implementation: `LM(LAYER_1, MOD_LALT)`|
|
||||
|
@ -23,10 +23,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
BACKLIT,
|
||||
@ -35,12 +32,9 @@ enum custom_keycodes {
|
||||
RGBRST
|
||||
};
|
||||
|
||||
enum macro_keycodes {
|
||||
KC_SAMPLEMACRO,
|
||||
};
|
||||
|
||||
//Macros
|
||||
#define M_SAMPLE M(KC_SAMPLEMACRO)
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
@ -169,25 +163,6 @@ void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
//not sure how to have keyboard check mode and set it to a variable, so my work around
|
||||
|
@ -13,16 +13,14 @@ enum layer_names {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -138,24 +136,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -23,9 +23,7 @@ enum sofle_layers {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWERTY = SAFE_RANGE,
|
||||
KC_COLEMAK,
|
||||
KC_LOWER,
|
||||
KC_LOWER = SAFE_RANGE,
|
||||
KC_RAISE,
|
||||
KC_ADJUST,
|
||||
KC_PRVWD,
|
||||
@ -35,6 +33,9 @@ enum custom_keycodes {
|
||||
KC_DLINE
|
||||
};
|
||||
|
||||
#define KC_QWERTY PDF(_QWERTY)
|
||||
#define KC_COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
@ -148,16 +149,6 @@ bool oled_task_user(void) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -12,12 +12,9 @@ enum layers {
|
||||
|
||||
#define FN1_CAPS LT(_FN1, KC_CAPS)
|
||||
|
||||
//custom keycode enums
|
||||
enum custom_keycodes {
|
||||
BASE_QWER = QK_USER,
|
||||
BASE_COLE,
|
||||
BASE_DVOR
|
||||
};
|
||||
#define BASE_QWER PDF(_QWER)
|
||||
#define BASE_COLE PDF(_COLE)
|
||||
#define BASE_DVOR PDF(_DVOR)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWER] = LAYOUT(
|
||||
@ -67,37 +64,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
// macros to allow the user to set whatever default layer they want, even after reboot
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case BASE_QWER:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_QWER is pressed
|
||||
set_single_persistent_default_layer(_QWER);
|
||||
} else {
|
||||
// when keycode BASE_QWER is released
|
||||
}
|
||||
break;
|
||||
|
||||
case BASE_COLE:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_COLE is pressed
|
||||
set_single_persistent_default_layer(_COLE);
|
||||
} else {
|
||||
// when keycode BASE_COLE is released
|
||||
}
|
||||
break;
|
||||
|
||||
case BASE_DVOR:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_DVOR is pressed
|
||||
set_single_persistent_default_layer(_DVOR);
|
||||
} else {
|
||||
// when keycode BASE_DVOR is released
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -12,12 +12,9 @@ enum layers {
|
||||
|
||||
#define FN1_CAPS LT(_FN1, KC_CAPS)
|
||||
|
||||
//custom keycode enums
|
||||
enum custom_keycodes {
|
||||
BASE_QWER = QK_USER,
|
||||
BASE_COLE,
|
||||
BASE_DVOR
|
||||
};
|
||||
#define BASE_QWER PDF(_QWER)
|
||||
#define BASE_COLE PDF(_COLE)
|
||||
#define BASE_DVOR PDF(_DVOR)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWER] = LAYOUT_83_ansi(
|
||||
@ -67,37 +64,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
// macros to allow the user to set whatever default layer they want, even after reboot
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case BASE_QWER:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_QWER is pressed
|
||||
set_single_persistent_default_layer(_QWER);
|
||||
} else {
|
||||
// when keycode BASE_QWER is released
|
||||
}
|
||||
break;
|
||||
|
||||
case BASE_COLE:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_COLE is pressed
|
||||
set_single_persistent_default_layer(_COLE);
|
||||
} else {
|
||||
// when keycode BASE_COLE is released
|
||||
}
|
||||
break;
|
||||
|
||||
case BASE_DVOR:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_DVOR is pressed
|
||||
set_single_persistent_default_layer(_DVOR);
|
||||
} else {
|
||||
// when keycode BASE_DVOR is released
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -12,12 +12,9 @@ enum layers {
|
||||
|
||||
#define FN1_CAPS LT(_FN1, KC_CAPS)
|
||||
|
||||
//custom keycode enums
|
||||
enum custom_keycodes {
|
||||
BASE_QWER = QK_USER,
|
||||
BASE_COLE,
|
||||
BASE_DVOR
|
||||
};
|
||||
#define BASE_QWER PDF(_QWER)
|
||||
#define BASE_COLE PDF(_COLE)
|
||||
#define BASE_DVOR PDF(_DVOR)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWER] = LAYOUT_84_iso(
|
||||
@ -67,37 +64,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
//macros to allow the user to set whatever default layer they want, even after reboot
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case BASE_QWER:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_QWER is pressed
|
||||
set_single_persistent_default_layer(_QWER);
|
||||
} else {
|
||||
// when keycode BASE_QWER is released
|
||||
}
|
||||
break;
|
||||
|
||||
case BASE_COLE:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_COLE is pressed
|
||||
set_single_persistent_default_layer(_COLE);
|
||||
} else {
|
||||
// when keycode BASE_COLE is released
|
||||
}
|
||||
break;
|
||||
|
||||
case BASE_DVOR:
|
||||
if (record->event.pressed) {
|
||||
// when keycode BASE_DVOR is pressed
|
||||
set_single_persistent_default_layer(_DVOR);
|
||||
} else {
|
||||
// when keycode BASE_DVOR is released
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -12,12 +12,9 @@ enum layers {
|
||||
|
||||
#define FN1_CAPS LT(_FN1, KC_CAPS)
|
||||
|
||||
//custom keycode enums
|
||||
enum custom_keycodes {
|
||||
BASE_QWER = QK_USER,
|
||||
BASE_COLE,
|
||||
BASE_DVOR
|
||||
};
|
||||
#define BASE_QWER PDF(_QWER)
|
||||
#define BASE_COLE PDF(_COLE)
|
||||
#define BASE_DVOR PDF(_DVOR)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWER] = LAYOUT_83_ansi(
|
||||
@ -67,26 +64,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
// Macros to allow the user to set whatever default layer they want, even after reboot
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case BASE_QWER:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWER);
|
||||
}
|
||||
break;
|
||||
case BASE_COLE:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLE);
|
||||
}
|
||||
break;
|
||||
case BASE_DVOR:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVOR);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -12,12 +12,9 @@ enum layers {
|
||||
|
||||
#define FN1_CAPS LT(_FN1, KC_CAPS)
|
||||
|
||||
//custom keycode enums
|
||||
enum custom_keycodes {
|
||||
BASE_QWER = QK_USER,
|
||||
BASE_COLE,
|
||||
BASE_DVOR
|
||||
};
|
||||
#define BASE_QWER PDF(_QWER)
|
||||
#define BASE_COLE PDF(_COLE)
|
||||
#define BASE_DVOR PDF(_DVOR)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QWER] = LAYOUT_84_iso(
|
||||
@ -67,26 +64,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
*/
|
||||
};
|
||||
|
||||
|
||||
// Macros to allow the user to set whatever default layer they want, even after reboot
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case BASE_QWER:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWER);
|
||||
}
|
||||
break;
|
||||
case BASE_COLE:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLE);
|
||||
}
|
||||
break;
|
||||
case BASE_DVOR:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVOR);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -24,11 +24,9 @@ enum layers {
|
||||
_L3,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
DVORAK = SAFE_RANGE,
|
||||
QWERTY,
|
||||
COLEMAK
|
||||
};
|
||||
#define QWERTY PDF(_QW)
|
||||
#define DVORAK PDF(_DV)
|
||||
#define COLEMAK PDF(_CM)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QW] = LAYOUT( /* Qwerty */
|
||||
@ -68,26 +66,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, KC_LSFT, KC_B, KC_SPC, KC_C, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch(keycode) {
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DV);
|
||||
}
|
||||
return false;
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QW);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_CM);
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -28,16 +28,17 @@ enum planck_layers {
|
||||
};
|
||||
|
||||
enum planck_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
PLOVER,
|
||||
PLOVER = SAFE_RANGE,
|
||||
LOWER,
|
||||
RAISE,
|
||||
BACKLIT,
|
||||
EXT_PLV
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -177,25 +178,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -18,16 +18,13 @@
|
||||
// Defines names for use in layer keycodes and the keymap
|
||||
enum layer_names { _QWERTY, _COLEMAK, _DVORAK, _LOWER, _RAISE, _ADJUST };
|
||||
|
||||
enum layer_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
};
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* BASE
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -163,25 +160,3 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST);
|
||||
return state;
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -28,10 +28,7 @@ enum plaid_layers {
|
||||
};
|
||||
|
||||
enum plaid_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
PLOVER,
|
||||
PLOVER = SAFE_RANGE,
|
||||
EXT_PLV,
|
||||
LED_1,
|
||||
LED_2,
|
||||
@ -48,6 +45,10 @@ enum plaid_keycodes {
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
// array of keys considered modifiers for led purposes
|
||||
const uint16_t modifiers[] = {
|
||||
KC_LCTL,
|
||||
@ -301,25 +302,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
led_keypress_update(LED_GREEN, led_config.green_mode, keycode, record);
|
||||
}
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case PLOVER:
|
||||
if (record->event.pressed) {
|
||||
layer_off(_RAISE);
|
||||
|
@ -9,8 +9,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
@ -58,23 +57,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_qwerty);
|
||||
#endif
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -14,18 +14,13 @@ enum my_layers {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -160,24 +155,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -28,14 +28,15 @@ enum preonic_layers {
|
||||
};
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -169,24 +170,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -16,10 +16,7 @@ extern rgblight_config_t rgblight_config;
|
||||
#define _ADJUST 6
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT,
|
||||
RGBLED_TOGGLE,
|
||||
@ -42,6 +39,9 @@ enum preonic_keycodes {
|
||||
#define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor
|
||||
#define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
@ -213,18 +213,6 @@ void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
//not sure how to have keyboard check mode and set it to a variable, so my work around
|
||||
|
@ -16,10 +16,7 @@ extern rgblight_config_t rgblight_config;
|
||||
#define _ADJUST 6
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT,
|
||||
RGBLED_TOGGLE,
|
||||
@ -181,7 +178,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+--------------------.
|
||||
* | |RGB TG|RGB ST|RGBH -|RGBH +|RGBS -|RGBS +|RGBV -|RGBV +| | | Del | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty| | | | | | | |
|
||||
* | | | |Aud on|Audoff|AGnorm|AGswap| | | | | | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof| | BL + |BL ST |BLSTEP| BL TG| | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
@ -191,7 +188,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_ADJUST] = LAYOUT(
|
||||
QK_BOOT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_VOLD, KC_VOLU, KC_MUTE,
|
||||
_______, UG_TOGG, UG_NEXT, UG_HUEU, UG_HUED, UG_SATU, UG_SATD, UG_VALU, UG_VALD, _______, _______, KC_DEL, _______, _______, _______,
|
||||
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, AU_PREV, AU_NEXT, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, BL_DOWN, BL_UP, BL_STEP, BL_TOGG, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
@ -218,12 +215,6 @@ void update_tri_layer_RGB(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
//not sure how to have keyboard check mode and set it to a variable, so my work around
|
||||
|
@ -13,10 +13,7 @@
|
||||
#define _ADJUST 6
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT,
|
||||
RGBLED_TOGGLE,
|
||||
@ -39,6 +36,10 @@ enum preonic_keycodes {
|
||||
#define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor
|
||||
#define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -200,18 +201,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
//not sure how to have keyboard check mode and set it to a variable, so my work around
|
||||
|
@ -48,15 +48,14 @@ enum custom_layer {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ALT,
|
||||
CTRL,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
MOUSE,
|
||||
ADJUST
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define MOUSE PDF(_MOUSE)
|
||||
|
||||
// TAP DANCE ***********************************************************
|
||||
//Tap Dance Declarations
|
||||
enum {
|
||||
@ -569,12 +568,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
@ -584,7 +577,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RAISE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_RAISE);
|
||||
@ -594,13 +586,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case MOUSE:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_MOUSE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -30,10 +30,7 @@ enum custom_layer {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT
|
||||
};
|
||||
@ -189,7 +186,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | | | Reset| | | | | | | | | | Del |
|
||||
* |------+------+------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* | | | | | |Audoff|Aud on|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | |
|
||||
* | | | | | |Audoff|Aud on|AGnorm|AGswap| | | | | |
|
||||
* |------+------+------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | | | |Voice-|Voice+|Musoff|Mus on| | | | | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
@ -199,7 +196,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_ADJUST] = 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,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, QK_BOOT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_DEL,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, XXXXXXX, XXXXXXX, XXXXXXX, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, AU_ON, AU_OFF, AG_NORM, AG_SWAP, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, _______,
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, AU_PREV, AU_NEXT, MU_ON, MU_OFF, MI_ON, MI_OFF, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
XXXXXXX, _______, _______, _______, _______, _______, _______, _______,_______,_______, _______, _______
|
||||
)
|
||||
@ -209,15 +206,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
#ifdef AUDIO_ENABLE
|
||||
PLAY_SONG(tone_qwerty);
|
||||
#endif
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -47,15 +47,14 @@ enum custom_layer {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ALT,
|
||||
CTRL,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
MOUSE,
|
||||
ADJUST
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define MOUSE PDF(_MOUSE)
|
||||
|
||||
// TAP DANCE ***********************************************************
|
||||
//Tap Dance Declarations
|
||||
enum {
|
||||
@ -499,12 +498,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
@ -514,7 +507,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case RAISE:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_RAISE);
|
||||
@ -524,13 +516,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case MOUSE:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_MOUSE);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -27,16 +27,17 @@ enum ortho_brass_layers {
|
||||
};
|
||||
|
||||
enum ortho_brass_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
PLOVER,
|
||||
PLOVER = SAFE_RANGE,
|
||||
EXT_PLV
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -172,24 +173,6 @@ layer_state_t layer_state_set_user(layer_state_t state) { return update_tri_laye
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case PLOVER:
|
||||
if (record->event.pressed) {
|
||||
layer_off(_RAISE);
|
||||
|
@ -27,15 +27,16 @@ enum preonic_layers {
|
||||
};
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
BACKLIT
|
||||
BACKLIT = SAFE_RANGE,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -172,24 +173,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
register_code(keycode_config(KC_LGUI));
|
||||
@ -200,7 +183,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
unregister_code(keycode_config(KC_LGUI));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -27,15 +27,16 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
BACKLIT
|
||||
BACKLIT = SAFE_RANGE,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -172,24 +173,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
register_code(keycode_config(KC_LGUI));
|
||||
@ -200,7 +183,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
unregister_code(keycode_config(KC_LGUI));
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -26,13 +26,14 @@ enum layers {
|
||||
};
|
||||
|
||||
enum keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -164,24 +165,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -29,13 +29,14 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
PLOVER,
|
||||
PLOVER = SAFE_RANGE,
|
||||
EXT_PLV
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
#define ST_BOLT QK_STENO_BOLT
|
||||
#define ST_GEM QK_STENO_GEMINI
|
||||
|
||||
@ -195,21 +196,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
case PLOVER:
|
||||
if (!record->event.pressed) {
|
||||
layer_on(_PLOVER);
|
||||
|
@ -33,10 +33,7 @@ enum terminus_mini_layers {
|
||||
};
|
||||
|
||||
enum terminus_mini_keycodes {
|
||||
COLEMAK = SAFE_RANGE,
|
||||
QWERTY,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
FUNCTION,
|
||||
MOUSE,
|
||||
@ -48,6 +45,10 @@ enum terminus_mini_keycodes {
|
||||
#define SPC_LW LT(_LOWER, KC_SPC)
|
||||
#define ENT_RS LT(_RAISE, KC_ENT)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Colemak -
|
||||
* ,----------------------------------------------------------------------------------.
|
||||
@ -204,24 +205,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// Cases to switch default layer to QWERTY, COLEMAK or DVORAK and to access ADJUST layer
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -8,14 +8,12 @@ enum layer_names {
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
|
||||
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||
@ -65,19 +63,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -11,16 +11,14 @@ enum jian_layers {
|
||||
_BCKLT_ADJ
|
||||
};
|
||||
|
||||
enum jian_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
DVORAK,
|
||||
COLEMAK,
|
||||
WORKMAN
|
||||
};
|
||||
|
||||
#define RAISE_T(kc) LT(_RAISE, kc)
|
||||
#define LOWER_T(kc) LT(_LOWER, kc)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
#define WORKMAN PDF(_WORKMAN)
|
||||
|
||||
#ifdef SWAP_HANDS_ENABLE
|
||||
#define SW_TG SH_TOGG
|
||||
#else
|
||||
@ -92,29 +90,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case WORKMAN:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_WORKMAN);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -63,12 +63,6 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
}
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes {
|
||||
MAC = SAFE_RANGE,
|
||||
WIN,
|
||||
};
|
||||
|
||||
// Key Macro
|
||||
#define ESC_NUM TD(TD_ESC_NUM)
|
||||
#define S_CAP TD(TD_LSFT_CAPS)
|
||||
@ -82,7 +76,8 @@ enum custom_keycodes {
|
||||
#define ALT_GRV LALT(KC_GRV)
|
||||
#define LOWER MO(_LOWER)
|
||||
#define NUM TG(_NUM)
|
||||
|
||||
#define MAC PDF(_MAC)
|
||||
#define WIN PDF(_WIN)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_MAC] = LAYOUT_jp(
|
||||
@ -146,26 +141,6 @@ const uint8_t music_map[MATRIX_ROWS][MATRIX_COLS] = LAYOUT_jp(
|
||||
);
|
||||
#endif
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case MAC: // Change default ayer --> Write to EEPROM
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_MAC);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case WIN: // Change default ayer --> Write to EEPROM
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_WIN);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// RGB Light settings
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
|
@ -62,12 +62,6 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
}
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes {
|
||||
MAC = SAFE_RANGE,
|
||||
WIN,
|
||||
};
|
||||
|
||||
// Key Macro
|
||||
#define ESC_NUM TD(TD_ESC_NUM)
|
||||
#define S_CAP TD(TD_LSFT_CAPS)
|
||||
@ -80,7 +74,8 @@ enum custom_keycodes {
|
||||
#define ALT_GRV LALT(KC_GRV)
|
||||
#define LOWER MO(_LOWER)
|
||||
#define NUM TG(_NUM)
|
||||
|
||||
#define MAC PDF(_MAC)
|
||||
#define WIN PDF(_WIN)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_MAC] = LAYOUT_ansi(
|
||||
@ -134,26 +129,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case MAC: // Change default ayer --> Write to EEPROM
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_MAC);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case WIN: // Change default ayer --> Write to EEPROM
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_WIN);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// RGB Light settings
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
|
@ -63,12 +63,6 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
}
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes {
|
||||
MAC = SAFE_RANGE,
|
||||
WIN,
|
||||
};
|
||||
|
||||
// Key Macro
|
||||
#define ESC_NUM TD(TD_ESC_NUM)
|
||||
#define S_CAP TD(TD_LSFT_CAPS)
|
||||
@ -82,7 +76,8 @@ enum custom_keycodes {
|
||||
#define ALT_GRV LALT(KC_GRV)
|
||||
#define LOWER MO(_LOWER)
|
||||
#define NUM TG(_NUM)
|
||||
|
||||
#define MAC PDF(_MAC)
|
||||
#define WIN PDF(_WIN)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_MAC] = LAYOUT_jp(
|
||||
@ -136,26 +131,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case MAC: // Change default ayer --> Write to EEPROM
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_MAC);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case WIN: // Change default ayer --> Write to EEPROM
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_WIN);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// RGB Light settings
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
|
@ -19,13 +19,14 @@
|
||||
|
||||
enum layer_number { _QWERTY = 0, _COLEMAK, _DVORAK, _LOWER, _RAISE, _ADJUST };
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes { QWERTY = SAFE_RANGE, COLEMAK, DVORAK };
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
@ -141,27 +142,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
board_set_led_by_index(0, LED_YELLOW, led_state.caps_lock);
|
||||
board_set_led_by_index(1, LED_YELLOW, led_state.scroll_lock);
|
||||
|
@ -19,13 +19,14 @@
|
||||
|
||||
enum layer_number { _QWERTY = 0, _COLEMAK, _DVORAK, _LOWER, _RAISE, _ADJUST };
|
||||
|
||||
// Defines the keycodes used by our macros in process_record_user
|
||||
enum custom_keycodes { QWERTY = SAFE_RANGE, COLEMAK, DVORAK };
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
// clang-format off
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
@ -141,27 +142,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool led_update_user(led_t led_state) {
|
||||
board_set_led_by_index(0, LED_YELLOW, led_state.caps_lock);
|
||||
board_set_led_by_index(1, LED_YELLOW, led_state.scroll_lock);
|
||||
|
@ -13,8 +13,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
ADJUST,
|
||||
};
|
||||
@ -88,7 +87,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_ADJUST] = LAYOUT_ortho_5x14(
|
||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______,
|
||||
_______, _______, QK_BOOT, UG_TOGG, UG_NEXT, UG_HUED, UG_HUEU, UG_SATD, UG_SATU, UG_VALD, UG_VALU, _______, KC_DEL, _______,
|
||||
_______, _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
@ -98,12 +97,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -5,11 +5,6 @@ enum layer_names {
|
||||
_LOWER
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
LOWER
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -29,7 +24,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
QK_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
|
||||
KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_ENT, KC_SPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
KC_LCTL, KC_LALT, KC_LGUI, MO(_LOWER), KC_ENT, KC_SPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||
),
|
||||
|
||||
/* Lower
|
||||
@ -53,21 +48,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
UG_TOGG, QK_BOOT, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
} else {
|
||||
layer_off(_LOWER);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -8,8 +8,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE
|
||||
};
|
||||
|
||||
@ -83,7 +82,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
* | | Reset| | | | | | | | | | Del |
|
||||
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||
* | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty| | | | |
|
||||
* | | | |Aud on|AudOff|AGnorm|AGswap| | | | | |
|
||||
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||
* | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | |
|
||||
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||
@ -93,7 +92,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_ADJUST] = LAYOUT_ortho_5x12(
|
||||
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,
|
||||
_______, QK_BOOT, DB_TOGG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL,
|
||||
_______, _______, MU_NEXT, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______,
|
||||
_______, _______, MU_NEXT, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______,
|
||||
_______, AU_PREV, AU_NEXT, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||
)
|
||||
@ -101,11 +100,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -26,10 +26,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWRTY = SAFE_RANGE,
|
||||
KC_COLMK,
|
||||
KC_HRM,
|
||||
KC_PRVWD,
|
||||
KC_PRVWD = SAFE_RANGE,
|
||||
KC_NXTWD
|
||||
};
|
||||
|
||||
@ -46,6 +43,10 @@ enum custom_keycodes {
|
||||
#define HRM_RC MT(MOD_RCTL, KC_K)
|
||||
#define HRM_RS MT(MOD_RSFT, KC_J)
|
||||
|
||||
#define KC_QWRTY PDF(_QWERTY)
|
||||
#define KC_COLMK PDF(_COLEMAK)
|
||||
#define KC_HRM PDF(_HRM)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -188,21 +189,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWRTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLMK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_HRM:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_HRM);
|
||||
}
|
||||
return false;
|
||||
case KC_PRVWD:
|
||||
if (record->event.pressed) {
|
||||
register_mods(mod_config(MOD_LCTL));
|
||||
|
@ -26,10 +26,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWRTY = SAFE_RANGE,
|
||||
KC_COLMK,
|
||||
KC_HRM,
|
||||
KC_PRVWD,
|
||||
KC_PRVWD = SAFE_RANGE,
|
||||
KC_NXTWD
|
||||
};
|
||||
|
||||
@ -46,6 +43,10 @@ enum custom_keycodes {
|
||||
#define HRM_RC MT(MOD_RCTL, KC_K)
|
||||
#define HRM_RS MT(MOD_RSFT, KC_J)
|
||||
|
||||
#define KC_QWRTY PDF(_QWERTY)
|
||||
#define KC_COLMK PDF(_COLEMAK)
|
||||
#define KC_HRM PDF(_HRM)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -188,21 +189,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWRTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLMK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_HRM:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_HRM);
|
||||
}
|
||||
return false;
|
||||
case KC_PRVWD:
|
||||
if (record->event.pressed) {
|
||||
register_mods(mod_config(MOD_LCTL));
|
||||
|
@ -26,10 +26,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWRTY = SAFE_RANGE,
|
||||
KC_COLMK,
|
||||
KC_HRM,
|
||||
KC_PRVWD,
|
||||
KC_PRVWD = SAFE_RANGE,
|
||||
KC_NXTWD
|
||||
};
|
||||
|
||||
@ -46,6 +43,10 @@ enum custom_keycodes {
|
||||
#define HRM_RC MT(MOD_RCTL, KC_K)
|
||||
#define HRM_RS MT(MOD_RSFT, KC_J)
|
||||
|
||||
#define KC_QWRTY PDF(_QWERTY)
|
||||
#define KC_COLMK PDF(_COLEMAK)
|
||||
#define KC_HRM PDF(_HRM)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -188,21 +189,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWRTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLMK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_HRM:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_HRM);
|
||||
}
|
||||
return false;
|
||||
case KC_PRVWD:
|
||||
if (record->event.pressed) {
|
||||
register_mods(mod_config(MOD_LCTL));
|
||||
|
@ -26,10 +26,7 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWRTY = SAFE_RANGE,
|
||||
KC_COLMK,
|
||||
KC_HRM,
|
||||
KC_PRVWD,
|
||||
KC_PRVWD = SAFE_RANGE,
|
||||
KC_NXTWD
|
||||
};
|
||||
|
||||
@ -46,6 +43,10 @@ enum custom_keycodes {
|
||||
#define HRM_RC MT(MOD_RCTL, KC_K)
|
||||
#define HRM_RS MT(MOD_RSFT, KC_J)
|
||||
|
||||
#define KC_QWRTY PDF(_QWERTY)
|
||||
#define KC_COLMK PDF(_COLEMAK)
|
||||
#define KC_HRM PDF(_HRM)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -188,21 +189,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWRTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLMK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_HRM:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_HRM);
|
||||
}
|
||||
return false;
|
||||
case KC_PRVWD:
|
||||
if (record->event.pressed) {
|
||||
register_mods(mod_config(MOD_LCTL));
|
||||
|
@ -26,15 +26,13 @@ enum layer_names {
|
||||
_CMD,
|
||||
};
|
||||
|
||||
enum corgi_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define CMD MO(_CMD)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -136,21 +134,3 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
tap_code(clockwise ? KC_VOLU : KC_VOLD);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -28,17 +28,15 @@ enum layers {
|
||||
_FN
|
||||
};
|
||||
|
||||
enum keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
WORKMAN,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define FN MO(_FN)
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define WORKMAN PDF(_WORKMAN)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -213,29 +211,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case WORKMAN:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_WORKMAN);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -13,16 +13,14 @@ enum layer_names {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -138,24 +136,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -30,9 +30,7 @@ enum lime_layers {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWERTY = SAFE_RANGE,
|
||||
KC_COLEMAK,
|
||||
KC_LOWER,
|
||||
KC_LOWER = SAFE_RANGE,
|
||||
KC_RAISE,
|
||||
KC_ADJUST,
|
||||
KC_PRVWD,
|
||||
@ -47,6 +45,9 @@ enum custom_keycodes {
|
||||
KC_JOYSTICK_DEBUG,
|
||||
};
|
||||
|
||||
#define KC_QWERTY PDF(_QWERTY)
|
||||
#define KC_COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -480,16 +481,6 @@ bool showedJump = true;
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -24,15 +24,11 @@ enum planck_layers {
|
||||
|
||||
};
|
||||
|
||||
|
||||
enum planck_keycodes {
|
||||
L1 = SAFE_RANGE,
|
||||
L2,
|
||||
L3
|
||||
|
||||
};
|
||||
|
||||
#define L1 PDF(_1)
|
||||
#define L2 PDF(_2)
|
||||
#define L3 PDF(_3)
|
||||
#define LOWER MO(_4)
|
||||
|
||||
#define IND_1 D4
|
||||
#define IND_2 C6
|
||||
#define IND_3 D7
|
||||
@ -66,27 +62,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return state;
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case L1:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_1);
|
||||
}
|
||||
return false;
|
||||
case L2:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_2);
|
||||
}
|
||||
return false;
|
||||
case L3:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_3);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
//init the Pro Micro on-board LEDs
|
||||
gpio_set_pin_output(IND_1);
|
||||
|
@ -15,16 +15,14 @@ enum layer_names
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -140,24 +138,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -14,16 +14,14 @@ enum layer_names {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* Qwerty
|
||||
* ,-----------------------------------------------------------------------------------.
|
||||
@ -139,23 +137,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -14,16 +14,14 @@ enum layer_names {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT_all(
|
||||
@ -72,26 +70,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (clockwise) {
|
||||
|
@ -14,16 +14,14 @@ enum layer_names {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define ADJUST MO(_ADJUST)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT_all(
|
||||
@ -72,26 +70,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (clockwise) {
|
||||
|
@ -27,18 +27,13 @@ enum layers {
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
RAISE,
|
||||
EUCALYN,
|
||||
ADJUST,
|
||||
};
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
#define EUCALYN PDF(_EUCALYN)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
@ -174,33 +169,3 @@ enum layers {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case EUCALYN:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_EUCALYN);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -39,11 +39,12 @@ enum layer_names {
|
||||
#define OS_GUI OSM(MOD_LGUI)
|
||||
#define OS_ALT OSM(MOD_LALT)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLMAK)
|
||||
|
||||
enum keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
// layers
|
||||
SYM,
|
||||
SYM = SAFE_RANGE,
|
||||
MISC,
|
||||
// special keys
|
||||
ENC_PRS,
|
||||
@ -233,16 +234,6 @@ uint16_t last_rgb_char = 0;
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLMAK);
|
||||
}
|
||||
return false;
|
||||
case SYM:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_SYM);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -56,13 +55,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -56,13 +55,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -58,13 +57,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -62,13 +61,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -62,13 +61,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -62,13 +61,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -68,13 +67,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -68,13 +67,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -15,8 +15,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -70,13 +69,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -13,8 +13,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
ADJUST,
|
||||
ADJUST = SAFE_RANGE,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
@ -68,13 +67,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
|
||||
case ADJUST:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_ADJUST);
|
||||
|
@ -26,14 +26,15 @@ enum preonic_layers {
|
||||
};
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -167,21 +168,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -34,16 +34,14 @@ enum layer_names {
|
||||
_ADJUST
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK
|
||||
};
|
||||
|
||||
#define LS__SPC MT(MOD_LSFT, KC_SPC)
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[_QWERTY] = LAYOUT(
|
||||
@ -88,27 +86,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||
}
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -19,13 +19,6 @@
|
||||
#include "lib/oled_helper.h"
|
||||
#endif
|
||||
|
||||
enum custom_keycode {
|
||||
Mac_CS = SAFE_RANGE,
|
||||
Mac_PS,
|
||||
Win_CS,
|
||||
Win_PS,
|
||||
IOS_CS,
|
||||
};
|
||||
enum layerID {
|
||||
MAC_CS_1 = 0,
|
||||
MAC_CS_2,
|
||||
@ -40,6 +33,12 @@ enum layerID {
|
||||
SETTING,
|
||||
};
|
||||
|
||||
#define Mac_CS PDF(MAC_CS_1)
|
||||
#define Mac_PS PDF(MAC_PS_1)
|
||||
#define Win_CS PDF(WIN_CS_1)
|
||||
#define Win_PS PDF(WIN_PS_1)
|
||||
#define IOS_CS PDF(IOS_CS_1)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
// Mac
|
||||
// Clip Studio
|
||||
@ -234,44 +233,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// custom keycode
|
||||
// switch default layer
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case Mac_CS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(MAC_CS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case Mac_PS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(MAC_PS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case Win_CS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(WIN_CS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case Win_PS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(WIN_PS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case IOS_CS:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(IOS_CS_1);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// OLED Display
|
||||
#ifdef OLED_ENABLE
|
||||
bool oled_task_user(void) {
|
||||
|
@ -31,10 +31,7 @@ enum planck_layers {
|
||||
};
|
||||
|
||||
enum planck_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
PLOVER,
|
||||
PLOVER = SAFE_RANGE,
|
||||
BACKLIT,
|
||||
EXT_PLV
|
||||
};
|
||||
@ -42,6 +39,10 @@ enum planck_keycodes {
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -184,25 +185,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_RSFT);
|
||||
|
@ -18,11 +18,15 @@
|
||||
|
||||
enum planck_layers { _QWERTY, _COLEMAK, _DVORAK, _LOWER, _RAISE, _PLOVER, _ADJUST };
|
||||
|
||||
enum planck_keycodes { QWERTY = SAFE_RANGE, COLEMAK, DVORAK, PLOVER, BACKLIT, EXT_PLV };
|
||||
enum planck_keycodes { PLOVER = SAFE_RANGE, BACKLIT, EXT_PLV };
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
/* clang-format off */
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
@ -230,25 +234,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
}
|
||||
#endif
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
print("mode just switched to qwerty and this is a huge string\n");
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
register_code(KC_RSFT);
|
||||
|
@ -27,14 +27,15 @@ enum preonic_layers {
|
||||
};
|
||||
|
||||
enum preonic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -168,24 +169,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -25,9 +25,7 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
MACROPAD,
|
||||
FN,
|
||||
FN = SAFE_RANGE,
|
||||
ADJ,
|
||||
BACKLIT,
|
||||
RGBRST
|
||||
@ -37,7 +35,8 @@ enum macro_keycodes {
|
||||
KC_SAMPLEMACRO,
|
||||
};
|
||||
|
||||
|
||||
#define QWERT PDF(_QWERTY)
|
||||
#define MACROPAD PDF(_MACROPAD)
|
||||
|
||||
#define FN_ESC LT(_FN, KC_ESC)
|
||||
#define FN_CAPS LT(_FN, KC_CAPS)
|
||||
@ -109,18 +108,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
//uint8_t shifted = get_mods() & (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT));
|
||||
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case MACROPAD:
|
||||
if(record->event.pressed) {
|
||||
set_single_persistent_default_layer(_MACROPAD);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case FN:
|
||||
if (record->event.pressed) {
|
||||
//not sure how to have keyboard check mode and set it to a variable, so my work around
|
||||
|
@ -17,15 +17,16 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
FN,
|
||||
FN = SAFE_RANGE,
|
||||
ADJ,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
#define FN_CAPS LT(_FN, KC_CAPS)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* / QWERTY \
|
||||
* /-----------------------------------------\ /-----------------------------------------\
|
||||
@ -131,16 +132,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if(record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case FN:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_FN);
|
||||
|
@ -17,15 +17,16 @@ enum layer_number {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
FN,
|
||||
FN = SAFE_RANGE,
|
||||
ADJ,
|
||||
RGBRST
|
||||
};
|
||||
|
||||
#define FN_CAPS LT(_FN, KC_CAPS)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/* / QWERTY \
|
||||
* /-----------------------------------------\ /-----------------------------------------\
|
||||
@ -131,16 +132,6 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if(record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case FN:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_FN);
|
||||
|
@ -17,17 +17,13 @@ enum comet46_layers
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
RAISE,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -202,24 +198,3 @@ void matrix_scan_user(void) {
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -18,17 +18,13 @@ enum comet46_layers
|
||||
_ADJUST,
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
RAISE,
|
||||
};
|
||||
|
||||
#define LOWER MO(_LOWER)
|
||||
#define RAISE MO(_RAISE)
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -207,22 +203,5 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
set_keylog(keycode);
|
||||
}
|
||||
#endif
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
301
keyboards/skyloong/gk87/bl/ansi/keyboard.json
Normal file
301
keyboards/skyloong/gk87/bl/ansi/keyboard.json
Normal file
@ -0,0 +1,301 @@
|
||||
{
|
||||
"keyboard_name": "GK87 Backlight_ansi_1.0.0",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x6A87"
|
||||
},
|
||||
"community_layouts": ["tkl_ansi"],
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 7], "x": 7.5, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 8], "x": 8.5, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 9], "x": 9.5, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 10], "x": 11, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 11], "x": 12, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 12], "x": 13, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 13], "x": 14, "y": 0},
|
||||
{"label": "PrtSc", "matrix": [0, 14], "x": 15.25, "y": 0},
|
||||
{"label": "SL", "matrix": [0, 15], "x": 16.25, "y": 0},
|
||||
{"label": "PB", "matrix": [3, 13], "x": 17.25, "y": 0},
|
||||
|
||||
{"label": "~", "matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"label": "-_", "matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"label": "=+", "matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"label": "BS", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"label": "Ins", "matrix": [1, 14], "x": 15.25, "y": 1.25},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 16.25, "y": 1.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 17.25, "y": 1.25},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"label": "[", "matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"label": "]", "matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"label": "|", "matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
|
||||
{"label": "Del", "matrix": [2, 14], "x": 15.25, "y": 2.25},
|
||||
{"label": "End", "matrix": [2, 15], "x": 16.25, "y": 2.25},
|
||||
{"label": "PgDn", "matrix": [4, 15], "x": 17.25, "y": 2.25},
|
||||
|
||||
{"label": "Cap", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"label": ";", "matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"label": "'", "matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"label": "Ent", "matrix": [3, 12], "x": 12.75, "y": 3.25, "w": 2.25},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
|
||||
{"label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25},
|
||||
{"label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25},
|
||||
{"label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25},
|
||||
{"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25},
|
||||
{"label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25},
|
||||
{"label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25},
|
||||
{"label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25},
|
||||
{"label": ",", "matrix": [4, 8], "x": 9.25, "y": 4.25},
|
||||
{"label": ".", "matrix": [4, 9], "x": 10.25, "y": 4.25},
|
||||
{"label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 2.75},
|
||||
{"label": "Up", "matrix": [4, 14], "x": 16.25, "y": 4.25},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"label": "Com", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC1", "matrix": [5, 4], "x": 3.75, "y": 5.25, "w": 2.5},
|
||||
{"label": "SPAC", "matrix": [5, 5], "x": 6.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC2", "matrix": [5, 8], "x": 7.5, "y": 5.25, "w": 2.5},
|
||||
{"label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25, "w": 1.25},
|
||||
{"label": "Menu", "matrix": [5, 10], "x": 11.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Ctrl", "matrix": [5, 11], "x": 12.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "Fn", "matrix": [5, 12], "x": 13.75, "y": 5.25, "w": 1.25},
|
||||
{"label": "Left", "matrix": [5, 13], "x": 15.25, "y": 5.25},
|
||||
{"label": "Down", "matrix": [5, 14], "x": 16.25, "y": 5.25},
|
||||
{"label": "Right", "matrix": [5, 15], "x": 17.25, "y": 5.25}
|
||||
]
|
||||
},
|
||||
"LAYOUT_tkl_ansi": {
|
||||
"layout": [
|
||||
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 7], "x": 7.5, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 8], "x": 8.5, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 9], "x": 9.5, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 10], "x": 11, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 11], "x": 12, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 12], "x": 13, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 13], "x": 14, "y": 0},
|
||||
{"label": "PrtSc", "matrix": [0, 14], "x": 15.25, "y": 0},
|
||||
{"label": "SL", "matrix": [0, 15], "x": 16.25, "y": 0},
|
||||
{"label": "PB", "matrix": [3, 13], "x": 17.25, "y": 0},
|
||||
|
||||
{"label": "~", "matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"label": "-_", "matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"label": "=+", "matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"label": "BS", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"label": "Ins", "matrix": [1, 14], "x": 15.25, "y": 1.25},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 16.25, "y": 1.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 17.25, "y": 1.25},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"label": "[", "matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"label": "]", "matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"label": "|", "matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
|
||||
{"label": "Del", "matrix": [2, 14], "x": 15.25, "y": 2.25},
|
||||
{"label": "End", "matrix": [2, 15], "x": 16.25, "y": 2.25},
|
||||
{"label": "PgDn", "matrix": [4, 15], "x": 17.25, "y": 2.25},
|
||||
|
||||
{"label": "Cap", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"label": ";", "matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"label": "'", "matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"label": "Ent", "matrix": [3, 12], "x": 12.75, "y": 3.25, "w": 2.25},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
|
||||
{"label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25},
|
||||
{"label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25},
|
||||
{"label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25},
|
||||
{"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25},
|
||||
{"label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25},
|
||||
{"label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25},
|
||||
{"label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25},
|
||||
{"label": ",", "matrix": [4, 8], "x": 9.25, "y": 4.25},
|
||||
{"label": ".", "matrix": [4, 9], "x": 10.25, "y": 4.25},
|
||||
{"label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 2.75},
|
||||
{"label": "Up", "matrix": [4, 14], "x": 16.25, "y": 4.25},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"label": "Com", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC", "matrix": [5, 5], "x": 3.75, "y": 5.25, "w": 6.25},
|
||||
{"label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25, "w": 1.25},
|
||||
{"label": "Menu", "matrix": [5, 10], "x": 11.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Ctrl", "matrix": [5, 11], "x": 12.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "Fn", "matrix": [5, 12], "x": 13.75, "y": 5.25, "w": 1.25},
|
||||
{"label": "Left", "matrix": [5, 13], "x": 15.25, "y": 5.25},
|
||||
{"label": "Down", "matrix": [5, 14], "x": 16.25, "y": 5.25},
|
||||
{"label": "Right", "matrix": [5, 15], "x": 17.25, "y": 5.25}
|
||||
]
|
||||
},
|
||||
"LAYOUT_ansi_split_space": {
|
||||
"layout": [
|
||||
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 7], "x": 7.5, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 8], "x": 8.5, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 9], "x": 9.5, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 10], "x": 11, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 11], "x": 12, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 12], "x": 13, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 13], "x": 14, "y": 0},
|
||||
{"label": "PrtSc", "matrix": [0, 14], "x": 15.25, "y": 0},
|
||||
{"label": "SL", "matrix": [0, 15], "x": 16.25, "y": 0},
|
||||
{"label": "PB", "matrix": [3, 13], "x": 17.25, "y": 0},
|
||||
|
||||
{"label": "~", "matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"label": "-_", "matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"label": "=+", "matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"label": "BS", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"label": "Ins", "matrix": [1, 14], "x": 15.25, "y": 1.25},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 16.25, "y": 1.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 17.25, "y": 1.25},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"label": "[", "matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"label": "]", "matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"label": "|", "matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
|
||||
{"label": "Del", "matrix": [2, 14], "x": 15.25, "y": 2.25},
|
||||
{"label": "End", "matrix": [2, 15], "x": 16.25, "y": 2.25},
|
||||
{"label": "PgDn", "matrix": [4, 15], "x": 17.25, "y": 2.25},
|
||||
|
||||
{"label": "Cap", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"label": ";", "matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"label": "'", "matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"label": "Ent", "matrix": [3, 12], "x": 12.75, "y": 3.25, "w": 2.25},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 2.25},
|
||||
{"label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25},
|
||||
{"label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25},
|
||||
{"label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25},
|
||||
{"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25},
|
||||
{"label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25},
|
||||
{"label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25},
|
||||
{"label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25},
|
||||
{"label": ",", "matrix": [4, 8], "x": 9.25, "y": 4.25},
|
||||
{"label": ".", "matrix": [4, 9], "x": 10.25, "y": 4.25},
|
||||
{"label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 2.75},
|
||||
{"label": "Up", "matrix": [4, 14], "x": 16.25, "y": 4.25},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"label": "Com", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC1", "matrix": [5, 4], "x": 3.75, "y": 5.25, "w": 3.25},
|
||||
{"label": "SPAC2", "matrix": [5, 8], "x": 7, "y": 5.25, "w": 3},
|
||||
{"label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25, "w": 1.25},
|
||||
{"label": "Menu", "matrix": [5, 10], "x": 11.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Ctrl", "matrix": [5, 11], "x": 12.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "Fn", "matrix": [5, 12], "x": 13.75, "y": 5.25, "w": 1.25},
|
||||
{"label": "Left", "matrix": [5, 13], "x": 15.25, "y": 5.25},
|
||||
{"label": "Down", "matrix": [5, 14], "x": 16.25, "y": 5.25},
|
||||
{"label": "Right", "matrix": [5, 15], "x": 17.25, "y": 5.25}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
32
keyboards/skyloong/gk87/bl/ansi/keymaps/default/keymap.c
Normal file
32
keyboards/skyloong/gk87/bl/ansi/keymaps/default/keymap.c
Normal file
@ -0,0 +1,32 @@
|
||||
// Copyright 2023 JZ-Skyloong (@JZ-Skyloong)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT_all(
|
||||
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_MUTE, BL_TOGG, LSG(KC_S),
|
||||
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_INS, KC_HOME, 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_DEL, KC_END, 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_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_SPC, KC_SPC, KC_RALT, MO(1), KC_MENU, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
[1] = LAYOUT_all(
|
||||
_______, KC_F14, KC_F15, G(KC_TAB), KC_WSCH, G(C(KC_S)), KC_SLEP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_TOGG, BL_BRTG, BL_BRTG, KC_DEL, KC_INS, KC_HOME, KC_PGUP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, KC_END, KC_PGDN,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_UP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, BL_DOWN, KC_RGHT
|
||||
)
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(BL_DOWN, BL_UP), ENCODER_CCW_CW(C(KC_WH_D), C(KC_WH_U))},
|
||||
[1] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(BL_DOWN, BL_UP), ENCODER_CCW_CW(C(KC_WH_D), C(KC_WH_U))}
|
||||
};
|
||||
#endif
|
1
keyboards/skyloong/gk87/bl/ansi/keymaps/default/rules.mk
Normal file
1
keyboards/skyloong/gk87/bl/ansi/keymaps/default/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
ENCODER_MAP_ENABLE = yes
|
1
keyboards/skyloong/gk87/bl/ansi/rules.mk
Normal file
1
keyboards/skyloong/gk87/bl/ansi/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
# File intentionally blank
|
76
keyboards/skyloong/gk87/bl/bl.c
Normal file
76
keyboards/skyloong/gk87/bl/bl.c
Normal file
@ -0,0 +1,76 @@
|
||||
// Copyright 2023 NaturalZh (@NaturalZh)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#include "quantum.h"
|
||||
|
||||
bool dis_breath = 0;
|
||||
|
||||
void suspend_power_down_kb() {
|
||||
gpio_write_pin_high(MAC_PIN);
|
||||
suspend_power_down_user();
|
||||
}
|
||||
|
||||
void suspend_wakeup_init_kb() {
|
||||
suspend_wakeup_init_user();
|
||||
}
|
||||
|
||||
bool shutdown_kb(bool jump_to_bootloader) {
|
||||
gpio_write_pin_high(MAC_PIN);
|
||||
return shutdown_user(jump_to_bootloader);
|
||||
}
|
||||
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
if (!process_record_user(keycode, record)) {
|
||||
return false;
|
||||
}
|
||||
switch (keycode) {
|
||||
|
||||
case BL_TOGG:
|
||||
if (record->event.pressed) {
|
||||
if (is_backlight_breathing() && get_backlight_level()){
|
||||
dis_breath = 1;
|
||||
backlight_disable_breathing();
|
||||
backlight_enable();
|
||||
|
||||
} else if (dis_breath && !is_backlight_enabled()){
|
||||
backlight_enable_breathing();
|
||||
dis_breath = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
case BL_BRTG:
|
||||
if (record->event.pressed) {
|
||||
if (dis_breath || !is_backlight_enabled()){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
case BL_UP:
|
||||
dis_breath = 0;
|
||||
return true;
|
||||
|
||||
case BL_DOWN:
|
||||
if (record->event.pressed){
|
||||
if(dis_breath || !(is_backlight_enabled())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
layer_state_t default_layer_state_set_kb(layer_state_t state) {
|
||||
gpio_write_pin(MAC_PIN, !layer_state_cmp(state, 1));
|
||||
return state;
|
||||
}
|
||||
|
||||
void board_init(void) {
|
||||
// JTAG-DP Disabled and SW-DP Disabled
|
||||
AFIO->MAPR = (AFIO->MAPR & ~AFIO_MAPR_SWJ_CFG_Msk) | AFIO_MAPR_SWJ_CFG_DISABLE;
|
||||
gpio_set_pin_output(MAC_PIN);
|
||||
gpio_write_pin_high(MAC_PIN);
|
||||
}
|
7
keyboards/skyloong/gk87/bl/config.h
Normal file
7
keyboards/skyloong/gk87/bl/config.h
Normal file
@ -0,0 +1,7 @@
|
||||
// Copyright 2023 JZ-Skyloong (@JZ-Skyloong)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#define MAC_PIN C13
|
||||
#define ENCODER_MAP_KEY_DELAY 20
|
5
keyboards/skyloong/gk87/bl/halconf.h
Normal file
5
keyboards/skyloong/gk87/bl/halconf.h
Normal file
@ -0,0 +1,5 @@
|
||||
// Copyright 2023 JZ-Skyloong (@JZ-Skyloong)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
#define HAL_USE_PWM TRUE
|
||||
#include_next <halconf.h>
|
53
keyboards/skyloong/gk87/bl/info.json
Normal file
53
keyboards/skyloong/gk87/bl/info.json
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"manufacturer": "skyloong",
|
||||
"maintainer": "NaturalZh",
|
||||
"backlight": {
|
||||
"breathing": true,
|
||||
"breathing_period": 5,
|
||||
"default": {
|
||||
"breathing": false,
|
||||
"brightness": 30
|
||||
},
|
||||
"driver": "pwm",
|
||||
"levels": 20,
|
||||
"on_state": 1,
|
||||
"pin": "B8"
|
||||
},
|
||||
"debounce": 10,
|
||||
"bootloader": "stm32duino",
|
||||
"build": {
|
||||
"debounce_type": "asym_eager_defer_pk"
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A15", "pin_b": "B3", "resolution": 2},
|
||||
{"pin_a": "B4", "pin_b": "B5", "resolution": 2},
|
||||
{"pin_a": "B6", "pin_b": "B7", "resolution": 2}
|
||||
]
|
||||
},
|
||||
"features": {
|
||||
"backlight": true,
|
||||
"bootmagic": true,
|
||||
"command": true,
|
||||
"encoder": true,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "C15",
|
||||
"on_state": 0,
|
||||
"scroll_lock": "C14"
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A0", "A1", "A2", "A3", "A4", "A5", "B0", "B1", "B10", "B11", "B12", "A7", "A6", "B9", "A14", "A13"],
|
||||
"rows": ["A10", "A9", "A8", "B15", "B14", "B13"]
|
||||
},
|
||||
"processor": "STM32F103",
|
||||
"url": "https://github.com/JZ-Skyloong",
|
||||
"usb": {
|
||||
"max_power": 380,
|
||||
"vid": "0x1EA7"
|
||||
}
|
||||
}
|
304
keyboards/skyloong/gk87/bl/iso/keyboard.json
Normal file
304
keyboards/skyloong/gk87/bl/iso/keyboard.json
Normal file
@ -0,0 +1,304 @@
|
||||
{
|
||||
"keyboard_name": "GK87 Backlight_iso_1.0.0",
|
||||
"usb": {
|
||||
"device_version": "1.0.0",
|
||||
"pid": "0x6A88"
|
||||
},
|
||||
"community_layouts": ["tkl_iso"],
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 7], "x": 7.5, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 8], "x": 8.5, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 9], "x": 9.5, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 10], "x": 11, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 11], "x": 12, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 12], "x": 13, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 13], "x": 14, "y": 0},
|
||||
{"label": "PrtSc", "matrix": [0, 14], "x": 15.25, "y": 0},
|
||||
{"label": "SL", "matrix": [0, 15], "x": 16.25, "y": 0},
|
||||
{"label": "PB", "matrix": [3, 14], "x": 17.25, "y": 0},
|
||||
|
||||
{"label": "~", "matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"label": "-_", "matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"label": "=+", "matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"label": "BS", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"label": "Ins", "matrix": [1, 14], "x": 15.25, "y": 1.25},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 16.25, "y": 1.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 17.25, "y": 1.25},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"label": "[", "matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"label": "]", "matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"label": "Del", "matrix": [2, 14], "x": 15.25, "y": 2.25},
|
||||
{"label": "End", "matrix": [2, 15], "x": 16.25, "y": 2.25},
|
||||
{"label": "PgDn", "matrix": [4, 15], "x": 17.25, "y": 2.25},
|
||||
|
||||
{"label": "Cap", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"label": ";", "matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"label": "'", "matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"label": "k49", "matrix": [3, 12], "x": 12.75, "y": 3.25},
|
||||
{"label": "Ent", "matrix": [3, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h":2},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
|
||||
{"label": "k45", "matrix": [5, 3], "x": 1.25, "y": 4.25},
|
||||
{"label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25},
|
||||
{"label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25},
|
||||
{"label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25},
|
||||
{"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25},
|
||||
{"label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25},
|
||||
{"label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25},
|
||||
{"label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25},
|
||||
{"label": ",", "matrix": [4, 8], "x": 9.25, "y": 4.25},
|
||||
{"label": ".", "matrix": [4, 9], "x": 10.25, "y": 4.25},
|
||||
{"label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 2.75},
|
||||
{"label": "Up", "matrix": [4, 14], "x": 16.25, "y": 4.25},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"label": "Com", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC1", "matrix": [5, 4], "x": 3.75, "y": 5.25, "w": 2.5},
|
||||
{"label": "SPAC", "matrix": [5, 5], "x": 6.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC2", "matrix": [5, 7], "x": 7.5, "y": 5.25, "w": 2.5},
|
||||
{"label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25, "w": 1.25},
|
||||
{"label": "Menu", "matrix": [5, 10], "x": 11.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Ctrl", "matrix": [5, 11], "x": 12.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "Fn", "matrix": [5, 12], "x": 13.75, "y": 5.25, "w": 1.25},
|
||||
{"label": "Left", "matrix": [5, 13], "x": 15.25, "y": 5.25},
|
||||
{"label": "Down", "matrix": [5, 14], "x": 16.25, "y": 5.25},
|
||||
{"label": "Right", "matrix": [5, 15], "x": 17.25, "y": 5.25}
|
||||
]
|
||||
},
|
||||
"LAYOUT_tkl_iso": {
|
||||
"layout": [
|
||||
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 7], "x": 7.5, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 8], "x": 8.5, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 9], "x": 9.5, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 10], "x": 11, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 11], "x": 12, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 12], "x": 13, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 13], "x": 14, "y": 0},
|
||||
{"label": "PrtSc", "matrix": [0, 14], "x": 15.25, "y": 0},
|
||||
{"label": "SL", "matrix": [0, 15], "x": 16.25, "y": 0},
|
||||
{"label": "PB", "matrix": [3, 14], "x": 17.25, "y": 0},
|
||||
|
||||
{"label": "~", "matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"label": "-_", "matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"label": "=+", "matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"label": "BS", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"label": "Ins", "matrix": [1, 14], "x": 15.25, "y": 1.25},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 16.25, "y": 1.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 17.25, "y": 1.25},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"label": "[", "matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"label": "]", "matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"label": "Del", "matrix": [2, 14], "x": 15.25, "y": 2.25},
|
||||
{"label": "End", "matrix": [2, 15], "x": 16.25, "y": 2.25},
|
||||
{"label": "PgDn", "matrix": [4, 15], "x": 17.25, "y": 2.25},
|
||||
|
||||
{"label": "Cap", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"label": ";", "matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"label": "'", "matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"label": "k49", "matrix": [3, 12], "x": 12.75, "y": 3.25},
|
||||
{"label": "Ent", "matrix": [3, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h":2},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
|
||||
{"label": "k45", "matrix": [5, 3], "x": 1.25, "y": 4.25},
|
||||
{"label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25},
|
||||
{"label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25},
|
||||
{"label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25},
|
||||
{"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25},
|
||||
{"label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25},
|
||||
{"label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25},
|
||||
{"label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25},
|
||||
{"label": ",", "matrix": [4, 8], "x": 9.25, "y": 4.25},
|
||||
{"label": ".", "matrix": [4, 9], "x": 10.25, "y": 4.25},
|
||||
{"label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 2.75},
|
||||
{"label": "Up", "matrix": [4, 14], "x": 16.25, "y": 4.25},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"label": "Com", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC", "matrix": [5, 5], "x": 3.75, "y": 5.25, "w": 6.25},
|
||||
{"label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25, "w": 1.25},
|
||||
{"label": "Menu", "matrix": [5, 10], "x": 11.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Ctrl", "matrix": [5, 11], "x": 12.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "Fn", "matrix": [5, 12], "x": 13.75, "y": 5.25, "w": 1.25},
|
||||
{"label": "Left", "matrix": [5, 13], "x": 15.25, "y": 5.25},
|
||||
{"label": "Down", "matrix": [5, 14], "x": 16.25, "y": 5.25},
|
||||
{"label": "Right", "matrix": [5, 15], "x": 17.25, "y": 5.25}
|
||||
]
|
||||
},
|
||||
"LAYOUT_iso_split_space": {
|
||||
"layout": [
|
||||
{"label": "ESC", "matrix": [0, 0], "x": 0, "y": 0},
|
||||
{"label": "F1", "matrix": [0, 2], "x": 2, "y": 0},
|
||||
{"label": "F2", "matrix": [0, 3], "x": 3, "y": 0},
|
||||
{"label": "F3", "matrix": [0, 4], "x": 4, "y": 0},
|
||||
{"label": "F4", "matrix": [0, 5], "x": 5, "y": 0},
|
||||
{"label": "F5", "matrix": [0, 6], "x": 6.5, "y": 0},
|
||||
{"label": "F6", "matrix": [0, 7], "x": 7.5, "y": 0},
|
||||
{"label": "F7", "matrix": [0, 8], "x": 8.5, "y": 0},
|
||||
{"label": "F8", "matrix": [0, 9], "x": 9.5, "y": 0},
|
||||
{"label": "F9", "matrix": [0, 10], "x": 11, "y": 0},
|
||||
{"label": "F10", "matrix": [0, 11], "x": 12, "y": 0},
|
||||
{"label": "F11", "matrix": [0, 12], "x": 13, "y": 0},
|
||||
{"label": "F12", "matrix": [0, 13], "x": 14, "y": 0},
|
||||
{"label": "PrtSc", "matrix": [0, 14], "x": 15.25, "y": 0},
|
||||
{"label": "SL", "matrix": [0, 15], "x": 16.25, "y": 0},
|
||||
{"label": "PB", "matrix": [3, 14], "x": 17.25, "y": 0},
|
||||
|
||||
{"label": "~", "matrix": [1, 0], "x": 0, "y": 1.25},
|
||||
{"label": "1", "matrix": [1, 1], "x": 1, "y": 1.25},
|
||||
{"label": "2", "matrix": [1, 2], "x": 2, "y": 1.25},
|
||||
{"label": "3", "matrix": [1, 3], "x": 3, "y": 1.25},
|
||||
{"label": "4", "matrix": [1, 4], "x": 4, "y": 1.25},
|
||||
{"label": "5", "matrix": [1, 5], "x": 5, "y": 1.25},
|
||||
{"label": "6", "matrix": [1, 6], "x": 6, "y": 1.25},
|
||||
{"label": "7", "matrix": [1, 7], "x": 7, "y": 1.25},
|
||||
{"label": "8", "matrix": [1, 8], "x": 8, "y": 1.25},
|
||||
{"label": "9", "matrix": [1, 9], "x": 9, "y": 1.25},
|
||||
{"label": "0", "matrix": [1, 10], "x": 10, "y": 1.25},
|
||||
{"label": "-_", "matrix": [1, 11], "x": 11, "y": 1.25},
|
||||
{"label": "=+", "matrix": [1, 12], "x": 12, "y": 1.25},
|
||||
{"label": "BS", "matrix": [1, 13], "x": 13, "y": 1.25, "w": 2},
|
||||
{"label": "Ins", "matrix": [1, 14], "x": 15.25, "y": 1.25},
|
||||
{"label": "Home", "matrix": [1, 15], "x": 16.25, "y": 1.25},
|
||||
{"label": "PgUp", "matrix": [3, 15], "x": 17.25, "y": 1.25},
|
||||
|
||||
{"label": "Tab", "matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
|
||||
{"label": "Q", "matrix": [2, 1], "x": 1.5, "y": 2.25},
|
||||
{"label": "W", "matrix": [2, 2], "x": 2.5, "y": 2.25},
|
||||
{"label": "E", "matrix": [2, 3], "x": 3.5, "y": 2.25},
|
||||
{"label": "R", "matrix": [2, 4], "x": 4.5, "y": 2.25},
|
||||
{"label": "T", "matrix": [2, 5], "x": 5.5, "y": 2.25},
|
||||
{"label": "Y", "matrix": [2, 6], "x": 6.5, "y": 2.25},
|
||||
{"label": "U", "matrix": [2, 7], "x": 7.5, "y": 2.25},
|
||||
{"label": "I", "matrix": [2, 8], "x": 8.5, "y": 2.25},
|
||||
{"label": "O", "matrix": [2, 9], "x": 9.5, "y": 2.25},
|
||||
{"label": "P", "matrix": [2, 10], "x": 10.5, "y": 2.25},
|
||||
{"label": "[", "matrix": [2, 11], "x": 11.5, "y": 2.25},
|
||||
{"label": "]", "matrix": [2, 12], "x": 12.5, "y": 2.25},
|
||||
{"label": "Del", "matrix": [2, 14], "x": 15.25, "y": 2.25},
|
||||
{"label": "End", "matrix": [2, 15], "x": 16.25, "y": 2.25},
|
||||
{"label": "PgDn", "matrix": [4, 15], "x": 17.25, "y": 2.25},
|
||||
|
||||
{"label": "Cap", "matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
|
||||
{"label": "A", "matrix": [3, 1], "x": 1.75, "y": 3.25},
|
||||
{"label": "S", "matrix": [3, 2], "x": 2.75, "y": 3.25},
|
||||
{"label": "D", "matrix": [3, 3], "x": 3.75, "y": 3.25},
|
||||
{"label": "F", "matrix": [3, 4], "x": 4.75, "y": 3.25},
|
||||
{"label": "G", "matrix": [3, 5], "x": 5.75, "y": 3.25},
|
||||
{"label": "H", "matrix": [3, 6], "x": 6.75, "y": 3.25},
|
||||
{"label": "J", "matrix": [3, 7], "x": 7.75, "y": 3.25},
|
||||
{"label": "K", "matrix": [3, 8], "x": 8.75, "y": 3.25},
|
||||
{"label": "L", "matrix": [3, 9], "x": 9.75, "y": 3.25},
|
||||
{"label": ";", "matrix": [3, 10], "x": 10.75, "y": 3.25},
|
||||
{"label": "'", "matrix": [3, 11], "x": 11.75, "y": 3.25},
|
||||
{"label": "k49", "matrix": [3, 12], "x": 12.75, "y": 3.25},
|
||||
{"label": "Ent", "matrix": [3, 13], "x": 13.75, "y": 2.25, "w": 1.25, "h":2},
|
||||
|
||||
{"label": "Shift", "matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
|
||||
{"label": "k45", "matrix": [5, 3], "x": 1.25, "y": 4.25},
|
||||
{"label": "Z", "matrix": [4, 1], "x": 2.25, "y": 4.25},
|
||||
{"label": "X", "matrix": [4, 2], "x": 3.25, "y": 4.25},
|
||||
{"label": "C", "matrix": [4, 3], "x": 4.25, "y": 4.25},
|
||||
{"label": "V", "matrix": [4, 4], "x": 5.25, "y": 4.25},
|
||||
{"label": "B", "matrix": [4, 5], "x": 6.25, "y": 4.25},
|
||||
{"label": "N", "matrix": [4, 6], "x": 7.25, "y": 4.25},
|
||||
{"label": "M", "matrix": [4, 7], "x": 8.25, "y": 4.25},
|
||||
{"label": ",", "matrix": [4, 8], "x": 9.25, "y": 4.25},
|
||||
{"label": ".", "matrix": [4, 9], "x": 10.25, "y": 4.25},
|
||||
{"label": "?", "matrix": [4, 10], "x": 11.25, "y": 4.25},
|
||||
{"label": "Shift", "matrix": [4, 12], "x": 12.25, "y": 4.25, "w": 2.75},
|
||||
{"label": "Up", "matrix": [4, 14], "x": 16.25, "y": 4.25},
|
||||
|
||||
{"label": "Ctrl", "matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.25},
|
||||
{"label": "Com", "matrix": [5, 1], "x": 1.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Alt", "matrix": [5, 2], "x": 2.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "SPAC1", "matrix": [5, 4], "x": 3.75, "y": 5.25, "w": 3.25},
|
||||
{"label": "SPAC2", "matrix": [5, 7], "x": 7, "y": 5.25, "w": 3},
|
||||
{"label": "Alt", "matrix": [5, 9], "x": 10, "y": 5.25, "w": 1.25},
|
||||
{"label": "Menu", "matrix": [5, 10], "x": 11.25, "y": 5.25, "w": 1.25},
|
||||
{"label": "Ctrl", "matrix": [5, 11], "x": 12.5, "y": 5.25, "w": 1.25},
|
||||
{"label": "Fn", "matrix": [5, 12], "x": 13.75, "y": 5.25, "w": 1.25},
|
||||
{"label": "Left", "matrix": [5, 13], "x": 15.25, "y": 5.25},
|
||||
{"label": "Down", "matrix": [5, 14], "x": 16.25, "y": 5.25},
|
||||
{"label": "Right", "matrix": [5, 15], "x": 17.25, "y": 5.25}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
33
keyboards/skyloong/gk87/bl/iso/keymaps/default/keymap.c
Normal file
33
keyboards/skyloong/gk87/bl/iso/keymaps/default/keymap.c
Normal file
@ -0,0 +1,33 @@
|
||||
// Copyright 2023 JZ-Skyloong (@JZ-Skyloong)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
[0] = LAYOUT_all(
|
||||
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_MUTE, BL_TOGG, LSG(KC_S),
|
||||
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_INS, KC_HOME, 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_DEL, KC_END, 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_NUHS, KC_ENT,
|
||||
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
|
||||
KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT
|
||||
),
|
||||
|
||||
[1] = LAYOUT_all(
|
||||
_______, KC_F14, KC_F15, G(KC_TAB), KC_WSCH, G(C(KC_S)), KC_SLEP, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, KC_VOLD, KC_VOLU, KC_PSCR, KC_SCRL, KC_PAUS,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_RMOD, RGB_MOD, KC_DEL, KC_INS, KC_HOME, KC_PGUP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, KC_END, KC_PGDN,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, BL_UP,
|
||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, BL_DOWN, KC_RGHT
|
||||
)
|
||||
};
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
||||
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(BL_DOWN, BL_UP), ENCODER_CCW_CW(C(KC_WH_D), C(KC_WH_U))},
|
||||
[1] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(BL_DOWN, BL_UP), ENCODER_CCW_CW(C(KC_WH_D), C(KC_WH_U))}
|
||||
};
|
||||
#endif
|
||||
|
1
keyboards/skyloong/gk87/bl/iso/keymaps/default/rules.mk
Normal file
1
keyboards/skyloong/gk87/bl/iso/keymaps/default/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
ENCODER_MAP_ENABLE = yes
|
1
keyboards/skyloong/gk87/bl/iso/rules.mk
Normal file
1
keyboards/skyloong/gk87/bl/iso/rules.mk
Normal file
@ -0,0 +1 @@
|
||||
# File intentionally blank
|
10
keyboards/skyloong/gk87/bl/mcuconf.h
Normal file
10
keyboards/skyloong/gk87/bl/mcuconf.h
Normal file
@ -0,0 +1,10 @@
|
||||
// Copyright 2023 JZ-Skyloong (@JZ-Skyloong)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include_next <mcuconf.h>
|
||||
|
||||
#undef STM32_PWM_USE_TIM4
|
||||
#define STM32_PWM_USE_TIM4 TRUE
|
||||
|
||||
|
33
keyboards/skyloong/gk87/bl/readme.md
Normal file
33
keyboards/skyloong/gk87/bl/readme.md
Normal file
@ -0,0 +1,33 @@
|
||||
# GK87 Backlight Keyboard
|
||||
|
||||
![GK87 BL ANSI](https://i.imgur.com/pWJwQKG.jpg)
|
||||
|
||||
## The PCB features:
|
||||
* QMK & VIA compatibility
|
||||
* LED backlight
|
||||
|
||||
The following is the QMK Firmware for the Destop 87% keylayout - designed by Dongguan Jizhi Electronic Technology Co., Ltd
|
||||
|
||||
* Keyboard Maintainer: [NaturalZh](https://github.com/NaturalZh)
|
||||
* Hardware Supported: DestopPCB for Skyloong keylayout 85%, STM32F103C8T6
|
||||
* Hardware Availability: https://skyloongtech.com https://epomaker.com/
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
make skyloong/gk87/bl/ansi:default
|
||||
make skyloong/gk87/bl/iso:default
|
||||
|
||||
Flashing example for this keyboard:
|
||||
|
||||
make skyloong/gk87/bl/ansi:default:flash
|
||||
make skyloong/gk87/bl/iso:default:flash
|
||||
|
||||
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).
|
||||
|
||||
## Bootloader
|
||||
|
||||
Enter the bootloader in 3 ways:
|
||||
|
||||
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
|
||||
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
|
||||
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
|
@ -12,14 +12,15 @@ enum sofle_layers {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWERTY = QK_USER,
|
||||
KC_COLEMAK,
|
||||
KC_PRVWD,
|
||||
KC_PRVWD = QK_USER,
|
||||
KC_NXTWD,
|
||||
KC_LSTRT,
|
||||
KC_LEND
|
||||
};
|
||||
|
||||
#define KC_QWERTY PDF(_QWERTY)
|
||||
#define KC_COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -134,16 +135,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_PRVWD:
|
||||
if (record->event.pressed) {
|
||||
if (keymap_config.swap_lctl_lgui) {
|
||||
|
@ -76,15 +76,16 @@ enum sofle_layers {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWERTY = SAFE_RANGE,
|
||||
KC_COLEMAK,
|
||||
KC_COLEMAKDH,
|
||||
KC_LOWER,
|
||||
KC_LOWER = SAFE_RANGE,
|
||||
KC_RAISE,
|
||||
KC_ADJUST,
|
||||
KC_D_MUTE
|
||||
};
|
||||
|
||||
#define KC_QWERTY PDF(_QWERTY)
|
||||
#define KC_COLEMAK PDF(_COLEMAK)
|
||||
#define KC_COLEMAKDH PDF(_COLEMAKDH)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
* QWERTY
|
||||
@ -478,21 +479,6 @@ bool oled_task_user(void) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_COLEMAKDH:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAKDH);
|
||||
}
|
||||
return false;
|
||||
case KC_LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -14,14 +14,15 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum subatomic_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
BACKLIT
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -154,24 +155,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -18,11 +18,9 @@
|
||||
#define L_CURBR LSFT(KC_LBRC)
|
||||
#define R_CURBR LSFT(KC_RBRC)
|
||||
|
||||
enum custom_keycodes {
|
||||
DVORAK = SAFE_RANGE,
|
||||
QWERTY,
|
||||
COLEMAK
|
||||
};
|
||||
#define QWERTY PDF(_QW)
|
||||
#define COLEMAK PDF(_CM)
|
||||
#define DVORAK PDF(_DV)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_QW] = LAYOUT( /* Qwerty */
|
||||
@ -62,26 +60,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
_______, KC_LSFT, KC_B, KC_SPC, KC_C, _______, _______, _______
|
||||
)
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch(keycode) {
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DV);
|
||||
}
|
||||
return false;
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QW);
|
||||
}
|
||||
return false;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_CM);
|
||||
}
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@ -26,9 +26,7 @@ enum grandiceps_layers {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
KC_QWERTY = SAFE_RANGE,
|
||||
KC_COLEMAK,
|
||||
KC_LOWER,
|
||||
KC_LOWER = SAFE_RANGE,
|
||||
KC_RAISE,
|
||||
KC_ADJUST,
|
||||
KC_PRVWD,
|
||||
@ -39,7 +37,8 @@ enum custom_keycodes {
|
||||
KC_TEAMS
|
||||
};
|
||||
|
||||
|
||||
#define KC_QWERTY PDF(_QWERTY)
|
||||
#define KC_COLEMAK PDF(_COLEMAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
/*
|
||||
@ -154,19 +153,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
|
||||
switch (keycode) {
|
||||
case KC_QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
case KC_COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
case KC_LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -10,14 +10,15 @@ enum layer_names {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
COLEMAK,
|
||||
DVORAK,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
ADJUST
|
||||
};
|
||||
|
||||
#define QWERTY PDF(_QWERTY)
|
||||
#define COLEMAK PDF(_COLEMAK)
|
||||
#define DVORAK PDF(_DVORAK)
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
/* Qwerty
|
||||
@ -134,24 +135,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case COLEMAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_COLEMAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case DVORAK:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_DVORAK);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
layer_on(_LOWER);
|
||||
|
@ -24,8 +24,7 @@ enum waldo_layers {
|
||||
};
|
||||
|
||||
enum waldo_keycodes {
|
||||
QWERTY = SAFE_RANGE,
|
||||
BACKLIT
|
||||
BACKLIT = SAFE_RANGE,
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
@ -78,12 +77,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case QWERTY:
|
||||
if (record->event.pressed) {
|
||||
set_single_persistent_default_layer(_QWERTY);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
case BACKLIT:
|
||||
if (record->event.pressed) {
|
||||
#ifdef BACKLIGHT_ENABLE
|
||||
|
@ -275,6 +275,7 @@ bool music_mask_kb(uint16_t keycode) {
|
||||
case QK_TO ... QK_TO_MAX:
|
||||
case QK_MOMENTARY ... QK_MOMENTARY_MAX:
|
||||
case QK_DEF_LAYER ... QK_DEF_LAYER_MAX:
|
||||
case QK_PERSISTENT_DEF_LAYER ... QK_PERSISTENT_DEF_LAYER_MAX:
|
||||
case QK_TOGGLE_LAYER ... QK_TOGGLE_LAYER_MAX:
|
||||
case QK_ONE_SHOT_LAYER ... QK_ONE_SHOT_LAYER_MAX:
|
||||
case QK_LAYER_TAP_TOGGLE ... QK_LAYER_TAP_TOGGLE_MAX:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user