Skip to content

Commit

Permalink
Merge pull request #12 from yuanw/jan-improve
Browse files Browse the repository at this point in the history
Jan improve
  • Loading branch information
yuanwang-wf authored Feb 1, 2024
2 parents ffc54cd + aeb48c2 commit 021971b
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 52 deletions.
38 changes: 25 additions & 13 deletions output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ combos:
p:
- 2
- 3
- k: Z
- k: K
l:
- Base
p:
- 6
- 7
- k: Z
l:
- Base
p:
- 7
- 8
- k: B
l:
- Base
Expand All @@ -35,23 +41,29 @@ combos:
p:
- 26
- 27
- k: L
l:
- Base
p:
- 27
- 28
layers:
Base:
- - '?'
- - ''
- W
- M
- P
- Q
- Z
- K
- s: <
t: ','
- &id002
s: '>'
t: .
- &id001
s: ':'
t: ;
- &id002
s: '>'
t: .
- ''
- - h: "\u2318"
t: R
- h: "\u2325"
Expand Down Expand Up @@ -139,10 +151,10 @@ layers:
- ''
- ''
- ''
- ''
- '{'
- \
- '}'
- ''
- - "\u2318"
- "\u2325"
- "\u2303"
Expand Down Expand Up @@ -177,20 +189,20 @@ layers:
- RGB MOD
- ''
- ''
- V
- '['
- /
- ']'
- ''
- - "\u21E4"
- "\U0001F509"
- "\U0001F507"
- "\U0001F50A"
- "\u21E5"
- Caps Word
- H
- J
- K
- L
- HOME
- PGDN
- PGUP
- END
- - ''
- ''
- ''
Expand All @@ -215,10 +227,10 @@ layers:
- ''
- ''
- ''
- ''
- (
- '|'
- )
- ''
- - "\u2318"
- "\u2325"
- "\u2303"
Expand Down
28 changes: 17 additions & 11 deletions qmk/yuanw/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ enum my_keycodes { RDO = SAFE_RANGE,
// clang-format off
/** \brief QWERTY layout (3 rows, 10 columns). */
#define LAYOUT_LAYER_BASE \
KC_QUESTION, KC_W, KC_M, KC_P, KC_Q, KC_Z, KC_K, KC_COMM, KC_DOT, KC_SCLN, \
KC_R, KC_S, KC_N, KC_T, KC_G, KC_V, KC_H, KC_A, KC_I, KC_O, \
KC_X, KC_C, KC_F, KC_D, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_QUOT, \
ESC_MED, SPC_NAV, TAB_FUN, ENT_SYM, E_NUM
XXXXXXX, KC_W, KC_M, KC_P, KC_Q, KC_Z, KC_COMM, KC_SCLN, KC_DOT, XXXXXXX, \
KC_R, KC_S, KC_N, KC_T, KC_G, KC_V, KC_H, KC_A, KC_I, KC_O, \
KC_X, KC_C, KC_F, KC_D, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_QUOT, \
ESC_MED, SPC_NAV, TAB_FUN, ENT_SYM, E_NUM

/** Convenience row shorthands. */
#define _______________DEAD_HALF_ROW_______________ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX
Expand All @@ -96,7 +96,7 @@ enum my_keycodes { RDO = SAFE_RANGE,
* from the base layer to enable auto-repeat.
*/
#define LAYOUT_LAYER_FUNCTION \
_______________DEAD_HALF_ROW_______________, XXXXXXX, XXXXXXX, KC_LCBR, KC_BSLS, KC_RCBR, \
_______________DEAD_HALF_ROW_______________, XXXXXXX, KC_LCBR, KC_BSLS, KC_RCBR, XXXXXXX, \
______________HOME_ROW_GACS_L______________, KC_SCRL, LAG(KC_1), LAG(KC_2), LAG(KC_3), LAG(KC_4), \
_______________DEAD_HALF_ROW_______________, KC_PAUS, LSG(KC_1), LSG(KC_2), LSG(KC_3), LSG(KC_4), \
XXXXXXX, XXXXXXX, _______, XXXXXXX, KC_TAB
Expand All @@ -107,8 +107,8 @@ enum my_keycodes { RDO = SAFE_RANGE,
* symmetrical to accomodate the left- and right-hand trackball.
*/
#define LAYOUT_LAYER_MEDIA \
XXXXXXX,RGB_RMOD, RGB_TOG, RGB_MOD, XXXXXXX, XXXXXXX, KC_V, KC_LBRC, KC_SLSH, KC_RBRC, \
KC_MPRV, KC_VOLD, KC_MUTE, KC_VOLU, KC_MNXT, QK_CAPS_WORD_TOGGLE, KC_H, KC_J, KC_K, KC_L, \
XXXXXXX,RGB_RMOD, RGB_TOG, RGB_MOD, XXXXXXX, XXXXXXX, KC_LBRC, KC_SLSH, KC_RBRC, XXXXXXX, \
KC_MPRV, KC_VOLD, KC_MUTE, KC_VOLU, KC_MNXT, QK_CAPS_WORD_TOGGLE, KC_HOME, KC_PGDN, KC_PGUP, KC_END, \
XXXXXXX, XXXXXXX, XXXXXXX, EE_CLR, QK_BOOT, QK_BOOT, KC_HOME, KC_PGDN, KC_PGUP, KC_END, \
_______, XXXXXXX, XXXXXXX, XXXXXXX, KC_TAB

Expand All @@ -128,7 +128,7 @@ enum my_keycodes { RDO = SAFE_RANGE,
* base layer to avoid having to layer change mid edit and to enable auto-repeat.
*/
#define LAYOUT_LAYER_NAVIGATION \
_______________DEAD_HALF_ROW_______________, XXXXXXX, XXXXXXX, KC_LPRN, KC_PIPE, KC_RPRN, \
_______________DEAD_HALF_ROW_______________, XXXXXXX, KC_LPRN, KC_PIPE, KC_RPRN, XXXXXXX, \
______________HOME_ROW_GACS_L______________, KC_CAPS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, \
_______________DEAD_HALF_ROW_______________, RDO, PST, CPY, CUT, UND, \
XXXXXXX, _______, XXXXXXX, ALTREP2 , ALTREP3
Expand Down Expand Up @@ -267,27 +267,33 @@ enum combos {
FD_B,
LU_J,
MP_Q,
KCOMM_Z,
COMMSCLN_K,
SCLNDOT_Z,
LEFT_QUESTION,
CF_X,
UY_L,
COMBO_LENGTH
};
uint16_t COMBO_LEN = COMBO_LENGTH; // remove the COMBO_COUNT define and use this instead!

const uint16_t PROGMEM b_combo[] = {KC_F, KC_D, COMBO_END};
const uint16_t PROGMEM j_combo[] = {KC_L, KC_U, COMBO_END};
const uint16_t PROGMEM q_combo[] = {KC_M, KC_P, COMBO_END};
const uint16_t PROGMEM z_combo[] = {KC_K, KC_COMM, COMBO_END};
const uint16_t PROGMEM k_combo[] = {KC_COMM, KC_SCLN, COMBO_END};
const uint16_t PROGMEM z_combo[] = {KC_SCLN, KC_DOT, COMBO_END};
const uint16_t PROGMEM left_combo[] = {KC_W, KC_M, COMBO_END};
const uint16_t PROGMEM x_combo[] = {KC_C, KC_F, COMBO_END};
const uint16_t PROGMEM l_combo[] = {KC_U, KC_Y, COMBO_END};

combo_t key_combos[] = {
[FD_B] = COMBO(b_combo, KC_B),
[LU_J] = COMBO(j_combo, KC_J),
[MP_Q] = COMBO(q_combo, KC_Q),
[KCOMM_Z] = COMBO(z_combo, KC_Z),
[COMMSCLN_K] = COMBO(k_combo, KC_K),
[SCLNDOT_Z] = COMBO(z_combo, KC_Z),
[LEFT_QUESTION] = COMBO(left_combo, KC_QUESTION),
[CF_X] = COMBO(x_combo, KC_X),
[UY_L] = COMBO(l_combo, KC_L),
};

// Use ALTREP2 and ALTREP3 in your layout...
Expand Down
51 changes: 28 additions & 23 deletions reiryoku.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions reiryoku.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
layout: {qmk_keyboard: bastardkb/charybdis/3x5/v2/splinky_3, qmk_layout: LAYOUT}
layers:
L0:
- ['?', W, M, P, Q, Z, K, ',', ., ;]
- ['', W, M, P, Q, Z, ',', ;, ., '']
- - {t: R, h: LGUI}
- {t: S, h: LALT}
- {t: N, h: LCTL}
Expand All @@ -15,7 +15,7 @@ layers:
- ['LT(LAYER POINTER, X)', C, F, D, B, J, L, U, Y, 'LT(LAYER POINTER, QUOT)']
- ['LT(LAYER MEDIA, ESC)', 'LT(LAYER NAVIGATION, SPC)', 'LT(LAYER FUNCTION, BSPC)', 'LT(LAYER SYMBOLS, ENT)', 'LT(LAYER NUMERAL, E)']
L1:
- ['', '', '', '', '', '', '', '{', \, '}']
- ['', '', '', '', '', '', '{', \, '}', '']
- [LGUI, LALT, LCTL, LSFT, '', SCRL, LAG(1), LAG(2), LAG(3), LAG(4)]
- ['', '', '', '', '', PAUS, LSG(1), LSG(2), LSG(3), LSG(4)]
- - ''
Expand All @@ -24,7 +24,7 @@ layers:
- ''
- TAB
L2:
- ['', '', '', '', '', '', '', (, '|', )]
- ['', '', '', '', '', '', (, '|', ), '']
- [LGUI, LALT, LCTL, LSFT, '', CAPS, LEFT, DOWN, UP, RGHT]
- ['', '', '', '', '', RDO, PST, CPY, CUT, UND]
- - ''
Expand All @@ -33,8 +33,8 @@ layers:
- ALTREP2
- ALTREP3
L3:
- ['', RGB RMOD, RGB TOG, RGB MOD, '', '', V, '[', /, ']']
- [MPRV, VOLD, MUTE, VOLU, MNXT, QK CAPS WORD TOGGLE, H, J, K, L]
- ['', RGB RMOD, RGB TOG, RGB MOD, '', '', '[', /, ']', '']
- [MPRV, VOLD, MUTE, VOLU, MNXT, QK CAPS WORD TOGGLE, HOME, PGDN, PGUP, END]
- ['', '', '', EE CLR, QK BOOT, QK BOOT, HOME, PGDN, PGUP, END]
- - {t: ▽, type: trans}
- ''
Expand Down

0 comments on commit 021971b

Please sign in to comment.