Skip to content

Commit

Permalink
add copy, cut, paste
Browse files Browse the repository at this point in the history
  • Loading branch information
hrasoa committed Sep 3, 2024
1 parent 87f9d89 commit dde07d7
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@
#define MO_TO(layer) &mo_to layer layer

/ {
macros {
copy: macro_copy {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LGUI &kp C>;
};

cut: macro_cut {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LGUI &kp X>;
};

paste: macro_paste {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
= <&kp LGUI &kp V>;
};
};

behaviors {
mo_to: behavior_mo_to {
compatible = "zmk,behavior-hold-tap";
Expand Down Expand Up @@ -70,7 +93,7 @@
// | ▼ | ▼ | ▼ | | ▼ | TO0 | ▼ |
bindings = <
&trans &none &kp F2 &none &kp F12 &none &none &none &kp I &none &none &trans
&trans &kp X &kp C &kp LALT &kp V &none &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&trans &cut &copy &kp LALT &paste &none &none &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&trans &none &none &none &none &none &none &none &kp K &none &none &trans
&trans &trans &trans &trans &to DEFAULT &trans
>;
Expand Down

0 comments on commit dde07d7

Please sign in to comment.