-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
206 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.direnv | ||
.venv | ||
.west | ||
.DS_Store | ||
modules | ||
firmware | ||
zephyr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* KEY POSITIONS | ||
|
||
╭─────────────────────────╮ ╭─────────────────────────╮ | ||
│ LT5 LT4 LT3 LT2 LT1 LT0 │ │ RT0 RT1 RT2 RT3 RT4 RT5 │ | ||
│ LM5 LM4 LM3 LM2 LM1 LM0 │ │ RM0 RM1 RM2 RM3 RM4 RM5 │ | ||
│ LB5 LB4 LB3 LB2 LB1 LB0 │ │ RB0 RB1 RB2 RB3 RB4 RB5 │ | ||
╰───────────╮ LH2 LH1 LH0 │ │ RH0 RH1 RH2 ╭───────────╯ | ||
╰─────────────╯ ╰─────────────╯ */ | ||
|
||
#define COMBO_TERM_FAST 18 | ||
#define COMBO_TERM_SLOW 30 | ||
|
||
#define COMBO_IDLE_FAST 150 | ||
#define COMBO_IDLE_SLOW 50 | ||
|
||
// implements alt+tab behavior | ||
ZMK_TRI_STATE(alt_tab, | ||
bindings = <&kt RGUI>, <&kp TAB>, <&kt RGUI>; | ||
ignored-key-positions = <LT4 LH2 RM0 RM1 RM2 RM3>; // Ignore Q, ENTER and Arrows | ||
) | ||
|
||
// tap: play/pause | double-tap: next song | tripple-tap: previous song | ||
ZMK_TAP_DANCE(play_np, | ||
tapping-term-ms = <300>; | ||
bindings = <&kp C_PLAY_PAUSE>, <&kp C_NEXT>, <&kp C_PREVIOUS>; | ||
) | ||
|
||
// tap: sticky-shift | shift + tap/ double-tap: caps-word | hold: shift | ||
ZMK_MOD_MORPH(up_shift, | ||
bindings = <&sk LSHFT>, <&caps_word>; | ||
mods = <(MOD_LSFT)>; | ||
) | ||
|
||
// tap: key 2 | quick tap: key 2 | hold: key 1 | ||
ZMK_HOLD_TAP(lkp, | ||
flavor = "tap-preferred"; | ||
tapping-term-ms = <200>; | ||
quick-tap-ms = <200>; | ||
bindings = <&mo>, <&kp>; | ||
) | ||
|
||
//ZMK_COMBO(sh, &ru_sh, LT2 LT1, COL QWR, COMBO_TERM_FAST, COMBO_IDLE_FAST) | ||
//ZMK_COMBO(sht, &ru_shch, LM2 LM1, COL QWR, COMBO_TERM_FAST, COMBO_IDLE_FAST) | ||
//ZMK_COMBO(ch, &ru_ch, LB2 LB1, COL QWR, COMBO_TERM_FAST, COMBO_IDLE_FAST) | ||
//ZMK_COMBO(yu, &ru_yu, RT2 RT1, COL QWR, COMBO_TERM_FAST, COMBO_IDLE_FAST) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* KEY POSITIONS | ||
|
||
╭─────────────────────────╮ ╭─────────────────────────╮ | ||
│ LT5 LT4 LT3 LT2 LT1 LT0 │ │ RT0 RT1 RT2 RT3 RT4 RT5 │ | ||
│ LM5 LM4 LM3 LM2 LM1 LM0 │ │ RM0 RM1 RM2 RM3 RM4 RM5 │ | ||
│ LB5 LB4 LB3 LB2 LB1 LB0 │ │ RB0 RB1 RB2 RB3 RB4 RB5 │ | ||
╰───────────╮ LH2 LH1 LH0 │ │ RH0 RH1 RH2 ╭───────────╯ | ||
╰─────────────╯ ╰─────────────╯ */ | ||
|
||
ZMK_MACRO(cast, | ||
bindings | ||
= <¯o_press &kp LGUI> | ||
, <¯o_tap &kp SPACE> | ||
, <¯o_release &kp LGUI> | ||
; | ||
) | ||
|
||
ZMK_MACRO(lang, | ||
bindings | ||
= <¯o_press &kp LALT> | ||
, <¯o_tap &kp SPACE> | ||
, <¯o_release &kp LALT> | ||
; | ||
) | ||
|
||
ZMK_MACRO(prev_d, | ||
bindings = <¯o_tap &kp LBKT &kp D>; | ||
) | ||
|
||
ZMK_MACRO(next_d, | ||
bindings = <¯o_tap &kp RBKT &kp D>; | ||
) | ||
|
||
ZMK_MACRO(prev_c, | ||
bindings = <¯o_tap &kp LBKT &kp C>; | ||
) | ||
|
||
ZMK_MACRO(next_c, | ||
bindings = <¯o_tap &kp RBKT &kp C>; | ||
) | ||
|
||
ZMK_MACRO(next_view, | ||
bindings | ||
= <¯o_press &kp LALT &kp LSHFT> | ||
, <¯o_tap &kp SPACE> | ||
, <¯o_release &kp LALT &kp LSHFT> | ||
; | ||
) | ||
|
||
ZMK_MACRO(full_view, | ||
bindings | ||
= <¯o_press &kp LALT &kp LSHFT> | ||
, <¯o_tap &kp D> | ||
, <¯o_release &kp LALT &kp LSHFT> | ||
; | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule zmk-helpers
added at
d70db6