From 2982987891cb6464934265888cebf3d6ffc3d25d Mon Sep 17 00:00:00 2001 From: englmaxi Date: Sun, 15 Sep 2024 15:13:14 +0200 Subject: [PATCH] adaptive u --- config/keymap/behaviors.dtsi | 15 +++++ config/keymap/keymap.dtsi | 2 +- config/west.yml | 5 ++ keymap-drawer/akohekohe.svg | 14 ++--- keymap-drawer/akohekohe.yaml | 4 +- keymap-drawer/config.yaml | 116 +++++++++++------------------------ keymap-drawer/rommana.svg | 14 ++--- keymap-drawer/rommana.yaml | 4 +- keymap-drawer/sweep.svg | 14 ++--- keymap-drawer/sweep.yaml | 4 +- 10 files changed, 82 insertions(+), 110 deletions(-) diff --git a/config/keymap/behaviors.dtsi b/config/keymap/behaviors.dtsi index 5df9f1e..6954031 100644 --- a/config/keymap/behaviors.dtsi +++ b/config/keymap/behaviors.dtsi @@ -193,3 +193,18 @@ }; }; }; + +// antecedent-morph +/ { + behaviors { + ad_u: adaptive_u { + compatible = "zmk,behavior-antecedent-morph"; + label = "ADAPTIVE_A"; + #binding-cells = <0>; + defaults = <&kp U>; + bindings = <&kp DE_EQUAL>, <&kp DE_EQUAL>; + antecedents = ; + max-delay-ms = <250>; + }; + }; +}; diff --git a/config/keymap/keymap.dtsi b/config/keymap/keymap.dtsi index b525438..a53810f 100644 --- a/config/keymap/keymap.dtsi +++ b/config/keymap/keymap.dtsi @@ -53,7 +53,7 @@ display-name = "DEF"; bindings = - - - @@ -138,9 +135,6 @@ - - - @@ -731,13 +725,17 @@ rect.held, rect.combo.held { - + +Ctl+F + - + +Ctl+A + diff --git a/keymap-drawer/akohekohe.yaml b/keymap-drawer/akohekohe.yaml index fced5fe..41b8f90 100644 --- a/keymap-drawer/akohekohe.yaml +++ b/keymap-drawer/akohekohe.yaml @@ -38,8 +38,8 @@ layers: - $$mdi:microsoft-windows$$ - {t: '$$mdi:cursor-default-click-outline$$', h: ALT, s: '4', type: text_with_symbol} - {t: '$$mdi:cursor-default-click-outline$$', h: '$$mdi:apple-keyboard-control$$', s: '5', type: text_with_symbol} - - {t: '$$mdi:text-search$$', h: '$$mdi:apple-keyboard-shift$$'} - - $$mdi:select-all$$ + - {t: Ctl+ F, h: '$$mdi:apple-keyboard-shift$$'} + - Ctl+ A - Page Down - $$mdi:arrow-left$$ - $$mdi:arrow-down$$ diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 0f0a465..83a4ff8 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -95,42 +95,10 @@ parse_config: '&par_macro': '()' '&bkt_macro': '{}' '&lgt_macro': '<>' - - '&kp LC(BSPC)': $$mdi:backspace$$ - '&kp LC(DEL)': $$mdi:backspace-reverse$$ - '&kp LS(TAB)': $$mdi:keyboard-tab-reverse$$ - - '&kp LC(TAB)': $$mdi:arrow-right-bold-box$$ - '&kp LC(LS(TAB))': $$mdi:arrow-left-bold-box$$ - '&kp LC(LG(LEFT))': $$mdi:arrow-left-bold-box-outline$$ - '&kp LC(LG(RIGHT))': $$mdi:arrow-right-bold-box-outline$$ - - '&kp LC(LS(LALT))': $$mdi:star-three-points-outline$$ - '&kp LC(LS(LA(LGUI)))': $$mdi:star-four-points-outline$$ - '&kp LC(HOME)': $$mdi:format-vertical-align-top$$ - '&kp LC(END)': $$mdi:format-vertical-align-bottom$$ - - '&kp LC(INS)': $$mdi:content-copy$$ - '&kp LS(INS)': $$mdi:content-paste$$ - '&kp LC(V)': $$mdi:content-paste$$ + '&ad_u': 'U' + '&mt LS(LC(V)) LC(V)': $$mdi:content-paste$$ - '&kp LS(DEL)': $$mdi:content-cut$$ - '&kp LC(X)': $$mdi:content-cut$$ - '&kp LC(DE_Z)': $$mdi:undo$$ - '&kp LC(DE_Y)': $$mdi:redo$$ - '&kp LC(LS(DE_Z))': $$mdi:redo$$ - - '&kp LC(A)': $$mdi:select-all$$ - '&kp LC(F)': $$mdi:text-search$$ - '&kp LC(W)': $$mdi:close-box-outline$$ - '&kp LA(F4)': $$mdi:close-box-outline$$ - - '&kp LC(DE_PLUS)': $$mdi:magnify-plus-outline$$ - '&kp LC(DE_MINUS)': $$mdi:magnify-minus-outline$$ - '&kp LC(N0)': $$mdi:magnify-remove-outline$$ - - '&kp LG(L)': $$mdi:lock-outline$$ '&td_sqt_dqt': tap: "'" @@ -160,26 +128,6 @@ parse_config: tap: $$mdi:bluetooth$$ shifted: $$mdi:close-thick$$ type: text_with_symbol - '&bts 0': - tap: $$mdi:bluetooth-connect$$ - shifted: '0' - type: text_with_symbol - '&bts 1': - tap: $$mdi:bluetooth-connect$$ - shifted: '1' - type: text_with_symbol - '&bts 2': - tap: $$mdi:bluetooth-connect$$ - shifted: '2' - type: text_with_symbol - '&bts 3': - tap: $$mdi:bluetooth-connect$$ - shifted: '3' - type: text_with_symbol - '&bts 4': - tap: $$mdi:bluetooth-connect$$ - shifted: '4' - type: text_with_symbol '&bts_0': tap: $$mdi:bluetooth-connect$$ shifted: '0' @@ -200,26 +148,6 @@ parse_config: tap: $$mdi:bluetooth-connect$$ shifted: '4' type: text_with_symbol - '&bt BT_DISC 0': - tap: $$mdi:bluetooth-off$$ - shifted: '0' - type: text_with_symbol - '&bt BT_DISC 1': - tap: $$mdi:bluetooth-off$$ - shifted: '1' - type: text_with_symbol - '&bt BT_DISC 2': - tap: $$mdi:bluetooth-off$$ - shifted: '2' - type: text_with_symbol - '&bt BT_DISC 3': - tap: $$mdi:bluetooth-off$$ - shifted: '3' - type: text_with_symbol - '&bt BT_DISC 4': - tap: $$mdi:bluetooth-off$$ - shifted: '4' - type: text_with_symbol '&mkp LCLK': $$mdi:cursor-default-click-outline$$ '&mkp RCLK': $$mdi:cursor-default-click$$ @@ -318,7 +246,42 @@ parse_config: draw_separate: true zmk_keycode_map: + LC(BSPC): $$mdi:backspace$$ + LC(DEL): $$mdi:backspace-reverse$$ + LS(TAB): $$mdi:keyboard-tab-reverse$$ + + LC(TAB): $$mdi:arrow-right-bold-box$$ + LC(LS(TAB)): $$mdi:arrow-left-bold-box$$ + + LC(LG(LEFT)): $$mdi:arrow-left-bold-box-outline$$ + LC(LG(RIGHT)): $$mdi:arrow-right-bold-box-outline$$ + + LC(LS(LALT)): $$mdi:star-three-points-outline$$ + LC(LS(LA(LGUI))): $$mdi:star-four-points-outline$$ + LC(HOME): $$mdi:format-vertical-align-top$$ + LC(END): $$mdi:format-vertical-align-bottom$$ + + LC(INS): $$mdi:content-copy$$ LC(C): $$mdi:content-copy$$ + LS(INS): $$mdi:content-paste$$ + LC(V): $$mdi:content-paste$$ + LS(DEL): $$mdi:content-cut$$ + LC(X): $$mdi:content-cut$$ + LC(DE_Z): $$mdi:undo$$ + LC(DE_Y): $$mdi:redo$$ + LC(LS(DE_Z)): $$mdi:redo$$ + + LC(A)': $$mdi:select-all$$ + LC(F)': $$mdi:text-search$$ + LC(W)': $$mdi:close-box-outline$$ + LA(F4)': $$mdi:close-box-outline$$ + + LC(DE_PLUS)': $$mdi:magnify-plus-outline$$ + LC(DE_MINUS)': $$mdi:magnify-minus-outline$$ + LC(N0)': $$mdi:magnify-remove-outline$$ + + LG(L)': $$mdi:lock-outline$$ + LALT: ALT SPACE: $$mdi:keyboard-space$$ @@ -375,8 +338,6 @@ parse_config: C_BRI_UP: $$tabler:brightness-up$$ C_BRI_DN: $$tabler:brightness-down$$ - # C_BRI_UP: $$mdi:brightness-5$$ - # C_BRI_DN: $$mdi:brightness-4$$ C_POWER: $$mdi:power$$ C_SLEEP: $$mdi:power-sleep$$ @@ -390,9 +351,6 @@ parse_config: PG_UP: Page Up PG_DN: Page Down - # HOME: $$mdi:format-horizontal-align-left$$ - # END: $$mdi:format-horizontal-align-right$$ - SECT: '§' DEG: '°' EURO: '€' diff --git a/keymap-drawer/rommana.svg b/keymap-drawer/rommana.svg index 9bc1b8b..c3bcc56 100644 --- a/keymap-drawer/rommana.svg +++ b/keymap-drawer/rommana.svg @@ -126,9 +126,6 @@ - - - @@ -138,9 +135,6 @@ - - - @@ -762,13 +756,17 @@ rect.held, rect.combo.held { - + +Ctl+F + - + +Ctl+A + diff --git a/keymap-drawer/rommana.yaml b/keymap-drawer/rommana.yaml index eb5735f..dbaa96c 100644 --- a/keymap-drawer/rommana.yaml +++ b/keymap-drawer/rommana.yaml @@ -45,8 +45,8 @@ layers: - $$mdi:microsoft-windows$$ - {t: '$$mdi:cursor-default-click-outline$$', h: ALT, s: '4', type: text_with_symbol} - {t: '$$mdi:cursor-default-click-outline$$', h: '$$mdi:apple-keyboard-control$$', s: '5', type: text_with_symbol} - - {t: '$$mdi:text-search$$', h: '$$mdi:apple-keyboard-shift$$'} - - $$mdi:select-all$$ + - {t: Ctl+ F, h: '$$mdi:apple-keyboard-shift$$'} + - Ctl+ A - Page Down - $$mdi:arrow-left$$ - $$mdi:arrow-down$$ diff --git a/keymap-drawer/sweep.svg b/keymap-drawer/sweep.svg index bccc3ba..edf68d1 100644 --- a/keymap-drawer/sweep.svg +++ b/keymap-drawer/sweep.svg @@ -129,9 +129,6 @@ - - - @@ -141,9 +138,6 @@ - - - @@ -786,13 +780,17 @@ rect.held, rect.combo.held { - + +Ctl+F + - + +Ctl+A + diff --git a/keymap-drawer/sweep.yaml b/keymap-drawer/sweep.yaml index 0a3f7ea..f04124b 100644 --- a/keymap-drawer/sweep.yaml +++ b/keymap-drawer/sweep.yaml @@ -48,8 +48,8 @@ layers: - $$mdi:microsoft-windows$$ - {t: '$$mdi:cursor-default-click-outline$$', h: ALT, s: '4', type: text_with_symbol} - {t: '$$mdi:cursor-default-click-outline$$', h: '$$mdi:apple-keyboard-control$$', s: '5', type: text_with_symbol} - - {t: '$$mdi:text-search$$', h: '$$mdi:apple-keyboard-shift$$'} - - $$mdi:select-all$$ + - {t: Ctl+ F, h: '$$mdi:apple-keyboard-shift$$'} + - Ctl+ A - Page Down - $$mdi:arrow-left$$ - $$mdi:arrow-down$$