Skip to content

Commit

Permalink
add Ergo-L layers
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Jan 12, 2024
1 parent 743865b commit 7718c6a
Show file tree
Hide file tree
Showing 14 changed files with 129 additions and 2,970 deletions.
22 changes: 11 additions & 11 deletions behaviors/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,37 @@
***********************/

// CUT - Ctrl + X, active on base layer
ZMK_COMBO(cut, &kp LC(X), LB3 LB4, DEF COL)
ZMK_COMBO(cut, &kp LC(X), LB3 LB4, DEF COL ERG)

// COPY - Ctrl + C, active on base layer
ZMK_COMBO(copy, &kp LC(C), LB2 LB3, DEF COL)
ZMK_COMBO(copy, &kp LC(C), LB2 LB3, DEF COL ERG)

// PASTE - Ctrl + V, active on all layers
ZMK_COMBO(paste, &kp LC(V), LB1 LB2, DEF COL)
ZMK_COMBO(paste, &kp LC(V), LB1 LB2, DEF COL ERG)

// PRINT SCREEN - PrintScreen, active on base layer
ZMK_COMBO(printscreen, &kp PRINTSCREEN, RT3 RT4, DEF COL)
ZMK_COMBO(printscreen, &kp PRINTSCREEN, RT3 RT4, DEF COL ERG)

// CAPS WORD - Both HR Shifts, active on base & accent layers
ZMK_COMBO(capsword, &caps_word, LM1 RM1, DEF ACC COL)
ZMK_COMBO(capsword, &caps_word, LM1 RM1, DEF ACC COL ERG)

// CAPS LOCK - Both HR Controls, active on base & accent layers
ZMK_COMBO(capslock, &kp CAPSLOCK, LM2 RM2, DEF ACC COL)
ZMK_COMBO(capslock, &kp CAPSLOCK, LM2 RM2, DEF ACC COL ERG)

// TMUX Prefix - active on base layer
ZMK_COMBO(tmux, &kp TMUX, LM2 LM3, DEF COL, HR_TIMEOUT)
ZMK_COMBO(tmux, &kp TMUX, LM2 LM3, DEF COL ERG, HR_TIMEOUT)

// TMUX Command - active on base layer
ZMK_COMBO(tmux_cmd, &TMUX_CMD, LM2 LM3 RM4, DEF COL, HR_TIMEOUT)
ZMK_COMBO(tmux_cmd, &TMUX_CMD, LM2 LM3 RM4, DEF COL ERG, HR_TIMEOUT)

// TMUX New Session - active on base layer
ZMK_COMBO(tmux_session, &TMUX_SESSION, LM2 LM3 LM4, DEF COL, HR_TIMEOUT)
ZMK_COMBO(tmux_session, &TMUX_SESSION, LM2 LM3 LM4, DEF COL ERG, HR_TIMEOUT)

// Toggle Mouse Layer - active on base and mouse layers
ZMK_COMBO(toggle_mouse, &tog MOU, LT1 LT4, DEF MOU COL)
ZMK_COMBO(toggle_mouse, &tog MOU, LT1 LT4, DEF MOU COL ERG)

// Toggle Game Layer - active on base and game layer
ZMK_COMBO(toggle_game, &tog GAM, RT1 RT4, DEF GAM COL)
ZMK_COMBO(toggle_game, &tog GAM, RT1 RT4, DEF GAM COL ERG)

