Skip to content

Commit

Permalink
Add media layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Nov 4, 2021
1 parent 59f0d10 commit 03cddaa
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions boards/arm/zaphod/zaphod.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
#define OTH_L 2
#define NUM_L 3
#define SYM_L 4
#define FUN_L 5
#define MED_L 5
#define FUN_L 6

// Using layer taps on thumbs, having quick tap as well helps w/ repeating space/backspace
&lt { quick_tap_ms = <200>; };
Expand All @@ -22,19 +23,18 @@
combos {
compatible = "zmk,combos";

med_mo {
timeout-ms = <50>;
key-positions = <30 31>;
bindings = <&mo MED_L>;
};

fn_mo {
timeout-ms = <50>;
key-positions = <32 33>;
bindings = <&mo FUN_L>;
};

/*
caps_word_combo {
timeout-ms = <50>;
key-positions = <13 16>;
bindings = <&caps_word>;
};
*/
};

behaviors {
Expand Down Expand Up @@ -101,6 +101,16 @@
>;
};

media_layer {
label = "Media";
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &kp C_PREV &kp C_VOL_DN &kp C_VOL_UP &kp C_NEXT
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &kp C_STOP &kp C_PLAY_PAUSE
>;
};

fun_layer {
label = "Fun";
bindings = <
Expand Down

0 comments on commit 03cddaa

Please sign in to comment.