From 8ad5f4d468f24cd88d7b28812340b0996394e76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Dessureault?= Date: Thu, 5 Sep 2024 22:40:40 -0400 Subject: [PATCH] feat: add nav toggle combo --- behaviors/combos_34.dtsi | 3 ++ behaviors/combos_36.dtsi | 3 ++ images/keymaps/urchin_keymap.svg | 64 ++++++++++++++++++++++---------- keymap-drawer/config.yaml | 9 ++++- keymap-drawer/urchin_keymap.yaml | 5 +++ 5 files changed, 63 insertions(+), 21 deletions(-) diff --git a/behaviors/combos_34.dtsi b/behaviors/combos_34.dtsi index 2ba739e..4c07d1a 100644 --- a/behaviors/combos_34.dtsi +++ b/behaviors/combos_34.dtsi @@ -21,3 +21,6 @@ ZMK_COMBO(ergol_qwerty_34, &to QWE, LH0 RH0, ERG) // QWERTY -> Ergo-L - Outer thumbs, active on QWERTY ZMK_COMBO(qwerty_ergol_34, &to ERG, LH1 RH1, QWE) + +// NAV Toggle - Left thumbs, active on all alpha layers & NAV +ZMK_COMBO(nav_toggle_34, &tog NAV, LH0 LH1, QWE COL ERG NAV) diff --git a/behaviors/combos_36.dtsi b/behaviors/combos_36.dtsi index 68b6145..d5b0805 100644 --- a/behaviors/combos_36.dtsi +++ b/behaviors/combos_36.dtsi @@ -21,3 +21,6 @@ ZMK_COMBO(ergol_qwerty, &to QWE, LH0 RH0, ERG) // QWERTY -> Ergo-L - Outer thumbs, active on QWERTY ZMK_COMBO(qwerty_ergol, &to ERG, LH1 RH1, QWE) + +// NAV Toggle - Left thumbs, active on all alpha layers & NAV +ZMK_COMBO(nav_toggle, &tog NAV, LH0 LH1, QWE COL ERG NAV) diff --git a/images/keymaps/urchin_keymap.svg b/images/keymaps/urchin_keymap.svg index 2695006..0fbf1d7 100644 --- a/images/keymaps/urchin_keymap.svg +++ b/images/keymaps/urchin_keymap.svg @@ -1,4 +1,4 @@ - + /* start glyphs */ @@ -709,14 +709,20 @@ path.combo { + + + +NAV + + - + - + @@ -1034,14 +1040,20 @@ path.combo { toggle + + + +NAV + + - + - + @@ -1362,14 +1374,20 @@ path.combo { toggle + + + +NAV + + - + - + @@ -1796,9 +1814,15 @@ path.combo { + + + + +NAV + - + Numbers @@ -1942,7 +1966,7 @@ path.combo { - + Mouse @@ -2073,7 +2097,7 @@ path.combo { - + Game @@ -2214,8 +2238,8 @@ path.combo { -Combos - +Combos + @@ -2327,7 +2351,7 @@ path.combo { - + @@ -2439,7 +2463,7 @@ path.combo { - + @@ -2549,7 +2573,7 @@ path.combo { - + @@ -2661,7 +2685,7 @@ path.combo { - + @@ -2774,7 +2798,7 @@ path.combo { - + @@ -2886,7 +2910,7 @@ path.combo { - + @@ -2998,7 +3022,7 @@ path.combo { - + @@ -3110,7 +3134,7 @@ path.combo { - + diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 9f0ea76..99f3f60 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -508,7 +508,8 @@ parse_config: "&out OUT_TOG": '$$output-toggle$$', "&kp SAPOS": "'", "&kp DAPOS": '"', - "&soft_off": "$$mdi:power-standby$$" + "&soft_off": "$$mdi:power-standby$$", + "&tog NAV": "NAV" } sticky_label: sticky toggle_label: toggle @@ -712,6 +713,12 @@ parse_config: combo_tab_34: align: "bottom" offset: 0.3 + combo_nav_toggle: + align: "bottom" + offset: 0.3 + combo_nav_toggle_34: + align: "bottom" + offset: 0.3 combo_rightclick: align: "top" offset: -0.7 diff --git a/keymap-drawer/urchin_keymap.yaml b/keymap-drawer/urchin_keymap.yaml index 0fe5b3f..e4901bb 100644 --- a/keymap-drawer/urchin_keymap.yaml +++ b/keymap-drawer/urchin_keymap.yaml @@ -401,6 +401,11 @@ combos: l: [QWERTY] a: top o: 0.1 +- p: [31, 30] + k: NAV + l: [QWERTY, Colemak, Ergo-L, Navigation] + a: bottom + o: 0.3 - p: [3, 2] k: $$material:left_click$$ l: [QWERTY, Colemak, Ergo-L]