Skip to content

Commit

Permalink
adding mac and pc mode
Browse files Browse the repository at this point in the history
  • Loading branch information
becausebirds committed Jun 25, 2024
1 parent 492df5a commit d79b908
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions config/lpgalaxy_blank_slate.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
#define RAISE 2
#define NUMBERS 3

#define WINDOWS 0
#define WINDOWS_LOWER 1
#define WINDOWS_RAISE 2
#define WINDOWS 4
#define WINDOWS_LOWER 5
#define WINDOWS_RAISE 6
#define WINDOWS_NUMBERS 7


#define TBLE_MIT 1

Expand All @@ -32,7 +34,7 @@
bt_selected {
bindings =
<
&bt_sel BT_SEL 0 (
&bt_sel Mode (
"QWERTY_layer" "LOWER_layer" "RAISE_layer" "NUMBERS_layer"
)
&bt_sel BT_SEL 1 (
Expand All @@ -50,6 +52,22 @@ bt_selected {
, <&macro_tap &to 0>
;
};
mac_mode: mac_mode {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&to 0>
, <&bt BT_SEL 0>
;
};
pc_mode: pc_mode {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&to 4>
, <&bt BT_SEL 1>
;
};
new_tab: new_tab {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
Expand Down Expand Up @@ -310,7 +328,7 @@ NUMBERS_layer {
<
&cad &trans &trans &trans &trans &trans &trans &trans &kp N7 &kp N8 &kp N9 &kp MINUS
&trans &trans &trans &trans &trans &trans &trans &trans &kp N4 &kp N5 &kp N6 &trans
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &kp N1 &kp N2 &kp N3 &kp ENTER
&mac_mode &pc_mode &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &kp N1 &kp N2 &kp N3 &kp ENTER
&bt BT_CLR &bt BT_CLR_ALL &trans &trans &to 0 &trans &to 0 &kp N0 &kp N0 &kp DOT &trans
>;
};
Expand All @@ -322,7 +340,7 @@ NUMBERS_layer {
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp APOS
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &td0
&kp LCTRL &kp LWIN &kp LALT &kp LCTRL &mo 1 &kp SPACE &mo 3 &kp LEFT &kp DOWN &kp UP &kp RIGHT
&kp LCTRL &kp LWIN &kp LALT &kp LCTRL &mo 5 &kp SPACE &mo 6 &kp LEFT &kp DOWN &kp UP &kp RIGHT
>;
};

Expand All @@ -333,7 +351,7 @@ NUMBERS_layer {
&kp TILDE &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &kp BSPC
&kp TAB &trans &trans &alt_tab_win &shft_alt_tab_win &trans &trans &kp UNDER &kp PLUS &kp LBKT &kp RBKT &kp PIPE
&trans &trans &undo &select_all &cut &copy &paste &trans &trans &trans &trans &trans
&one_pass_win &trans &trans &new_tab_win &trans &spotlight_win &to 2 &trans &trans &trans &trans
&one_pass_win &trans &trans &new_tab_win &trans &spotlight_win &to 7 &trans &trans &trans &trans
>;
};

Expand All @@ -344,10 +362,19 @@ NUMBERS_layer {
&kp MINUS &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp PLUS
&kp DEL &trans &trans &trans &trans &trans &trans &kp MINUS &kp EQL &kp LBKT &kp RBKT &kp BSLH
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp DOT &trans &trans
&trans &trans &trans &trans &to 2 &emoji_win &trans &screenshot_win &trans &trans &trans
&trans &trans &trans &trans &to 7 &emoji_win &trans &screenshot_win &trans &trans &trans
>;
};
windows_numbers_layer {
label = "WINDOWS_NUMBERS";
bindings =
<
&cad &trans &trans &trans &trans &trans &trans &trans &kp N7 &kp N8 &kp N9 &kp MINUS
&trans &trans &trans &trans &trans &trans &trans &trans &kp N4 &kp N5 &kp N6 &trans
&mac_mode &pc_mode &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &kp N1 &kp N2 &kp N3 &kp ENTER
&bt BT_CLR &bt BT_CLR_ALL &trans &trans &to 4 &trans &to 4 &kp N0 &kp N0 &kp DOT &trans
>;
};

};
behaviors {
td0: tap_dance_0 {
Expand Down

0 comments on commit d79b908

Please sign in to comment.