Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions config/boards/shields/ergonaut_one/ergonaut_one.keymap
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

#define DEF 0
#define LWR 1
Expand All @@ -24,6 +25,18 @@
then-layer = <3>;
};
};

macros {
btsel: bt_select {
compatible = "zmk,behavior-macro-one-param";
#binding-cells = <1>;
bindings
= <&out OUT_BLE>
, <&macro_param_1to2>
, <&bt BT_SEL MACRO_PLACEHOLDER>
;
};
};

keymap {
compatible = "zmk,keymap";
Expand Down Expand Up @@ -55,8 +68,8 @@
};
adjust_layer {
bindings = <
&bootloader &none &none &none &none &none &none &none &none &none &none &bootloader
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 &bt BT_CLR
&bootloader &none &none &out OUT_TOG &none &none &none &none &out OUT_TOG &none &none &bootloader
&bt BT_CLR &btsel 0 &btsel 1 &btsel 2 &btsel 3 &btsel 4 &btsel 4 &btsel 3 &btsel 2 &btsel 1 &btsel 0 &bt BT_CLR
&sys_reset &none &none &none &none &none &none &none &none &none &none &sys_reset
&trans &none &trans &none &trans &trans
>;
Expand Down
12 changes: 6 additions & 6 deletions keymap-drawer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ parse_config:
'&out OUT_USB': Out USB
'&out OUT_BLE': Out BLE

'&bt BT_SEL 0': BT 1
'&bt BT_SEL 1': BT 2
'&bt BT_SEL 2': BT 3
'&bt BT_SEL 3': BT 4
'&bt BT_SEL 4': BT 5
'&btsel 0': BT 1
'&btsel 1': BT 2
'&btsel 2': BT 3
'&btsel 3': BT 4
'&btsel 4': BT 5

'&mmv MOVE_UP': Mouse ↑
'&mmv MOVE_DOWN': Mouse ↓
Expand Down Expand Up @@ -170,4 +170,4 @@ parse_config:
UNDERSCORE: _
draw_config:
footer_text: 'Created with <a href="https://github.com/caksoylar/keymap-drawer">keymap-drawer</a>'
dark_mode: auto
dark_mode: auto
6 changes: 6 additions & 0 deletions keymap-drawer/ergonaut_one.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/ergonaut_one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ layers:
- Boot
- ''
- ''
- OUT TOG
- ''
- ''
- ''
- ''
- ''
- ''
- OUT TOG
- ''
- ''
- Boot
Expand Down