Skip to content

Commit

Permalink
Update keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
ctranstrum committed May 27, 2024
1 parent e2f282c commit b870e13
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 36 deletions.
95 changes: 66 additions & 29 deletions config/ergonaut_one.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>

#define L_CLMK 0
#define L_QRTY 1
#define L_DVRK 2
#define L_NUM 3
#define L_NAV 4
#define L_FNC 5
#define L_SYM 6
#define L_KBD 7
#define L_VIM 8
#define LMO_N 9
#define LTOGN 10
#define L_BOOT 11

// Macro for bluetooth connections
#define BT_(btnum) &bt_key btnum btnum

Expand All @@ -27,18 +40,18 @@
compatible = "zmk,conditional-layers";

function_combination {
if-layers = <3 4>;
then-layer = <5>;
if-layers = <LMO_N L_NAV>;
then-layer = <L_FNC>;
};

numpad_momentary {
if-layers = <10>;
then-layer = <3>;
if-layers = <LMO_N>;
then-layer = <L_NUM>;
};

numpad_toggle {
if-layers = <11>;
then-layer = <3>;
if-layers = <LTOGN>;
then-layer = <L_NUM>;
};
};

Expand Down Expand Up @@ -69,7 +82,7 @@
flash: flash {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&to 11 &bootloader>;
bindings = <&to L_BOOT &bootloader>;
label = "Flash Dongle";
};

Expand Down Expand Up @@ -162,15 +175,31 @@
compatible = "zmk,keymap";

Colemak {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "Colemak" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&kp TAB &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SQT &kp BACKSPACE
&lt 8 ESC &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O &lt 7 RET
&mt LCTRL LEFT_BRACKET &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &comma &dot &slash &mt LEFT_SHIFT RIGHT_BRACKET
&mt LCMD LEFT_BRACE &lt 9 LEFT_PARENTHESIS &lsscw 4 0 &lt 6 SPACE &mt LCMD RIGHT_PARENTHESIS &mt LEFT_ALT RIGHT_BRACE
// ┏━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┓ ┏━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┳━━━━━━━┓
// ┃ TAB ┃ Q ┃ W ┃ F ┃ P ┃ B ┃ ┃ J ┃ L ┃ U ┃ Y ┃ ' " ┃ BKSPC ┃
&kp TAB &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SQT &kp BSPC
// ┣━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━┫ ┣━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━┫
// ┃ESC vim┃ A ┃ R ┃ S ┃ T ┃ G ┃ ┃ M ┃ N ┃ E ┃ I ┃ O ┃RET kbd┃
&lt 8 ESC &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O &lt 7 RET
// ┣━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━┫ ┣━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━╋━━━━━━━┫
// ┃ [ ctrl┃ Z ┃ X ┃ C ┃ D ┃ V ┃ ┃ K ┃ H ┃ , ; ┃ . : ┃ / \ ┃] shift┃
&mt LCTRL LBKT &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &comma &dot &slash &mt LSHFT RBKT
// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┻━━━┳━━━┻━━━┳━━━┻━━━┳━━━┻━━━┓ ┏━━━┻━━━┳━━━┻━━━┳━━━┻━━━┳━━━┻━━━━━━━┻━━━━━━━┻━━━━━━━┛
// ┃ { cmd ┃ ( num ┃ SHIFT ┃ ┃ SPACE ┃ ) kbd ┃ } opt ┃
&mt LCMD LBRC &lt 9 LPAR &lsscw 4 0 &lt 6 SPC &mt LCMD RPAR &mt LALT RBRC
// ┗━━━━━━━┻━━━━━━━┫ nav ┃ ┃ sym ┣━━━━━━━┻━━━━━━━┛
// ┗━━━━━━━┛ ┗━━━━━━━┛
>;
};

Qwerty {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "Qwerty" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&trans &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &trans
&trans &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp APOS &trans
Expand All @@ -180,6 +209,9 @@
};

Dvorak {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "Dvorak" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&trans &kp SQT &comma &dot &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &trans
&trans &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &trans
Expand All @@ -189,6 +221,9 @@
};

numpad {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "numpad" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&kp TAB &none &none &none &none &none &kp FSLH &kp N7 &kp N8 &kp N9 &kp MINUS &kp BSPC
&tog 10 &none &kp LCTRL &kp LALT &kp LCMD &kp RALT &kp STAR &kp N4 &kp N5 &kp N6 &kp PLUS &kp ENTER
Expand All @@ -198,6 +233,9 @@
};