/***********************
SYMBOL LAYER
Expand Down
3 changes: 3 additions & 0 deletions behaviors/combos_34.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ ZMK_COMBO(tab_34, &kp TAB, RH0 RH1, DEF COL)

// QWERTY/Colemak - Inner thumbs, active on base and Colemak layers
ZMK_COMBO(colemak_34, &tog COL, LH0 RH0, DEF COL)

// QWERTY/Ergo-L - Outer thumbs, active on base and Ergo-L layers
ZMK_COMBO(ergol_34, &tog ERG, LH1 RH1, DEF ERG)
3 changes: 3 additions & 0 deletions behaviors/combos_36.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ ZMK_COMBO(tab, &kp TAB, RH0 RH1, DEF COL)

// QWERTY/Colemak - Inner thumbs, active on base and Colemak layers
ZMK_COMBO(colemak, &tog COL, LH0 RH0, DEF COL)

// QWERTY/Ergo-L - Middle thumbs, active on base and Ergo-L layers
ZMK_COMBO(ergol_34, &tog ERG, LH1 RH1, DEF ERG)
18 changes: 14 additions & 4 deletions behaviors/hold-tap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "../zmk-nodefree-config/helper.h"
#include "../zmk-nodefree-config/keypos_def/keypos_36keys.h"
#include "../layouts/canadian-multilingual-standard.dtsi"
#include "../config/constants.h"

/* Home Row Mods */
#define KEYS_L LT0 LT1 LT2 LT3 LT4 LM0 LM1 LM2 LM3 LM4 LB0 LB1 LB2 LB3 LB4 // left-hand keys
Expand Down Expand Up @@ -43,7 +44,7 @@ ZMK_BEHAVIOR(hrmc, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&CIRC>;
bindings = <&kp>, <&CIRC 0>;
)

// homerow mods for grave
Expand All @@ -52,7 +53,7 @@ ZMK_BEHAVIOR(hrmg, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&AGRA>;
bindings = <&kp>, <&AGRA 0>;
)

// homerow mods for è
Expand All @@ -61,7 +62,16 @@ ZMK_BEHAVIOR(hrme, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&E_GR>;
bindings = <&kp>, <&E_GR 0>;
)

// homerow mods for ê
ZMK_BEHAVIOR(hrmec, hold_tap,
flavor = "balanced";
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&E_CI 0>;
)

// homerow mods for î
Expand All @@ -70,5 +80,5 @@ ZMK_BEHAVIOR(hrmi, hold_tap,
tapping-term-ms = <hrm_tap_term>;
quick-tap-ms = <hrm_quick_tap>;
global-quick-tap;
bindings = <&kp>, <&I_CI>;
bindings = <&kp>, <&I_CI 0>;
)
19 changes: 19 additions & 0 deletions behaviors/mod-morph.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <dt-bindings/zmk/keys.h>
#include "../zmk-nodefree-config/helper.h"
#include "../layouts/canadian-multilingual-standard.dtsi"
#include "../config/constants.h"

