Skip to content

Commit

Permalink
adaptive u
Browse files Browse the repository at this point in the history
  • Loading branch information
englmaxi authored and github-actions[bot] committed Sep 15, 2024
1 parent bdf0a8b commit 2982987
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 110 deletions.
15 changes: 15 additions & 0 deletions config/keymap/behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <DE_LT DE_GT>;
max-delay-ms = <250>;
};
};
};
2 changes: 1 addition & 1 deletion config/keymap/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
display-name = "DEF";
bindings = <LAYER_FROM34( \
// ╭─────────────┬─────────────┬─────────────────┬──────────────────┬──────────────╮ ╭─────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────╮
&kp V, &kp W, &kp F, &kp P, &kp B, &kp J, &kp L, &kp U, &kp DE_Y, &td_sqt_dqt, \
&kp V, &kp W, &kp F, &kp P, &kp B, &kp J, &kp L, &ad_u, &kp DE_Y, &td_sqt_dqt, \
// ├─────────────┼─────────────┼─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────┤
&hml LGUI R, &hml LALT S, &hml_hwu LCTRL T, &hml_hwu LSHIFT H, &kp K, &kp X, &hmr_hwu RSHFT N, &hmr_hwu RCTRL A, &hmr LALT I, &hmr LGUI O, \
// ├─────────────┼─────────────┼─────────────────┼──────────────────┼──────────────┤ ├─────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────┤
Expand Down
5 changes: 5 additions & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ manifest:
url-base: https://github.com/urob
- name: englmaxi
url-base: https://github.com/englmaxi
- name: ssbb
url-base: https://github.com/ssbb
projects:
- name: zmk
remote: zmkfirmware
Expand All @@ -24,5 +26,8 @@ manifest:
- name: zmk-dongle-display
remote: englmaxi
revision: main
- name: zmk-antecedent-morph
remote: ssbb
revision: main
self:
path: config
14 changes: 6 additions & 8 deletions keymap-drawer/akohekohe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions keymap-drawer/akohekohe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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$$
Expand Down
116 changes: 37 additions & 79 deletions keymap-drawer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "'"
Expand Down Expand Up @@ -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'
Expand All @@ -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$$
Expand Down Expand Up @@ -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$$
Expand Down Expand Up @@ -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$$
Expand All @@ -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: ''
Expand Down
14 changes: 6 additions & 8 deletions keymap-drawer/rommana.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions keymap-drawer/rommana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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$$
Expand Down
14 changes: 6 additions & 8 deletions keymap-drawer/sweep.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions keymap-drawer/sweep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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$$
Expand Down

0 comments on commit 2982987

Please sign in to comment.