navigation {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "navigation" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&none &none &none &none &none &none &kp PG_UP &none &none &none &none &kp DEL
&none &kp LSHFT &kp LCTRL &kp LALT &kp LCMD &kp RALT &none &kp LEFT &kp UP &kp RIGHT &none &kp RET
Expand All @@ -207,6 +245,9 @@
};

function {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "function" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&none &none &none &none &none &none &none &kp F7 &kp F8 &kp F9 &kp F12 &none
&none &kp LSHFT &kp LCTRL &kp LALT &kp LCMD &kp RALT &none &kp F4 &kp F5 &kp F6 &kp F11 &none
Expand All @@ -216,6 +257,9 @@
};

symbols {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "symbols" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&kp GRAVE &kp SLASH &kp HASH &kp STAR &kp PRCNT &kp BSLH &none &none &none &none &none &none
&kp CARET &kp AT &kp MINUS &kp EXCL &kp EQUAL &kp DLLR &kp RALT &kp LCMD &kp LALT &kp LCTRL &none &none
Expand All @@ -225,6 +269,9 @@
};

keyboard {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "keyboard" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&bootloader &to 1 &none &kp LS(LG(N4)) &kp C_BRIGHTNESS_INC &kp C_VOL_UP &flash &none &out OUT_USB &none &none &bootloader
&none BT_(0) BT_(1) BT_(2) BT_(3) BT_(4) &to 2 &none &none &none &none &trans
Expand All @@ -234,6 +281,9 @@
};

vim {
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━┓
display-name = "vim & tmux" ;
// ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛
bindings = <
&none &none &none &none &none &none &tmux D &vtab N7 &vtab N8 &vtab N9 &none &vimQ
&trans &none &none &none &none &none &tmux A &vtab NUMBER_4 &vtab N5 &vtab NUMBER_6 &none &none
Expand All @@ -243,30 +293,17 @@
};

num_pad {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
bindings = <&kp KP_NUM>;
};

numpad_toggle {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
bindings = <&kp KP_NUM>;
};

bootloader {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans
>;
display-name = "Flash Mode";
bindings = <&bootloader>;
};
};
};
};
Expand Down
23 changes: 16 additions & 7 deletions keymap-drawer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parse_config:
raw_binding_map:
'&sys_reset': Reset
'&bootloader': Boot
'&flash': Flash Dongle
'&swapper': Win Next
'&caps_word': Caps Word
'&inv_qm': ¿
Expand All @@ -26,6 +27,12 @@ parse_config:
'&bt BT_SEL 3': BT 4
'&bt BT_SEL 4': BT 5

'&bt_key 0 0': BT 1
'&bt_key 1 1': BT 2
'&bt_key 2 2': BT 3
'&bt_key 3 3': BT 4
'&bt_key 4 4': BT 5

'&mmv MOVE_UP': Mouse ↑
'&mmv MOVE_DOWN': Mouse ↓
'&mmv MOVE_LEFT': Mouse ←
Expand Down Expand Up @@ -65,10 +72,11 @@ parse_config:

zmk_keycode_map:
# custom mappings
C_VOL_UP: Vol Up
C_VOL_DN: Vol Down
C_VOL_UP: Vol +
C_VOL_DN: Vol -
C_AL_CALC: Calc
C_PP: Play Pause
C_BRI_UP: Bri +
C_BRI_DN: Bri -

LCTRL: Ctrl
RCTRL: Ctrl
Expand All @@ -82,11 +90,11 @@ parse_config:
SPACE:
BSPC:
RET:
TAB:
TAB:
DEL:

PG_UP: Page Up
PG_DN: Page Down
PG_UP: Pg Up
PG_DN: Pg Dn
INS: Insert
HOME: Home
END: End
Expand Down Expand Up @@ -168,6 +176,7 @@ parse_config:
TILDE2: '~'
UNDER: _
UNDERSCORE: _

draw_config:
footer_text: 'Created with <a href="https://github.com/caksoylar/keymap-drawer">keymap-drawer</a>'
dark_mode: auto
dark_mode: auto

0 comments on commit b870e13

Please sign in to comment.