summaryrefslogtreecommitdiffstats
path: root/users/ericgebhart/layers
diff options
context:
space:
mode:
Diffstat (limited to 'users/ericgebhart/layers')
-rw-r--r--users/ericgebhart/layers/edge_keys.h420
-rw-r--r--users/ericgebhart/layers/keypads.h236
-rwxr-xr-xusers/ericgebhart/layers/layers.h112
-rw-r--r--users/ericgebhart/layers/nav.h199
-rw-r--r--users/ericgebhart/layers/symbols.h225
-rw-r--r--users/ericgebhart/layers/thumbs.h276
-rw-r--r--users/ericgebhart/layers/toprows.h80
-rw-r--r--users/ericgebhart/layers/utility.h125
8 files changed, 1673 insertions, 0 deletions
diff --git a/users/ericgebhart/layers/edge_keys.h b/users/ericgebhart/layers/edge_keys.h
new file mode 100644
index 0000000000..0794b91a02
--- /dev/null
+++ b/users/ericgebhart/layers/edge_keys.h
@@ -0,0 +1,420 @@
+#pragma once
+/*
+ Copyright 2018 Eric Gebhart <e.a.gebhart@gmail.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+/******************************************************************/
+/* This is where I put my Keyboard layouts, Everything on the */
+/* edges, the functions on keys like LT() and SFT_T() */
+/* can be applied here. The physical shape of the keyboard is */
+/* also accounted for here. This makes it very simple to add a */
+/* new keyboard and reuse all of my layouts and layers */
+/* */
+/* The particular pieces we define here (as needed) are: */
+/* * Edge pinky keys, */
+/* * Middle section keys */
+/* * Bottom/5th row */
+/* * Thumbkeys */
+/* * Any functional additions to wrap the keys. ie. LT() */
+/* */
+/* With all of that in hand, we then create a LAYOUT wrapper */
+/* macro that takes a list of keys, to create a keyboard matrix */
+/* that fits the keyboard. Simple. */
+/* */
+/* The thumb keys, the bottom rows, etc. */
+/* */
+/* An attempt has been made to adapt the kinesis and ergodox */
+/* Thumb keys to the rectangular shapes of the xd75 and viterbi. */
+/* which are 15x and 14x matrices respectively. */
+/* The Corne was a perfect fit */
+/******************************************************************/
+
+/******************************************************************/
+/* * The XD75 is a 5x15 Ortholinear matrix which means it has 3 */
+/* keys inbetween the usual left and right hand keys */
+/* * The Viterbi is a split 5x14 Ortholinear with 2 middle keys. */
+/* * The Ergodox is a split 5x14 Ortholinear with 2 middle keys, */
+/* thumbkeys. It is missing middle keys on (home) row 3. */
+/* * The Corne is a split 3x12 with 6 thumb keys. It has no */
+/* extra middle keys */
+/* */
+/******************************************************************/
+
+
+/******************************************************************/
+/* In all cases these keyboards are defined in a matrix which is */
+/* a set of rows. Maybe like so, or not. */
+/* */
+/* -------------------------|------------------------ */
+/* | Left0 | Numbers L | mid|dle0 | numbers R | Right0 | */
+/* | Left1 | keys0-5 | mid|dle1 | Keys6-10 | Right1 | */
+/* | Left2 | keys11-15 | mid|dle2 | Keys16-20 | Right2 | */
+/* | Left3 | keys20-25 | mid|dle3 | Keys25-30 | Right3 | */
+/* | Row5L | Row5R | */
+/* | ThumbsL | ThumbsR | */
+/* -------------------------|------------------------ */
+
+/* Generally speaking, the keys on the right and left don't change. */
+/* Neither does the bottom row or the thumbs. Frequently the numbers */
+/* row is identical across layers. Mostly, we want our Base layers to */
+/* be predctable. */
+
+// Edge columns. N rows by 6 columns per side.
+// Outside pinky keys are 'yes'
+// Should be undef/def'd by the keyboard's keymap if no.
+//#define EDGE_COLS yes
+
+// BEPO or EN. Used in map.h
+//#define LANG_IS EN
+
+
+#define CONCATENATEE(a, ...) a ## __VA_ARGS__
+#define CATE(a, ...) CONCATENATEE(a, __VA_ARGS__)
+// EDGES
+// outside pinky keys row 0-3.
+// Qwerty and Bepo, - Applies
+// to foreign layouts on bepo. dvorak_bp, beakl_bp.
+// Use by Wrapping the root like so. LANG_N(LEFT0)
+// Add more languages by adding more definitions.
+#define EDGE_KEY(KNAME) CATE(LANG_N(KNAME), EDGE_KEY_SFX)
+#define LEFT_0 EDGE_KEY(LEFT0)
+#define LEFT_1 EDGE_KEY(LEFT1)
+#define LEFT_2 EDGE_KEY(LEFT2)
+#define LEFT_3 EDGE_KEY(LEFT3)
+#define RIGHT_0 EDGE_KEY(RIGHT0)
+#define RIGHT_1 EDGE_KEY(RIGHT1)
+#define RIGHT_2 EDGE_KEY(RIGHT2)
+#define RIGHT_3 EDGE_KEY(RIGHT3)
+
+
+#define EDGE_KEY_SFX CATE(CATE(EDGE_KEY_SET_IS, _), SFX)
+#define SML_SFX _sml
+#define NOKC_SFX _nokc
+#define NORM_SFX _norm
+#define TEST_SFX _test
+#define REF1_SFX _ref1
+#define REF2_SFX _ref2
+
+// Edge key sets
+// a mostly normalish set of edge keys.
+#define LEFT0_EN_norm KC_GRV
+#define LEFT1_EN_norm KC_GRV
+#define LEFT2_EN_norm KC_TAB
+#define LEFT3_EN_norm KC_BSLS
+
+#define RIGHT0_EN_norm KC_EQL
+#define RIGHT1_EN_norm KC_EQL
+#define RIGHT2_EN_norm KC_MINS
+#define RIGHT3_EN_norm KC_SLSH
+
+// smart lock edges mostly
+#define LEFT0_EN_sml SML_NAV
+#define LEFT1_EN_sml SML_NAV
+#define LEFT2_EN_sml KC_TAB
+#ifdef ACCENTS_MORTE_LAYER_ENABLE
+#define LEFT3_EN_sml TT(_ACCENTS_MORTE_EN)
+#else
+#define LEFT3_EN_sml ___
+#endif
+
+#define RIGHT0_EN_sml SML_KEYPAD
+#define RIGHT1_EN_sml SML_KEYPAD
+#define RIGHT2_EN_sml KC_MINS
+#define RIGHT3_EN_sml TT(_LAYERS)
+
+// empty no kc edges
+#define LEFT0_EN_nokc KC_NO
+#define LEFT1_EN_nokc KC_NO
+#define LEFT2_EN_nokc KC_NO
+#define LEFT3_EN_nokc KC_NO
+
+#define RIGHT0_EN_nokc KC_NO
+#define RIGHT1_EN_nokc KC_NO
+#define RIGHT2_EN_nokc KC_NO
+#define RIGHT3_EN_nokc KC_NO
+
+//test edge keys
+#define LEFT0_EN_test KC_NO
+#define LEFT1_EN_test KC_NO
+#define LEFT2_EN_test KC_NO
+#define LEFT3_EN_test KC_NO
+
+#define RIGHT0_EN_test KC_NO
+#define RIGHT1_EN_test KC_NO
+#define RIGHT2_EN_test KC_NO
+#define RIGHT3_EN_test KC_NO
+
+// bepo
+// mostly normal expected things
+#define LEFT0_BP_norm BP_GRV
+#define LEFT1_BP_norm BP_GRV
+#define LEFT2_BP_norm BP_TAB
+#define LEFT3_BP_norm BP_BSLS
+
+#define RIGHT0_BP_norm BP_EQL
+#define RIGHT1_BP_norm BP_EQL
+#define RIGHT2_BP_norm BP_DV_MINS
+#define RIGHT3_BP_norm BP_SLSH
+
+// smart locks mostly, tab, mins
+#define LEFT0_BP_sml SML_NAV
+#define LEFT1_BP_sml SML_NAV
+#define LEFT2_BP_sml KC_TAB
+#define LEFT3_BP_sml TT(_ACCENTS_MORTE_BP)
+
+#define RIGHT0_BP_sml SML_KEYPAD_BP
+#define RIGHT1_BP_sml SML_KEYPAD_BP
+#define RIGHT2_BP_sml BP_MINS
+#define RIGHT3_BP_sml TT(_LAYERS)
+
+// empty nokc edges
+#define LEFT0_BP_nokc KC_NO
+#define LEFT1_BP_nokc KC_NO
+#define LEFT2_BP_nokc KC_NO
+#define LEFT3_BP_nokc KC_NO
+
+#define RIGHT0_BP_nokc KC_NO
+#define RIGHT1_BP_nokc KC_NO
+#define RIGHT2_BP_nokc KC_NO
+#define RIGHT3_BP_nokc KC_NO
+
+// test edges
+#define LEFT0_BP_test KC_NO
+#define LEFT1_BP_test KC_NO
+#define LEFT2_BP_test KC_NO
+#define LEFT3_BP_test KC_NO
+
+#define RIGHT0_BP_test KC_NO
+#define RIGHT1_BP_test KC_NO
+#define RIGHT2_BP_test KC_NO
+#define RIGHT3_BP_test KC_NO
+
+
+// Edges for the combo reference layers.
+#define LEFT0_CB_ref1 L0_CB
+#define LEFT1_CB_ref1 L1_CB
+#define LEFT2_CB_ref1 L2_CB
+#define LEFT3_CB_ref1 L3_CB
+
+#define RIGHT0_CB_ref1 R0_CB
+#define RIGHT1_CB_ref1 R1_CB
+#define RIGHT2_CB_ref1 R2_CB
+#define RIGHT3_CB_ref1 R3_CB
+
+#define LEFT0_CB_ref2 L0_CB2
+#define LEFT1_CB_ref2 L1_CB2
+#define LEFT2_CB_ref2 L2_CB2
+#define LEFT3_CB_ref2 L3_CB2
+
+#define RIGHT0_CB_ref2 R0_CB2
+#define RIGHT1_CB_ref2 R1_CB2
+#define RIGHT2_CB_ref2 R2_CB2
+#define RIGHT3_CB_ref2 R3_CB2
+
+/******************************************************************/
+/* Middle Keysets for various keyboards */
+// MIDDLES
+/// Middle left and right keys.
+/******************************************************************/
+#define ___MIDDLE_LT___ OSL(_LAYERS)
+#define ___MIDDLE_L1___ LANG_KC(_CCCV)
+#define ___MIDDLE_L2___ TO(LN_SYMB)
+#define ___MIDDLE_L3___ TO(_NAV)
+
+#define ___MIDDLE_RT___ _X_
+#define ___MIDDLE_R1___ LANG_KC(_CCCV)
+#define ___MIDDLE_R2___ TO(LN_TOPROWS)
+#define ___MIDDLE_R3___ ___
+
+// 3 keys in the middle of a 15x matrix
+#define ___3_MIDDLE_T___ ___MIDDLE_LT___, LCTL(LANG_KC(_A)), ___MIDDLE_RT___
+#define ___3_MIDDLE_1___ ___MIDDLE_L1___, LCTL(LANG_KC(_X)), ___MIDDLE_R1___
+#define ___3_MIDDLE_2___ ___MIDDLE_L2___, TO_RGB, ___MIDDLE_R2___
+#define ___3_MIDDLE_3___ ___MIDDLE_L3___, TO(LN_SYMB), ___MIDDLE_R3___
+
+// 2 keys in the middle of a 14x matrix - For viterbi and ergodox.
+#define ___2_MIDDLE_T___ ___MIDDLE_LT___, ___MIDDLE_RT___
+#define ___2_MIDDLE_1___ ___MIDDLE_L1___, ___MIDDLE_R1___
+#define ___2_MIDDLE_2___ ___MIDDLE_L2___, ___MIDDLE_R2___
+#define ___2_MIDDLE_3___ ___MIDDLE_L3___, ___MIDDLE_R3___
+
+// 2 keys in the middle of a 14x matrix - For viterbi and ergodox.
+#define ___3_MIDDLE_T_EN___ ___3_MIDDLE_T___
+#define ___3_MIDDLE_1_EN___ ___3_MIDDLE_1___
+#define ___3_MIDDLE_2_EN___ ___3_MIDDLE_2___
+#define ___3_MIDDLE_3_EN___ ___3_MIDDLE_3___
+
+#define ___2_MIDDLE_T_EN___ ___2_MIDDLE_T___
+#define ___2_MIDDLE_1_EN___ ___2_MIDDLE_1___
+#define ___2_MIDDLE_2_EN___ ___2_MIDDLE_2___
+#define ___2_MIDDLE_3_EN___ ___2_MIDDLE_3___
+
+#define ___3_MIDDLE_T_BP___ ___3_MIDDLE_T___
+#define ___3_MIDDLE_1_BP___ ___3_MIDDLE_1___
+#define ___3_MIDDLE_2_BP___ ___3_MIDDLE_2___
+#define ___3_MIDDLE_3_BP___ ___3_MIDDLE_3___
+
+#define ___2_MIDDLE_T_BP___ ___2_MIDDLE_T___
+#define ___2_MIDDLE_1_BP___ ___2_MIDDLE_1___
+#define ___2_MIDDLE_2_BP___ ___2_MIDDLE_2___
+#define ___2_MIDDLE_3_BP___ ___2_MIDDLE_3___
+
+#define ___2_MIDDLE_T_CB___ CB_0M1, CB_0M2
+#define ___2_MIDDLE_1_CB___ CB_1M1, CB_1M2
+#define ___2_MIDDLE_2_CB___ CB_2M1, CB_2M2
+#define ___2_MIDDLE_3_CB___ CB_3M1, CB_3M2
+#define ___2_MIDDLE_4_CB___ CB_4M1, CB_4M2
+
+#define ___3_MIDDLE_T_CB___ CB_0M1, CB_0M2, CB_0M3
+#define ___3_MIDDLE_1_CB___ CB_1M1, CB_1M2, CB_1M3
+#define ___3_MIDDLE_2_CB___ CB_2M1, CB_2M2, CB_2M3
+#define ___3_MIDDLE_3_CB___ CB_3M1, CB_3M2, CB_3M3
+#define ___3_MIDDLE_4_CB___ CB_4M1, CB_4M2, CB_4M3
+
+#define ___4_MIDDLE_4_CB___ CB_4M1, CB_4M2, CB_4M3, CB_4M4
+#define ___5_MIDDLE_4_CB___ CB_4M1, CB_4M2, CB_4M3, CB_4M4, CB_4M5
+
+#define ___2_MIDDLE_T_CB2___ CB2_0M1, CB2_0M2
+#define ___2_MIDDLE_1_CB2___ CB2_1M1, CB2_1M2
+#define ___2_MIDDLE_2_CB2___ CB2_2M1, CB2_2M2
+#define ___2_MIDDLE_3_CB2___ CB2_3M1, CB2_3M2
+#define ___2_MIDDLE_4_CB2___ CB2_4M1, CB2_4M2
+
+#define ___3_MIDDLE_T_CB2___ CB2_0M1, CB2_0M2, CB2_0M3
+#define ___3_MIDDLE_1_CB2___ CB2_1M1, CB2_1M2, CB2_1M3
+#define ___3_MIDDLE_2_CB2___ CB2_2M1, CB2_2M2, CB2_2M3
+#define ___3_MIDDLE_3_CB2___ CB2_3M1, CB2_3M2, CB2_3M3
+#define ___3_MIDDLE_4_CB2___ CB2_4M1, CB2_4M2, CB2_4M3
+
+#define ___4_MIDDLE_4_CB2___ CB2_4M1, CB2_4M2, CB2_4M3, CB2_4M4
+#define ___5_MIDDLE_4_CB2___ CB2_4M1, CB2_4M2, CB2_4M3, CB2_4M4, CB2_4M5
+
+#define ___4_LEFT_4_CB___ CB_4L1, CB_4L2, CB_4L3, CB_4L4
+#define ___4_RIGHT_4_CB___ CB_4R1, CB_4R2, CB_4R3, CB_4R4
+
+#define ___4_LEFT_4_CB2___ CB2_4L1, CB2_4L2, CB2_4L3, CB2_4L4
+#define ___4_RIGHT_4_CB2___ CB2_4R1, CB2_4R2, CB2_4R3, CB2_4R4
+
+#define ___5_LEFT_4_CB___ CB_4L1, CB_4L2, CB_4L3, CB_4L4, CB_4L5
+#define ___5_RIGHT_4_CB___ CB_4R1, CB_4R2, CB_4R3, CB_4R4, CB_4R5
+
+#define ___5_LEFT_4_CB2___ CB2_4L1, CB2_4L2, CB2_4L3, CB2_4L4, CB2_4L5
+#define ___5_RIGHT_4_CB2___ CB2_4R1, CB2_4R2, CB2_4R3, CB2_4R4, CB2_4R5
+
+#define ___13_BOTTOM_CB___ ___5_LEFT_4_CB___, \
+ ___3_MIDDLE_4_CB___, \
+ ___5_RIGHT_4_CB___
+
+#define ___12_BOTTOM_CB___ ___5_LEFT_4_CB___, \
+ ___2_MIDDLE_4_CB___, \
+ ___5_RIGHT_4_CB___
+
+#define ___13_BOTTOM_CB2___ ___5_LEFT_4_CB2___, \
+ ___3_MIDDLE_4_CB2___, \
+ ___5_RIGHT_4_CB2___
+
+#define ___12_BOTTOM_CB2___ ___5_LEFT_4_CB2___, \
+ ___2_MIDDLE_4_CB2___, \
+ ___5_RIGHT_4_CB2___
+
+/* BOTTOMS, sorta like THUMBS */
+/********************************************************************/
+// for xd75 or other layouts with a center column.
+// #define ___5_MIDDLE_THUMBS___ CTL_BSPC, ALT_DEL, XMONAD_ESC, ALT_ENT, CTL_SPC
+#define ___5_MIDDLE_THUMBS___ ALT_DEL, BSPC_TOPR, ESC_SYMB, ENT_NAV, SPC_TOPR
+
+ // for a last, 4th thumb row. for rebound.
+ // backtab, home end, ----, pgup, pgdn, tab ?
+#define ___13_BOTTOM___ \
+ KC_BKTAB, HOME_END, KC_TAB, TT(_NAV), BSPC_SYMB, ESC_TOPR, \
+ OSL(_LAYERS), \
+ ENT_NAV, SPC_TOPR, KC_LEFT, KC_PGUP, KC_PGDN, KC_RIGHT
+
+#define ___13_BOTTOM_EN___ ___13_BOTTOM___
+#define ___13_BOTTOM_BP___ ___13_BOTTOM___
+
+#define ___12_BOTTOM___ \
+ KC_BKTAB, HOME_END, KC_TAB, TT(_NAV), BSPC_SYMB, ESC_TOPR, \
+ ENT_NAV, SPC_TOPR, KC_LEFT, KC_PGUP, KC_PGDN, KC_RIGHT
+
+#define ___12_BOTTOM_EN___ ___12_BOTTOM___
+#define ___12_BOTTOM_BP___ ___12_BOTTOM___
+
+// becomes the upper thumbs, the real 4th row if we throw away
+// the number row at the top.
+// this is the 4th row on the viterbi above the thumbrow if the number
+// row is not used for numbers.
+#define ___4_MIDDLE_4___ LSFT(KC_TAB), HOME_END, KC_PGDN, KC_TAB
+#define ___4_MIDDLE_4b___ TAB_BKTAB, HOME_END, KC_PGDN, KC_PGUP
+
+/********************************************************************/
+/* The bottom row and thumbs as needed. */
+/********************************************************************/
+// Only the 14 and 15 wide bottom rows have bepo versions.
+// all others are handled through macros.
+
+#define ___5_BOTTOM_LEFT___ ___X2___, KC_INS, KC_LEFT, KC_RIGHT
+#define ___5_BOTTOM_RIGHT___ KC_UP, KC_DOWN, KC_BSLASH, ___X2___
+
+#define ___5_BOTTOM_LEFT_EN___ ___5_BOTTOM_LEFT___
+#define ___5_BOTTOM_RIGHT_EN___ ___5_BOTTOM_RIGHT___
+
+#define ___4_BOTTOM_LEFT___ LCTL(KC_V), KC_INS, KC_LEFT, KC_RIGHT
+#define ___4_BOTTOM_RIGHT___ KC_UP, KC_DOWN, KC_BSLASH, LCTL(KC_C)
+
+#define ___4_BOTTOM_LEFT_EN___ ___4___ //___4_BOTTOM_LEFT___
+#define ___4_BOTTOM_RIGHT_EN___ ___4___ //___4_BOTTOM_RIGHT___
+
+// the bottom rows for keyboards on bepo.
+// bepo on bepo - not enough space to go around....
+#define ___5_BOTTOM_LEFT_BP___ _X_, BP_EACU, _X_, KC_LEFT, KC_RIGHT
+#define ___5_BOTTOM_RIGHT_BP___ KC_UP, KC_DOWN, BP_BSLS, BP_CCED, BP_PERC
+
+#define ___4_BOTTOM_LEFT_BP___ LCTL(BP_C), BP_EACU, KC_LEFT, KC_RIGHT
+#define ___4_BOTTOM_RIGHT_BP___ KC_UP, KC_DOWN, BP_BSLS, BP_CCED
+
+// for combo ref layers for kinesis, dactyl and kinesis.
+#define ___5_BOTTOM_LEFT_FR___ ___X3___, KC_LEFT, KC_RIGHT
+#define ___5_BOTTOM_RIGHT_FR___ KC_UP, KC_DOWN, BP_BSLS, ___X2___
+
+#define ___4_BOTTOM_LEFT_CB___ ___4_LEFT_4_CB___
+#define ___4_BOTTOM_RIGHT_CB___ ___4_RIGHT_4_CB___
+
+#define ___4_BOTTOM_LEFT_CB2___ ___4_LEFT_4_CB2___
+#define ___4_BOTTOM_RIGHT_CB2___ ___4_RIGHT_4_CB2___
+
+#define ___5_BOTTOM_LEFT_CB___ ___5_LEFT_4_CB___
+#define ___5_BOTTOM_RIGHT_CB___ ___5_RIGHT_4_CB___
+
+#define ___5_BOTTOM_LEFT_CB2___ ___5_LEFT_4_CB2___
+#define ___5_BOTTOM_RIGHT_CB2___ ___5_RIGHT_4_CB2___
+
+// basically a 5th row in a 5x matrix. but maybe a 4th if there isnt a number row.
+// need an en, because we a have a BP and we used it directly in the layout.
+#define ___15_BOTTOM_EN___ ___5_BOTTOM_LEFT___, ___5_MIDDLE_THUMBS___, ___5_BOTTOM_RIGHT___
+#define ___15_BOTTOM_FR___ ___5_BOTTOM_LEFT_FR___, ___5_MIDDLE_THUMBS___, ___5_BOTTOM_RIGHT_FR___
+#define ___15_BOTTOM_BP___ ___5_BOTTOM_LEFT_BP___, ___5_MIDDLE_THUMBS___, ___5_BOTTOM_RIGHT_BP___
+#define ___15_BOTTOM_CB___ ___5_LEFT_4_CB___, ___5_MIDDLE_4_CB___, ___5_RIGHT_4_CB___
+#define ___15_BOTTOM_CB2___ ___5_LEFT_4_CB2___, ___5_MIDDLE_4_CB2___, ___5_RIGHT_4_CB2___
+
+// need an en, because we a have a BP and we used it directly in the layout.
+#define ___14_BOTTOM_EN___ ___5_BOTTOM_LEFT___, ___4_MIDDLE_4b___, ___5_BOTTOM_RIGHT___
+#define ___14_BOTTOM_FR___ ___5_BOTTOM_LEFT_FR___, ___4_MIDDLE_4b___, ___5_BOTTOM_RIGHT_FR___
+#define ___14_BOTTOM_BP___ ___5_BOTTOM_LEFT_BP___, ___4_MIDDLE_4b___, ___5_BOTTOM_RIGHT_BP___
+#define ___14_BOTTOM_CB___ ___5_LEFT_4_CB___, ___4_MIDDLE_4_CB___, ___5_RIGHT_4_CB___
+#define ___14_BOTTOM_CB2___ ___5_LEFT_4_CB2___, ___4_MIDDLE_4_CB2___, ___5_RIGHT_4_CB2___
+
+#define ___14_THUMBS_BOTTOM___ ___X4___, ___6_ERGO_THUMBS___, ___X4___
diff --git a/users/ericgebhart/layers/keypads.h b/users/ericgebhart/layers/keypads.h
new file mode 100644
index 0000000000..ab4100594d
--- /dev/null
+++ b/users/ericgebhart/layers/keypads.h
@@ -0,0 +1,236 @@
+/*
+ Copyright 2018-2022 Eric Gebhart <e.a.gebhart@gmail.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+/**********************************************_**********************************/
+/* KEYPADS. Mostly all in Bepo and Qwerty versions */
+/* 4 row Pads: */
+/* * The BEAKL 15,19 Number pad, for the left hand. */
+/* * The BEAKL Wi hex pad, Number pad. */
+/* * Regular Number pad, for the right hand. */
+/* * 12 Function pad. */
+/* 3 row pads: */
+/* keypad */
+/* function pad - 3x4, 12 function keys. */
+/* */
+/* LAYERS: */
+/* 4 Row: */
+/* * BEAKL with a compact FuncPad on the right. */
+/* * Funcpad on the left, keypad on the right. */
+/* 3 Row: */
+/* * Funcpad on the left, keypad on the right. */
+/* * BEAKL with a compact FuncPad on the right. */
+/* */
+/********************************************************************************/
+
+// BEAKL 15 (numpad layer):
+/* +=* ^%~ */
+/* ↹523: */
+/* - 7.104 */
+/* /698, */
+
+/* BEAKL27 (numpad layer): */
+/* ↹+/\*= yxz */
+/* -523: ~FED */
+/* 7.104 {CBA} */
+/* ,698⏎ []% */
+
+// Keypads
+#define ___KEYPAD_BEAKL_L1___ ___, _PLUS, _SLSH, _ASTR, _EQL
+#define ___KEYPAD_BEAKL_L2___ _MINS, _5, _2, _3, _COLN
+#define ___KEYPAD_BEAKL_L3___ _7, _DOT, _1, _0, _4
+#define ___KEYPAD_BEAKL_L4___ _COMM, _6, _9, _8, _COMM
+
+#define ___6KEYPAD_BEAKL_L1___ ___, KEYPAD_BEAKL_L1
+#define ___6KEYPAD_BEAKL_L2___ ___, KEYPAD_BEAKL_L2
+#define ___6KEYPAD_BEAKL_L3___ KC_MINS, KEYPAD_BEAKL_L3
+#define ___6KEYPAD_BEAKL_L4___ ___, KEYPAD_BEAKL_L4
+
+// if there's room. the top row on the right.
+#define ___KEYPAD_BEAKL_R1___ ___, KC_CIRC, KC_PERC, KC_TILD, ___
+
+
+
+/// parts is parts.
+
+#define ___KP_BKL_WI_L1___ _X_, HEX_A, HEX_B, HEX_C, _X_
+#define ___KP_BKL_WI_L2___ _X_, HEX_D, HEX_E, HEX_F, _X_
+#define ___KP_BKL_WI_L3___ _X_, L_BRKT, R_BRKT, DELIM, _X_
+
+#define ___KP_BKL_WI_R1___ _SLSH, _4, _5, _9, _ASTR
+#define ___KP_BKL_WI_R2___ _DOT , _1, _2, _3, _MINS
+#define ___KP_BKL_WI_R3___ _COMM, _8, _6, _7, _PLUS
+
+#define ___KEYPAD_1___ ___, _7, _8, _9, _PSLS
+#define ___KEYPAD_2___ _DOT, _4, _5, _6, _PAST
+#define ___KEYPAD_3___ _0, _1, _2, _3, _PMNS
+
+#define ___KEYPAD_miryoku_1___ _LBRC, _7, _8, _9, _RBRC, ____5_
+#define ___KEYPAD_miryoku_2___ _SCLN, _4, _5, _6, _EQUAL, ____5_
+#define ___KEYPAD_miryoku_3___ _GRV, _1, _2, _3, _BSLS, ____5_
+
+// 4 Row keypads
+#define ___5KEYPAD_1___ _X_, ___KEYPAD_1___
+#define ___5KEYPAD_2___ _X_, ___KEYPAD_2___
+#define ___5KEYPAD_3___ _X_, ___KEYPAD_3___
+#define ___5KEYPAD_4___ _X_, _0, _DOT, _PEQL, _PPLS
+
+// Function pad. Same idea as above, but for function keys.
+
+// Funcpads are a bit weird. THey are KC values, so for
+// this to work, there are BP_ versions of the F keys.
+// I don't really use this, so maybe it'll go away in favor
+// of something more useful.
+// 4x3 and 3x4 funcpads.
+// Only 4 columns, so the fifth can be added to either end.
+#define ___4_FUNCPAD_1___ _F9, _F10, _F11, _F12
+#define ___4_FUNCPAD_2___ _F5, _F6, _F7, _F8
+#define ___4_FUNCPAD_3___ _F1, _F2, _F3, _F4
+
+#define ___FUNCPAD_miryoku_1___ KC_F12, KC_F7, KC_F8, KC_F9, KC_PRINT_SCREEN
+#define ___FUNCPAD_miryoku_2___ KC_F11, KC_F4, KC_F5, KC_F6, KC_SCROLL_LOCK
+#define ___FUNCPAD_miryoku_3___ KC_F10, KC_F1, KC_F2, KC_F3, KC_PAUSE
+
+// For the left or right side.
+#define ___5x4_FUNCPAD_T___ _TRNS, _F10, _F11, _F12, _TRNS
+#define ___5x4_FUNCPAD_1___ _TRNS, _F7, _F8, _F9, _TRNS
+#define ___5x4_FUNCPAD_2___ _TRNS, _F4, _F5, _F6, _TRNS
+#define ___5x4_FUNCPAD_3___ _TRNS, _F1, _F2, _F3, _TRNS
+
+
+/********************************************************************************/
+/* FUNCPAD and Keypad Layer chunks */
+/********************************************************************************/
+// beakl wi is a hexpad numpad.
+/* Beakle Wi, Hexpad and keypad - needs a zero somewhere.*/
+#define CARTE_KP_BKL_WI \
+ carte_de_map( " ABC /459* ", \
+ " DEF .123- ", \
+ " {}| ,867+ ")
+
+#define ___KP_BKL_WI_3x10___ \
+ CHUNK_LANG_MAP(___KP_BKL_WI_L1___, ___KP_BKL_WI_R1___, \
+ ___KP_BKL_WI_L2___, ___KP_BKL_WI_R2___, \
+ ___KP_BKL_WI_L3___, ___KP_BKL_WI_R3___)
+
+
+// BEAKL 15 and a f1-f12 funcpad
+#define CARTE_KP_BKL_FUNC \
+ carte_de_map(" 523: F9-12", \
+ " -7.104 F5-8", \
+ " /798, F1-4")
+
+#define ___KP_BKL_FUNC_3x10___ \
+ CHUNK_LANG_MAP(___KEYPAD_BEAKL_L2___, _TRNS, ___4_FUNCPAD_1___, \
+ ___KEYPAD_BEAKL_L3___, _TRNS, ___4_FUNCPAD_2___, \
+ ___KEYPAD_BEAKL_L4___, _TRNS, ___4_FUNCPAD_3___)
+
+// BEAKL 15 and mods.
+#define CARTE_KP_BKL_MODS \
+ carte_de_map(" 523: SL Mods", \
+ " -7.104 OS Mods", \
+ " /798, Enter")
+
+
+#define ___KP_BKL_MODS_3x10___ \
+ CHUNK_LANG_MAP(___KEYPAD_BEAKL_L2___, _TRNS, ___SML_MODS_R___, \
+ ___KEYPAD_BEAKL_L3___, ___OS_MODS_R___, \
+ ___KEYPAD_BEAKL_L4___, _TRNS, _ENT, _ENT, _ENT, _TRNS)
+
+// 4 rows, BEAKL 15 and a f1-f12 funcpad
+#define ___KP_BKL_FUNC_4x10___ \
+ CHUNK_LANG_ROW(___KEYPAD_BEAKL_L1___, ___KEYPAD_BEAKL_R1___), \
+ CHUNK_LANG_MAP(___KP_BKL_FUNC_3x10___)
+
+// 4 rows, funcpad, regular keypad on right.
+#define ___FP_KP_4x10___ \
+ CHUNK_LANG_ROW(___5x4_FUNCPAD_T___, ___5KEYPAD_1___), \
+ CHUNK_LANG_MAP(___5x4_FUNCPAD_1___, ___5KEYPAD_2___, \
+ ___5x4_FUNCPAD_2___, ___5KEYPAD_3___, \
+ ___5x4_FUNCPAD_3___, ___5KEYPAD_4___)
+
+#define CARTE_FP_KP \
+ carte_de_map(" F9-12 789+", \
+ " F5-8 .456*", \
+ " F1-4 0123-")
+
+// funcpad, regular keypad on right.
+#define ___FP_KP_3x10___ \
+ CHUNK_LANG_MAP(___4_FUNCPAD_1___, ___, ___5KEYPAD_1___, \
+ ___4_FUNCPAD_2___, ___, ___5KEYPAD_2___, \
+ ___4_FUNCPAD_3___, ___, ___5KEYPAD_3___)
+
+#define CARTE_KP_FP \
+ carte_de_map(" 789+ F9-12", \
+ " .456* F5-8", \
+ " 0123- F1-4")
+// regular keypad on left.
+#define ___KP_FP_3x10___ \
+ CHUNK_LANG_MAP(___5KEYPAD_1___, ___, ___4_FUNCPAD_1___, \
+ ___5KEYPAD_2___, ___, ___4_FUNCPAD_2___, \
+ ___5KEYPAD_3___, ___, ___4_FUNCPAD_3___)
+
+#define CARTE_MODS_KP \
+ carte_de_map(" SMods 789+", \
+ " OSMods .456*", \
+ " F1-4 0123-")
+
+// funcpad, regular keypad on right.
+#define ___MODS_KP_3x10___ \
+ CHUNK_LANG_MAP(___SML_MODS_L___, ___, ___5KEYPAD_1___, \
+ ___OS_MODS_L___, ___5KEYPAD_2___, \
+ ___5___, ___5KEYPAD_3___)
+
+#define CARTE_KP_MODS \
+ carte_de_map(" 789+ SMods", \
+ " .456* OSMods", \
+ " 0123- ")
+
+// regular keypad on left.
+#define ___KP_MODS_3x10___ \
+ CHUNK_LANG_MAP(___5KEYPAD_1___, ___, ___SML_MODS_R___, \
+ ___5KEYPAD_2___, ___OS_MODS_L___, \
+ ___5KEYPAD_3___, ___, ___4___)
+
+#define CARTE_FUN \
+ carte_de_map(" F9-F12 SMods", \
+ " F5-F8 OSMods", \
+ " F1-F4 ")
+
+#define ___FUN_3x10___ \
+ CHUNK_LANG_MAP(___4_FUNCPAD_1___, ___, ___, ___SML_MODS_R___, \
+ ___4_FUNCPAD_2___, ___, ___OS_MODS_R___, \
+ ___4_FUNCPAD_3___, ___, ___5___)
+
+#define CARTE_FUN_MIRYOKU \
+ carte_de_map("F12 F7-F9 prt SMods", \
+ "F11 F4-F6 scr OSMods", \
+ "F10 F1-F3 pse ")
+
+#define ___FP_MIRYOKU_3x10___ \
+ ___FUNCPAD_miryoku_1___, ___, ___SML_MODS_R___, \
+ ___FUNCPAD_miryoku_2___, ___OS_MODS_R___, \
+ ___FUNCPAD_miryoku_3___, ___5___
+
+// wants . and 0 on left thumb.
+#define CARTE_KP_MIRYOKU \
+ carte_de_map(" [789]", \
+ " ;456=", \
+ " `123\\")
+
+#define ___KP_MIRYOKU_3x10___ \
+ CHUNK_LANG_MAP(___KEYPAD_miryoku_1___, \
+ ___KEYPAD_miryoku_2___, \
+ ___KEYPAD_miryoku_3___)
diff --git a/users/ericgebhart/layers/layers.h b/users/ericgebhart/layers/layers.h
new file mode 100755
index 0000000000..0f09d0cfc3
--- /dev/null
+++ b/users/ericgebhart/layers/layers.h
@@ -0,0 +1,112 @@
+#pragma once
+/*
+ Copyright 2018 Eric Gebhart <e.a.gebhart@gmail.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "keycodes.h"
+/*********************************************************************/
+/* Non-Base Layer Definitions. */
+/* */
+/* Keypads, sympads, funcpads, symbols, RGB, Layers, Controls, etc. */
+/* Qwerty and Bepo versions exist as needed. */
+/* */
+/* This file defines every auxillary layer I use on every keyboard */
+/* Ergodox, keebio/viterbi, xd75, rebound, crkbd, morpho, dactyl,.. */
+/*********************************************************************/
+/********************************************************************************/
+/* The following Transient/Non-Base Layers are provided within. */
+/* Each layer is named with the size of Keymatrix it has entries for. */
+/* 3x10 are usual for these. I had 3x12's but I didn't need the edges really. */
+/* It was an attempt to accommodate Bepo which is 13 columns wide. */
+/* Even in a 3x12 Bepo is wonky. So I gave up on it. I also gave up on 4 row */
+/* layers, I really want my keys in that 3x5 space. Everything on the edges can */
+/* stay as it is. Splitting is managed in the macros as */
+/* needed. BP indicates the Bepo equivalent to the Qwerty layer when needed. */
+/********************************************************************************/
+/* */
+/* Explore below to see what they all are. */
+/* Naming gives the sizes of things, a prefix number is the length. */
+/* BP is the bepo version of things. */
+/* BKL is the beakl 15 version of a layout or chunk. */
+/* C on the end of a name means its a compact version of something. */
+/* Compact meaning for use on a 3 row layout. */
+/* */
+/* TOPROWS - numbers, symbols, functions, all on one layer. */
+/* ___TOPROWS_3x10___ */
+/* ___TOPROWS_BP_3x10___ */
+/* */
+/* KEYPADS/FUNCPADS. */
+/* ___KP_C_3x10___ */
+/* ___KP_C_BP_3x10___ */
+/* ___KP_C_BKL_FUNC_3x10___ -- BEAKL key/func pads. */
+/* ___KP_C_BKL_FUNC_BP_3x10___ */
+/* */
+/* SYMBOLS -Beakl or Beakl extended */
+/* ___SYMB_BEAKL_3x10___ */
+/* ___SYMB_BEAKL_BP_3x10___ */
+/* */
+/* Beakl extended symbol layer with additional corner symbols. */
+/* For use with non-beakl base layers. */
+/* ___SYMB_BEAKLA_3x10___ */
+/* ___SYMB_BEAKLA_BP_3x10___ */
+/* For use with vi bindings optimized */
+/* ___SYMB_BEAKLB_3x10___ */
+/* ___SYMB_BEAKLB_BP_3x10___ */
+/* */
+/* NAVIGATION */
+/* ___NAV_3x10___ */
+/* */
+/* CONTROLS */
+/* ___RGB_3x10___ */
+/* ___ADJUST_3x10___ */
+ /* ___LAYERS_3x10___ */
+ /********************************************************************************/
+ /*********************************************************************/
+ /* XXXXXX Layer chunk -- These are the final layers. */
+ /* */
+/* Each section defines the necessary pieces to create a layer. */
+/* It builds them up into consistently shaped lists for the layout */
+/* wrapper. */
+/* */
+/* Each Section ends with a _Layer Chunk_. This is so the */
+/* layer can be easily given to the Layout Wrapper macros which */
+/* takes a list of keys in lengths of 2x3x5, 2x3x6, 2x4x5, or 2x4x6. */
+/* */
+/* All of my keyboard definitions use these same chunks with similar */
+/* macros. The differences between keyboards are all managed in the */
+/* macro. Here we just have nice rectangular sets of keys to */
+/* complete a layout. */
+/*********************************************************************/
+
+// these are needed so that groups of defined keys will unravel
+// into their values. The Base layers don't need them becuse the
+// keys are explicit in their passing. Here, chunks are made for
+// convenience and reuse. They don't unravel unless we wrap these
+// in var args.
+#define CHUNK_LANG_MAP(...) LANG_MAP(__VA_ARGS__)
+#define CHUNK_LANG_ROW(...) LANG_ROW(__VA_ARGS__)
+
+// 5 wide, with the two shot control.
+#define ___OS_MODS_L___ OS_LGUI, OS_LALT, OS_LCTL, OS_LSFT, TS_LCTL
+#define ___OS_MODS_R___ TS_RCTL, OS_RSFT, OS_RCTL, OS_RALT, OS_RGUI
+// 4 wide.
+#define ___SML_MODS_L___ SMLM_LGUI, SMLM_LALT, SMLM_LCTL, SMLM_LSFT
+#define ___SML_MODS_R___ SMLM_RSFT, SMLM_RCTL, SMLM_RALT, SMLM_RGUI
+
+#include "keypads.h"
+#include "nav.h"
+#include "symbols.h"
+#include "toprows.h"
+#include "utility.h"
diff --git a/users/ericgebhart/layers/nav.h b/users/ericgebhart/layers/nav.h
new file mode 100644
index 0000000000..97243872e2
--- /dev/null
+++ b/users/ericgebhart/layers/nav.h
@@ -0,0 +1,199 @@
+/*
+ Copyright 2018-2022 Eric Gebhart <e.a.gebhart@gmail.com>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+/********************************************************************************/
+/* NAVIGATION - MOUSE, Scroll, Buttons, Arrows, Tab, Home, page up/down, End */
+/* Navigation layers: */
+/* 3 row Layer */
+/* 4 Row Layer with repeated and swapped VI arrows, and Scroll wheel. */
+/********************************************************************************/
+/* */
+/* Navigation layer with optional 4th Row.... */
+/* */
+/* M = Mouse */
+/* B = Button */
+/* W = Wheel */
+/* AC = Acceleration */
+/* CCCV = Tap -> Ctrl-C, hold for double tap duration -> Ctrl-V */
+/* CTCN = Tap -> Ctrl-T, hold for double tap duration -> Ctrl-N */
+/* CWCQ = Tap -> Ctrl-W, hold for double tap duration -> Ctrl-Q */
+/* HOME = TAB & PGDN */
+/* END = BKTAB & PGUP -- See combos. */
+/* */
+/* MB5 MB4 MB3 MB2 MB1 MAC0 | CTCN MB1 MB2 MB3 MB4 MB5 */
+/* TAB MLeft MDown MUp MRight MAC1 | CCCV Left Down UP Right TAB */
+/* WLeft WDown WUp WRight MAC2 | CWCQ TAB PGDN PGUP BKTAB *