Skip to content

Commit

Permalink
update keymap\
Browse files Browse the repository at this point in the history
  • Loading branch information
ironhee committed Oct 15, 2024
1 parent 67948fe commit 9b862de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/hold_tap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define HT_IDLE require-prior-idle-ms = <120>;
#define HT_LEFT hold-trigger-key-positions = <KEYS_RIGHT KEYS_ETC>;
#define HT_RIGHT hold-trigger-key-positions = <KEYS_LEFT KEYS_ETC>;
#define HT_MT bindings = <&kp>, <&kp>; hold-trigger-on-release; hold-while-undecided;
#define HT_MT bindings = <&kp>, <&kp>; hold-trigger-on-release;
#define HT_LT bindings = <&mo>, <&kp>;

ZMK_HOLD_TAP(lmt, HT HT_LEFT HT_MT HT_BLCD HT_IDLE)
Expand Down
17 changes: 8 additions & 9 deletions config/layers.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@
#define KP_RH0 &tlt SYMB BSPC
#define KP_RH1 &sk LSHFT
#define KP_RH2 &kp C_PP
#define KP_RA0 &kp APOS
#define KP_RA0 &rmt FUNC APOS

#define A_LEFT &kp LA(LEFT)
#define A_RIGHT &kp LA(RIGHT)
#define A_UP &kp LA(UP)
#define A_DOWN &kp LA(DOWN)

#define BT_1 &bt BT_SEL 1
#define BT_2 &bt BT_SEL 2
#define BT_3 &bt BT_SEL 3
#define BT_4 &bt BT_SEL 4
#define BT_X &bt BT_CLR

/*=====================*/
/* Layer */
/*=====================*/
Expand Down Expand Up @@ -64,7 +70,7 @@ ZMK_LAYER(func_layer, /*
╭────────────┬────────────┬────────────┬────────────┬────────────╮╭────────────┬────────────┬────────────┬────────────┬────────────╮
*/__________ __________ __________ __________ __________ __________ __________ __________ __________ __________ /*
├────────────┼────────────┼────────────┼────────────┼────────────┤├────────────┼────────────┼────────────┼────────────┼────────────┤
*/__________ __________ __________ __________ __________ __________ __________ __________ __________ __________ /*
*/BT_1 BT_2 BT_3 BT_4 BT_X __________ __________ __________ __________ __________ /*
├────────────┼────────────┼────────────┼────────────┼────────────┤├────────────┼────────────┼────────────┼────────────┼────────────┤
*/__________ __________ __________ __________ __________ __________ __________ __________ __________ __________ /*
╰────────────┴────────────┴────────────┴────────────┴────────────╯╰────────────┴────────────┴────────────┴────────────┴────────────╯
Expand Down Expand Up @@ -119,10 +125,3 @@ ZMK_COMBO(r_gt , &kp GT , RB2 RB3, BASE NAVI SYMB, COMBO_TERM_FAST, CO

ZMK_COMBO(r_lang , &kp LC(SPACE), LH0 RH0, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)
ZMK_COMBO(r_scr_tab, &kp LC(UP) , LA0 LH2, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)

ZMK_COMBO(ble_sel_1, &bt BT_SEL 1 , LT4 LB4, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)
ZMK_COMBO(ble_sel_2, &bt BT_SEL 2 , LT3 LB3, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)
ZMK_COMBO(ble_sel_3, &bt BT_SEL 3 , LT2 LB2, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)
ZMK_COMBO(ble_sel_4, &bt BT_SEL 4 , LT1 LB1, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)
ZMK_COMBO(ble_clear, &bt BT_CLR , LT0 LB0, BASE NAVI SYMB, COMBO_TERM_SLOW, COMBO_IDLE_SLOW)

0 comments on commit 9b862de

Please sign in to comment.