From 0234a9e0b594b8b714ac521c94509d99c5ebc765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Rom=C3=A3o?= Date: Wed, 4 Jan 2023 10:29:09 -0300 Subject: [PATCH] use layer to improve capsword --- .../config/rafaelromao/features/combos.dtsi | 44 +++++++++---------- src/zmk/config/rafaelromao/readme.md | 1 - .../corneish-zen/corneish_zen.conf | 2 +- 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/zmk/config/rafaelromao/features/combos.dtsi b/src/zmk/config/rafaelromao/features/combos.dtsi index 3362c8f7..b0c4fa31 100644 --- a/src/zmk/config/rafaelromao/features/combos.dtsi +++ b/src/zmk/config/rafaelromao/features/combos.dtsi @@ -28,36 +28,36 @@ combos { compatible = "zmk,combos"; - COMBO(cb_save, LHR LHM L0, &mc_save, ROMAK NUMPAD) - COMBO(cb_esc, LTR LTM L0, &kp ESC, ROMAK NUMPAD) - COMBO(cb_paste_l, LHM LHI L0, &mc_paste, ROMAK NUMPAD) - COMBO(cb_copy_l, LBM LBI L0, &mc_copy, ROMAK NUMPAD) - COMBO(cb_fullscr, LHP LHR L0, &mc_fullscr, ROMAK NUMPAD) - COMBO(cb_find, LBP LBR L0, &mc_find, ROMAK NUMPAD) + COMBO(cb_save, LHR LHM L0, &mc_save, ROMAK CASE NUMPAD) + COMBO(cb_esc, LTR LTM L0, &kp ESC, ROMAK CASE NUMPAD) + COMBO(cb_paste_l, LHM LHI L0, &mc_paste, ROMAK CASE NUMPAD) + COMBO(cb_copy_l, LBM LBI L0, &mc_copy, ROMAK CASE NUMPAD) + COMBO(cb_fullscr, LHP LHR L0, &mc_fullscr, ROMAK CASE NUMPAD) + COMBO(cb_find, LBP LBR L0, &mc_find, ROMAK CASE NUMPAD) - COMBO(cb_unds, LBR LBM, &kp UNDERSCORE, ROMAK) - COMBO(cb_z, LBM LBI, &kp Z, ROMAK) - COMBO(cb_raise_l, LHR L0, &sl RAISE, ROMAK) - COMBO(cb_lower_l, LHM L0, &sl LOWER, ROMAK) + COMBO(cb_unds, LBR LBM, &kp UNDERSCORE, ROMAK CASE) + COMBO(cb_z, LBM LBI, &kp Z, ROMAK CASE) + COMBO(cb_raise_l, LHR L0, &sl RAISE, ROMAK CASE) + COMBO(cb_lower_l, LHM L0, &sl LOWER, ROMAK CASE) COMBO(cb_pars, LTR LTM, &th_pars 0 0, LOWER) COMBO(cb_esc_save, LTR LTM, &mc_save_esc, NAV) - COMBO(cb_enter, RHM RHR R0, &kp ENTER, ROMAK NUMPAD LOWER) + COMBO(cb_enter, RHM RHR R0, &kp ENTER, ROMAK CASE NUMPAD LOWER) - COMBO(cb_tab, RTM RTR R0, &kp TAB, ROMAK NUMPAD) - COMBO(cb_paste_r, RHI RHM R0, &mc_paste, ROMAK NUMPAD) - COMBO(cb_copy_r, RBI RBM R0, &mc_copy, ROMAK NUMPAD) - COMBO(cb_selall, RHR RHP R0, &mc_selall, ROMAK NUMPAD) - COMBO(cb_undo, RBR RBP R0, &mc_undo, ROMAK NUMPAD) + COMBO(cb_tab, RTM RTR R0, &kp TAB, ROMAK CASE NUMPAD) + COMBO(cb_paste_r, RHI RHM R0, &mc_paste, ROMAK CASE NUMPAD) + COMBO(cb_copy_r, RBI RBM R0, &mc_copy, ROMAK CASE NUMPAD) + COMBO(cb_selall, RHR RHP R0, &mc_selall, ROMAK CASE NUMPAD) + COMBO(cb_undo, RBR RBP R0, &mc_undo, ROMAK CASE NUMPAD) - COMBO(cb_o_esc, RTM RTR, &mc_o_esc, ROMAK) - COMBO(cb_semi, RBM RBR, &th_semi 0 0, ROMAK) - COMBO(cb_p, RHI RHM, &kp P, ROMAK) - COMBO(cb_x, RBI RBM, &kp X, ROMAK) - COMBO(cb_lower_r, RHR R0, &sl LOWER, ROMAK) - COMBO(cb_raise_r, RHM R0, &sl RAISE, ROMAK) + COMBO(cb_o_esc, RTM RTR, &mc_o_esc, ROMAK CASE) + COMBO(cb_semi, RBM RBR, &th_semi 0 0, ROMAK CASE) + COMBO(cb_p, RHI RHM, &kp P, ROMAK CASE) + COMBO(cb_x, RBI RBM, &kp X, ROMAK CASE) + COMBO(cb_lower_r, RHR R0, &sl LOWER, ROMAK CASE) + COMBO(cb_raise_r, RHM R0, &sl RAISE, ROMAK CASE) COMBO(cb_ao, RHM RHR, &mc_ao, ACCENT) COMBO(cb_cao, RHI RHM RHR, &mc_cao, ACCENT) diff --git a/src/zmk/config/rafaelromao/readme.md b/src/zmk/config/rafaelromao/readme.md index 8ecbc67f..dcf09cdb 100644 --- a/src/zmk/config/rafaelromao/readme.md +++ b/src/zmk/config/rafaelromao/readme.md @@ -13,7 +13,6 @@ This folder contains the port of my keymap to ZMK. ### Known Issues: - Swapping between Applications and Tabs must start in the forward direction. - Swapping between the Navigation History must start in the backward direction. -- Cancelling Caps Word leaves one-shot shift active. - Select Line cannot be inverted or extended to next line. - Select Word cannot be extended to previous word. diff --git a/src/zmk/keyboards/lowprokb.ca/corneish-zen/corneish_zen.conf b/src/zmk/keyboards/lowprokb.ca/corneish-zen/corneish_zen.conf index bd4b5835..5c71e06b 100644 --- a/src/zmk/keyboards/lowprokb.ca/corneish-zen/corneish_zen.conf +++ b/src/zmk/keyboards/lowprokb.ca/corneish-zen/corneish_zen.conf @@ -4,5 +4,5 @@ CONFIG_ZMK_MACRO_DEFAULT_WAIT_MS=10 CONFIG_ZMK_MACRO_DEFAULT_TAP_MS=10 CONFIG_ZMK_DISPLAY_HIDE_MOMENTARY_LAYERS=y CONFIG_ZMK_DISPLAY_FULL_REFRESH_PERIOD=3600 -CONFIG_IL0323_INVERT=y +CONFIG_IL0323_INVERT=n CONFIG_CUSTOM_WIDGET_LAYER_STATUS_HIDE_HEADING=y \ No newline at end of file