// tap: backspace | shift + tap: delete
ZMK_BEHAVIOR(bspc_del, mod_morph,
Expand Down Expand Up @@ -50,3 +51,21 @@ ZMK_BEHAVIOR(sp_nbsp_sym, mod_morph,
bindings = <&lt SYM SPACE>, <&kp RALT(SPACE)>;
mods = <(MOD_LSFT|MOD_RSFT)>;
)

// tap: period | shift + tap: colon
ZMK_BEHAVIOR(dot_col, mod_morph,
bindings = <&kp DOT>, <&kp COLON>;
mods = <(MOD_LSFT|MOD_RSFT)>;
)

// tap: period | shift + tap: colon
ZMK_BEHAVIOR(comma_semi, mod_morph,
bindings = <&kp COMMA>, <&kp SEMI>;
mods = <(MOD_LSFT|MOD_RSFT)>;
)

// tap: period | shift + tap: colon
ZMK_BEHAVIOR(trem_gr, mod_morph,
bindings = <&KBD ACC_TR ERG>, <&KBD ACC_GR ERG>;
mods = <(MOD_LSFT|MOD_RSFT)>;
)
6 changes: 3 additions & 3 deletions behaviors/mouse.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ ZMK_BEHAVIOR(mwh_tg, macro, bindings =
)

// Mouse Left Click - Index and Middle finger of left hand, active on all layers
ZMK_COMBO(leftclick, &mkp LCLK, LT1 LT2, DEF COL)
ZMK_COMBO(leftclick, &mkp LCLK, LT1 LT2, DEF COL ERG)

// Mouse Right Click - Pinky and Ring finger of left hand, active on all layers
ZMK_COMBO(rightclick, &mkp RCLK, LT3 LT4, DEF COL)
ZMK_COMBO(rightclick, &mkp RCLK, LT3 LT4, DEF COL ERG)

// Mouse Scroll Toggle - Middle and Ring finger of left hand, active on all layers
ZMK_COMBO(scrolltoggle, &mwh_tg, LT2 LT3, DEF COL)
ZMK_COMBO(scrolltoggle, &mwh_tg, LT2 LT3, DEF COL ERG)
1 change: 0 additions & 1 deletion chars/math.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ ZMK_UNICODE_SINGLE(math_3_4, N0, N0, B, E) // ¾
ZMK_UNICODE_SINGLE(math_pm, N0, N0, B, N1) // ±
ZMK_UNICODE_SINGLE(math_deg, N0, N0, B, N0) // °
ZMK_UNICODE_SINGLE(math_micro, N0, N0, B, N5) // µ

12 changes: 7 additions & 5 deletions config/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
#define DEF 0
#define ACC 1
#define COL 2
#define SYM 3
#define NAV 4
#define NUM 5
#define MOU 6
#define GAM 7
#define ERG 3
#define ACE 4
#define SYM 5
#define NAV 6
#define NUM 7
#define MOU 8
#define GAM 9

// Modifier keys
#define GL LGUI
Expand Down
32 changes: 27 additions & 5 deletions config/urchin.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ ZMK_LAYER(qwerty,

ZMK_LAYER(accent,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
XXX XXX &TREM E XXX XXX XXX &TREM I &TREM O &TREM U &KPD ACC_TR
XXX XXX &TREM E DEF XXX XXX XXX &TREM I DEF &TREM O DEF &TREM U DEF &KPD ACC_TR DEF
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&A_GR &CIRC E &E_CU &hrme SL 0 XXX XXX &hrmi SL 0 &O_CI &U_CI &KPD ACC_GR
&A_GR DEF &CIRC E DEF &E_CU DEF &hrme SL 0 XXX XXX &hrmi SL 0 &O_CI DEF &U_CI DEF &KPD ACC_GR DEF
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&A_CI XXX &CEDIL XXX XXX XXX XXX XXX &U_GR &KPD ACC_CI
&A_CI DEF XXX &CEDIL DEF XXX XXX XXX XXX XXX &U_GR DEF &KPD ACC_CI DEF
// ╰───────────┴───────────┴───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┴────────────┴────────────╯
___ ___ ___ ___
// ╰────────────┴────────────╯ ╰───────────┴─────────────╯
Expand All @@ -54,10 +54,32 @@ ZMK_LAYER(colemak,
// ╰────────────┴────────────╯ ╰───────────┴─────────────╯
)

ZMK_LAYER(symbol,
ZMK_LAYER(ergol,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
&kp Q &kp C &kp O &kp P &kp W &kp J &kp M &kp D &to ACE &kp F
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&hml GL A &hml AL S &hml CL E &hml SL N &comma_semi &kp L &hmr SL R &hmr CL T &hmr AL I &hmr GL U
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&kp Z &kp X &kp QUEST &kp V &kp B &dot_col &kp H &kp G &kp Y &kp K
// ╰───────────┴───────────┴───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┴────────────┴────────────╯
___ ___ ___ ___
// ╰────────────┴────────────╯ ╰───────────┴─────────────╯
)

ZMK_LAYER(eaccent,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
&kp HASH &kp AT &kp LBRAC &kp RBRAC &kp PLUS XXX &kp TILDS &GRA &kp DLLR XXX
&fr_ae &CEDIL ERG &fr_oe &O_CI ERG XXX XXX XXX XXX &trem_gr XXX
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&A_GR ERG &E_CU ERG &E_GR ERG &hrmec SL 0 XXX XXX &kp SL &TREM I ERG &U_CI ERG &U_GR ERG
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&A_CI ERG XXX XXX XXX XXX XXX XXX XXX XXX XXX
// ╰───────────┴───────────┴───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┴────────────┴────────────╯
___ ___ ___ ___
// ╰────────────┴────────────╯ ╰───────────┴─────────────╯
)

ZMK_LAYER(symbol,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
&kp SLSH &dash_tilde &kp LPAR &hml SL RPAR &kp EQUAL &CAR &kp QUEST &kp EXCL &kp AMPS &kp PIP
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&kp STAR &kp PRCNT &kp LBKET &kp RBKET &kp UNDER XXX &kp LETHAN &kp GRTHAN &laquo &raquo
Expand Down
Loading

0 comments on commit 7718c6a

Please sign in to comment.