Skip to content

Commit

Permalink
Merge pull request #6 from JeffDess/game-layer
Browse files Browse the repository at this point in the history
Game layer
  • Loading branch information
JeffDess authored Dec 31, 2023
2 parents ba0f4e8 + 04f57e4 commit 0e21dc8
Show file tree
Hide file tree
Showing 9 changed files with 322 additions and 11 deletions.
5 changes: 4 additions & 1 deletion behaviors/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ ZMK_COMBO(tmux_cmd, &TMUX_CMD, LM2 LM3 RM4, DEF, HR_TIMEOUT)
// TMUX New Session - active on base layer
ZMK_COMBO(tmux_session, &TMUX_SESSION, LM2 LM3 LM4, DEF, HR_TIMEOUT)

// To Mouse Layer - active on base layer
// Toggle Mouse Layer - active on base and mouse layers
ZMK_COMBO(toggle_mouse, &tog MOU, LT1 LT4, DEF MOU)

// Toggle Game Layer - active on base and game layer
ZMK_COMBO(toggle_mouse, &tog MOU, RT1 RT4, DEF GAM)

/***********************
SYMBOL LAYER
***********************/
Expand Down
3 changes: 2 additions & 1 deletion config/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define NAV 3
#define NUM 4
#define MOU 5
#define GAM 6

// Modifier keys
#define GL LGUI
Expand All @@ -29,4 +30,4 @@
#define MAC_OS 2

// Apps
#define TMUX LC(LA(J)) // Tmux -> Ctrl + Alt + J
#define TMUX LC(LA(J)) // Tmux -> Ctrl + Alt + J
12 changes: 12 additions & 0 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,15 @@ ZMK_LAYER_5COL(mouse,
&to DEF &mkp_rg &mkp_lf XXX XXX XXX
// ╰───────────┴────────────┴────────────╯ ╰───────────┴─────────────┴─────────────╯
)

ZMK_LAYER(game,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
&kp TAB &kp Q &kp W &kp E &kp R &mkp_lf &mkp_md &mkp_rg &mwh_tg &kp AL
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&kp SL &kp A &kp S &kp D &kp F &kp N1 &kp N2 &kp N3 &kp N4 &kp N5
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&kp CL &kp Z &kp X &kp C &kp V &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
// ╰───────────┴───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┴────────────╯
&kp ESC &kp SPACE &kp RET &kp ESC &kp M XXX
// ╰───────────┴────────────┴────────────╯ ╰───────────┴─────────────┴─────────────╯
)
12 changes: 12 additions & 0 deletions config/urchin.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,15 @@ ZMK_LAYER(mouse,
&mkp_rg &mkp_lf XXX XXX
// ╰────────────┴────────────╯ ╰───────────┴─────────────╯
)

ZMK_LAYER(game,
// ╭───────────┬───────────┬───────────┬────────────┬────────────╮ ╭───────────┬─────────────┬─────────────┬────────────┬────────────╮
&kp TAB &kp Q &kp W &kp E &kp R &mkp_lf &mkp_md &mkp_rg &mwh_tg &kp AL
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&kp SL &kp A &kp S &kp D &kp F &kp N1 &kp N2 &kp N3 &kp N4 &kp N5
// ├───────────┼───────────┼───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┼────────────┼────────────┤
&kp CL &kp Z &kp X &kp C &kp V &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
// ╰───────────┴───────────┴───────────┼────────────┼────────────┤ ├───────────┼─────────────┼─────────────┴────────────┴────────────╯
&kp SPACE &kp RET &kp ESC &kp M
// ╰────────────┴────────────╯ ╰───────────┴─────────────╯
)
4 changes: 4 additions & 0 deletions images/icons/click_middle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0e21dc8

Please sign in to comment.