[Keymap] jotix layouts adjustments (#5453)
parent
cd696ed3d1
commit
066465fa6f
|
@ -15,10 +15,6 @@ extern keymap_config_t keymap_config;
|
||||||
#define _RAISE 2
|
#define _RAISE 2
|
||||||
#define _ADJUST 3
|
#define _ADJUST 3
|
||||||
|
|
||||||
enum planck_keycodes {
|
|
||||||
BACKLIT = SAFE_RANGE
|
|
||||||
};
|
|
||||||
|
|
||||||
#define LOWER MO(_LOWER)
|
#define LOWER MO(_LOWER)
|
||||||
#define RAISE MO(_RAISE)
|
#define RAISE MO(_RAISE)
|
||||||
|
|
||||||
|
@ -26,9 +22,9 @@ enum planck_keycodes {
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | |
|
* | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | caps | F11 | F12 | | | | | - | = | [ | ] | |
|
* | caps | F11 | F12 | | | | | - | = | [ | ] | \ |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | vol- | mute | vol+ | | | | | | | | \ |
|
* | | vol- | mute | vol+ | | | | _ | + | { | } | | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | prev | play | next | | | | | | | | |
|
* | | prev | play | next | | | | | | | | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
@ -37,8 +33,8 @@ enum planck_keycodes {
|
||||||
*/
|
*/
|
||||||
#define _FUNCT LAYOUT_ortho_5x12 (\
|
#define _FUNCT LAYOUT_ortho_5x12 (\
|
||||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,\
|
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,\
|
||||||
KC_CAPS, KC_F11, KC_F12, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,\
|
KC_CAPS, KC_F11, KC_F12, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,\
|
||||||
_______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, _______, _______, _______, _______, _______, KC_BSLS,\
|
_______, KC_VOLD, KC_MUTE, KC_VOLU, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,\
|
||||||
_______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______,\
|
_______, KC_MPRV, KC_MPLY, KC_MNXT, _______, _______, _______, _______, _______, _______, _______, _______,\
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END\
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END\
|
||||||
)
|
)
|
||||||
|
|
|
@ -32,6 +32,6 @@ Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
### The Defaukt Keymap
|
### The Defaukt Keymap
|
||||||
|
|
||||||
![Default Keymap](https://i.imgur.com/4WTmcSN.jpg)
|
![Default Keymap](https://i.imgur.com/g85V8K6.png)
|
||||||
|
|
||||||
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).
|
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).
|
||||||
|
|
|
@ -15,10 +15,6 @@ extern keymap_config_t keymap_config;
|
||||||
#define _RAISE 2
|
#define _RAISE 2
|
||||||
#define _ADJUST 3
|
#define _ADJUST 3
|
||||||
|
|
||||||
enum planck_keycodes {
|
|
||||||
BACKLIT = SAFE_RANGE
|
|
||||||
};
|
|
||||||
|
|
||||||
#define LOWER MO(_LOWER)
|
#define LOWER MO(_LOWER)
|
||||||
#define RAISE MO(_RAISE)
|
#define RAISE MO(_RAISE)
|
||||||
|
|
||||||
|
@ -32,21 +28,21 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | lshift | Z | X | C | V | B | N | M | , | . | / | enter |
|
* | lshift | Z | X | C | V | B | N | M | , | . | / | enter |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* |backlit | lctrl | lgui | lalt | lower | space | space | raise | left | down | up | right |
|
* | lctrl | lgui | lalt | ralt | lower | space | space | raise | left | down | up | right |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
*/
|
*/
|
||||||
[_QWERTY] = LAYOUT_ortho_4x12 (
|
[_QWERTY] = LAYOUT_ortho_4x12 (
|
||||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
KC_ESC, 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_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_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
|
||||||
BACKLIT, KC_LCTL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
KC_LCTL, KC_LGUI, KC_LALT, KC_RALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
||||||
),
|
),
|
||||||
|
|
||||||
/* Lower
|
/* Lower
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
|
* | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
* | caps | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | |
|
* | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
@ -55,7 +51,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
*/
|
*/
|
||||||
[_LOWER] = LAYOUT_ortho_4x12 (
|
[_LOWER] = LAYOUT_ortho_4x12 (
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
||||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
|
KC_CAPS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______,
|
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
|
@ -78,12 +74,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END
|
||||||
),
|
),
|
||||||
|
|
||||||
|
/* Adjust */
|
||||||
[_ADJUST] = LAYOUT_ortho_4x12 (
|
[_ADJUST] = LAYOUT_ortho_4x12 (
|
||||||
_______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, RESET, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
||||||
|
_______, _______, _______, _______, _______, BL_STEP, BL_BRTG, _______, _______, _______, _______, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t layer_state_set_user(uint32_t state) {
|
uint32_t layer_state_set_user(uint32_t state) {
|
||||||
|
@ -93,23 +90,3 @@ uint32_t layer_state_set_user(uint32_t state) {
|
||||||
void matrix_init_user(void) {
|
void matrix_init_user(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|
||||||
switch (keycode) {
|
|
||||||
|
|
||||||
case BACKLIT:
|
|
||||||
if (record->event.pressed) {
|
|
||||||
register_code(KC_RSFT);
|
|
||||||
#ifdef BACKLIGHT_ENABLE
|
|
||||||
backlight_step();
|
|
||||||
#endif
|
|
||||||
} else {
|
|
||||||
unregister_code(KC_RSFT);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -33,6 +33,6 @@ Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
### The Defaukt Keymap
|
### The Defaukt Keymap
|
||||||
|
|
||||||
![Default Keymap](https://i.imgur.com/Fh7g1AQ.jpg)
|
![Default Keymap](https://i.imgur.com/xh7Dmd7.png)
|
||||||
|
|
||||||
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).
|
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).
|
||||||
|
|
|
@ -69,8 +69,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
*/
|
*/
|
||||||
[_RAISE] = LAYOUT_ortho_4x12 (
|
[_RAISE] = LAYOUT_ortho_4x12 (
|
||||||
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,
|
||||||
KC_CAPS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_QUOT,
|
KC_CAPS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
|
||||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_DQUO,
|
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Jotix ortho 4x12 keymap
|
# Jotix ortho 4x12 keymap
|
||||||
|
|
||||||
![keymap](https://i.imgur.com/fsyz4E5.jpg)
|
![keymap](https://i.imgur.com/1NxoqW6.png)
|
||||||
|
|
||||||
Tested on:
|
Tested on:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue