From 050472a4d07d07c1d9ae17d2fd26d44e9d95d950 Mon Sep 17 00:00:00 2001 From: Eric Gebhart Date: Sat, 12 Nov 2022 00:09:41 +0100 Subject: Eric Gebhart user space and keymaps (#17487) Co-authored-by: Drashna Jaelre --- users/ericgebhart/mod_layers/trns_mods.h | 129 +++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 users/ericgebhart/mod_layers/trns_mods.h (limited to 'users/ericgebhart/mod_layers/trns_mods.h') diff --git a/users/ericgebhart/mod_layers/trns_mods.h b/users/ericgebhart/mod_layers/trns_mods.h new file mode 100644 index 0000000000..06dfb06edd --- /dev/null +++ b/users/ericgebhart/mod_layers/trns_mods.h @@ -0,0 +1,129 @@ +#pragma once +/* + Copyright 2018-2022 Eric Gebhart + + 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 . +*/ +// +// non Home row mods, mod layer. + +// MOD_ROW variants. +// input 5 get six, left and right language specific outer edge keys. + +// no edge keys. +// input 5 get 5 with mods applied. + +// input 6 get 6 with mods applied. + +// base cols in out. 5, 5_6, 6. +// input column count, output column count, if different. + +// L_5 Left R_5 Right. +// K01, K02, K03, K04, K05 - K01, K02, K03, K04, K05 +// pky, rng, mdl, idx, idx - idx, idx, mdl, rng, pnky + +// ROW0 - Number row. +// LEFT. +#define ROW0L_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 +// take and put an extra column in front. Mod K01 how you want it. +#define ROW0L_6_trns(K01, K02, K03, K04, K05, K06) K01, \ + ROW0L_5_trns(K02, K03, K04, K05, K06) + +// 5 into 6, derivitive of the first two. +#define ROW0L_5_6_trns(K01, K02, K03, K04, K05) \ + ROW0L_6_trns(LEFT_0, K01, K02, K03, K04, K05) + +// RIGHT. +#define ROW0R_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 +// take and put an extra column in front. Mod K01 how you want it. +#define ROW0R_6_trns(K01, K02, K03, K04, K05, K06) \ + ROW0R_5_trns(K01, K02, K03, K04, K05), K06 + +// 5 into 6, derivitive of the first two. +#define ROW0R_5_6_trns(K01, K02, K03, K04, K05) \ + ROW0R_6_trns(K01, K02, K03, K04, K05, RIGHT_0) + + +// ROW1 +// LEFT. +#define ROW1L_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 +// take and put an extra column in front. Mod K01 how you want it. +#define ROW1L_6_trns(K01, K02, K03, K04, K05, K06) K01, \ + ROW1L_5_trns(K02, K03, K04, K05, K06) + +// 5 into 6, derivitive of the first two. +#define ROW1L_5_6_trns(K01, K02, K03, K04, K05) \ + ROW1L_6_trns(LEFT_1, K01, K02, K03, K04, K05) + +// RIGHT. +#define ROW1R_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 \ + // take and put an extra column in front. Mod K01 how you want it. +#define ROW1R_6_trns(K01, K02, K03, K04, K05, K06) \ + ROW1R_5_trns(K01, K02, K03, K04, K05), K06 + +// 5 into 6, derivitive of the first two. +#define ROW1R_5_6_trns(K01, K02, K03, K04, K05) \ + ROW1R_6_trns(K01, K02, K03, K04, K05, RIGHT_1) + + +// HOME ROW - ROW2 +// LEFT. +#define ROW2L_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 +// take and put an extra column in front. Mod K01 how you want it. +#define ROW2L_6_trns(K01, K02, K03, K04, K05, K06) K01, \ + ROW2L_5_trns(K02, K03, K04, K05, K06) + +// 5 into 6, derivitive of the first two. +#define ROW2L_5_6_trns(K01, K02, K03, K04, K05) \ + ROW2L_6_trns(LEFT_2, K01, K02, K03, K04, K05) + +// RIGHT. +#define ROW2R_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 \ + // take and put an extra column in front. Mod K01 how you want it. +#define ROW2R_6_trns(K01, K02, K03, K04, K05, K06) \ + ROW2R_5_trns(K01, K02, K03, K04, K05), K06 + +// 5 into 6, derivitive of the first two. +#define ROW2R_5_6_trns(K01, K02, K03, K04, K05) \ + ROW2R_6_trns(K01, K02, K03, K04, K05, RIGHT_2) + + +// ROW 3 +// LEFT. +#define ROW3L_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 +// take and put an extra column in front. Mod K01 how you want it. +#define ROW3L_6_trns(K01, K02, K03, K04, K05, K06) K01, \ + ROW3L_5_trns(K02, K03, K04, K05, K06) + +// 5 into 6, derivitive of the first two. +#define ROW3L_5_6_trns(K01, K02, K03, K04, K05) \ + ROW3L_6_trns(LEFT_3, K01, K02, K03, K04, K05) + +// RIGHT. +#define ROW3R_5_trns(K01, K02, K03, K04, K05) \ + K01, K02, K03, K04, K05 +// take and put an extra column in front. Mod K01 how you want it. +#define ROW3R_6_trns(K01, K02, K03, K04, K05, K06) K01, \ + ROW3R_5_trns(K02, K03, K04, K05, K06) + +// 5 into 6, derivitive of the first two. +#define ROW3R_5_6_trns(K01, K02, K03, K04, K05) \ + ROW3R_6_trns(K01, K02, K03, K04, K05, RIGHT_3) -- cgit v1.2.3