1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720
#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/>.
*/
#include "core_keysets.h"
#include "mod_layer.h"
#include "edge_keys.h"
/******************************************************************/
/* This is where I put my Keyboard layouts. */
/* The mod layer can be modified in mod_layer.h */
/* 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 */
/* */
/* 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, viterbi, */
/* and rebound. */
/******************************************************************/
/******************************************************************/
/* * 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. */
// Since our quirky block definitions are basically a list of comma separated
// arguments, we need a wrapper in order for these definitions to be
// expanded before being used as arguments to the LAYOUT_xxx macro.
#if (!defined(LAYOUT) && defined(KEYMAP))
#define LAYOUT KEYMAP
#endif
// every keyboard has it's Layout. We start there and make a var args
// out of it.
#define LVARG_ergodox(...) LAYOUT_ergodox(__VA_ARGS__)
#define LVARG_edox(...) LAYOUT_ergodox_pretty(__VA_ARGS__)
#define LAYOUT_VARG(...) LAYOUT(__VA_ARGS__)
#define LAYOUT_PVARG(...) LAYOUT_pretty(__VA_ARGS__)
#define LVARG_4x12(...) LAYOUT_ortho_4x12(__VA_ARGS__)
#define LVARG_5x12(...) LAYOUT_ortho_5x12(__VA_ARGS__)
#define LVARG_5x14(...) LAYOUT_ortho_5x14(__VA_ARGS__)
#define LVARG_5x15(...) LAYOUT_ortho_5x15(__VA_ARGS__)
/*
| Left | Numbers L | middle | numbers R | Right |
| Left | keys0-5 | middle | Keys6-10 | Right |
| Left | keys11-15 | middle | Keys16-20 | Right |
| Left | keys20-25 | middle | Keys25-30 | Right |
|Row5L Row5R |
|ThumbsL ThumbsR |
*/
/* Assuming that left, midddle, right, row5, and thumbs stay the same, */
/* numbers, no numbers, numbers never change, whatever. */
/* we can have a layout macro that takes a nice rectangle of keys. */
/* Actually, because of Bepo, each keyboard currently requires four of */
/* these macros. One for Qwerty, One for foreign layouts on bepo like */
/* dvorak and beakl on bepo instead of on Qwerty. Then another for the Bepo */
/* layout because unlike the rest of the layouts Bepo doesn't fit in */
/* 3x10. It wants 3x12. So there are potentially 4 macros per keyboard here. */
/* XXXX_base, XXXX_base_bepo, XXXX_base_bepo6, The 4th macro */
/* is XXXXX_transient and generally works for all other */
/* non base layers. */
/* The base and transient versions are all that is necessary, if bepo is */
/* not needed. */
/* All layouts are relatively simple to make. */
/* The ROW macros add a universal mod layer so that mods can be defined once */
/* and used everywhere. No matter the keymap or layer. this allows actual maps */
/* like dvorak, qwerty, colemak, beakl, etc., to be defined simply. */
/* Additional, more complicated layouts can be found here.*/
/* examples can be found in crkbd/keymaps/ericgebhart */
/* examples can be found in kinesis/keymaps/ericgebhart */
/* examples can be found in ergodox/keymaps/ericgebhart */
/* examples can be found in montsinger/rebound/rev4/keymaps/ericgebhart */
/********************************************************************/
/* xiudi/xd75 - Ortholinear 5x15 */
/********************************************************************/
/// These first two base layout templates take sets of 5 keys, left and right.
// Using 4 sets allows for changing the number row if you have one.
// if you never change the number row, then use 3 sets of left and right.
// and define the number row here.
#define LAYOUT_5x15_base( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A, \
K31, K32, K33, K34, K35, \
K36, K37, K38, K39, K3A) \
LVARG_5x15( \
ROW0_LEFT(K01, K02, K03, K04, K05), \
___3_MIDDLE_T___, \
ROW0_RIGHT(K06, K07, K08, K09, K0A), \
\
ROW1_LEFT(K11, K12, K13, K14, K15), \
___3_MIDDLE_1___, \
ROW1_RIGHT(K16, K17, K18, K19, K1A), \
\
ROW2_LEFT(K21, K22, K23, K24, K25), \
___3_MIDDLE_2___, \
ROW2_RIGHT(K26, K27, K28, K29, K2A), \
\
ROW3_LEFT(K31, K32, K33, K34, K35), \
___3_MIDDLE_3___, \
ROW3_RIGHT(K36, K37, K38, K39, K3A), \
___15_BOTTOM___ \
)
#define LAYOUT_5x15_base_bepo( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A, \
K31, K32, K33, K34, K35, \
K36, K37, K38, K39, K3A) \
LVARG_5x15( \
ROW0_LEFT_BP(K01, K02, K03, K04, K05), \
___3_MIDDLE_T___, \
ROW0_RIGHT_BP(K06, K07, K08, K09, K0A), \
\
ROW1_LEFT_BP(K11, K12, K13, K14, K15), \
___3_MIDDLE_1_BP___, \
ROW1_RIGHT_BP(K16, K17, K18, K19, K1A), \
\
ROW2_LEFT_BP(K21, K22, K23, K24, K25), \
___3_MIDDLE_2_BP___, \
ROW2_RIGHT_BP(K26, K27, K28, K29, K2A), \
\
ROW3_LEFT_BP(K31, K32, K33, K34, K35), \
___3_MIDDLE_3_BP___, \
ROW3_RIGHT_BP(K36, K37, K38, K39, K3A), \
___15_BOTTOM_BP___ \
)
// Just for bepo because it's a 3x6 matrix on each side.
// So 3 pairs of 6 keys, left and right.
#define Layout_5x15_base_bepo6( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LVARG_5x15( \
___15_B_SYMB___, \
ROW1_LEFT_BP6(K01, K02, K03, K04, K05, K06), \
___3_MIDDLE_1_BP___, \
ROW1_RIGHT_BP6(K07, K08, K09, K0A, K0B, K0C), \
\
ROW2_LEFT_BP6(K11, K12, K13, K14, K15, K16), \
___3_MIDDLE_2___, \
ROW2_RIGHT_BP6(K17, K18, K19, K1A, K1B, K1C), \
\
ROW3_LEFT_BP6(K21, K22, K23, K24, K25, K26), \
___3_MIDDLE_3___, \
ROW3_RIGHT_BP6(K27, K28, K29, K2A, K2B, K2C), \
___15_BOTTOM_BP___ \
)
// 4 rows of 12. 3 columns transparent in the middle.
#define LAYOUT_5x15_transient( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C, \
K31, K32, K33, K34, K35, K36, \
K37, K38, K39, K3A, K3B, K3C \
) \
LVARG_5x15( \
K01, K02, K03, K04, K05, K06, \
___3___, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
___3___, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
___3___, \
K27, K28, K29, K2A, K2B, K2C, \
K31, K32, K33, K34, K35, K36, \
___3___, \
K37, K38, K39, K3A, K3B, K3C, \
___15___) \
#define BASE_5x15(...) LAYOUT_5x15_base(__VA_ARGS__)
#define BASE_5x15_bepo(...) LAYOUT_5x15_base_bepo(__VA_ARGS__)
#define BASE_5x15_bepo6(...) LAYOUT_5x15_base_bepo6(__VA_ARGS__)
#define TRANSIENT_5x15(...) LAYOUT_5x15_transient(__VA_ARGS__)
/********************************************************************/
/********************************************************************/
/* viterbi - Ortholinear 5x14 */
/********************************************************************/
#define LAYOUT_5x14_base( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A, \
K31, K32, K33, K34, K35, \
K36, K37, K38, K39, K3A) \
LVARG_5x14( \
ROW0_LEFT(K01, K02, K03, K04, K05), \
___2_MIDDLE_T___, \
ROW0_RIGHT(K06, K07, K08, K09, K0A), \
\
ROW1_LEFT(K11, K12, K13, K14, K15), \
___2_MIDDLE_1___, \
ROW1_RIGHT(K16, K17, K18, K19, K1A), \
\
ROW2_LEFT(K21, K22, K23, K24, K25), \
___2_MIDDLE_2___, \
ROW2_RIGHT(K26, K27, K28, K29, K2A), \
\
ROW3_LEFT(K31, K32, K33, K34, K35), \
___2_MIDDLE_3___, \
ROW3_RIGHT(K36, K37, K38, K39, K3A), \
___14_BOTTOM___ \
)
#define LAYOUT_5x14_base_bepo( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A, \
K31, K32, K33, K34, K35, \
K36, K37, K38, K39, K3A) \
LVARG_5x14( \
ROW0_LEFT_BP(K01, K02, K03, K04, K05), \
___2_MIDDLE_T___, \
ROW0_RIGHT_BP(K06, K07, K08, K09, K0A), \
\
ROW1_LEFT_BP(K11, K12, K13, K14, K15), \
___2_MIDDLE_1_BP___, \
ROW1_RIGHT_BP(K16, K17, K18, K19, K1A), \
\
ROW2_LEFT_BP(K21, K22, K23, K24, K25), \
___2_MIDDLE_2_BP___, \
ROW2_RIGHT_BP(K26, K27, K28, K29, K2A), \
\
ROW3_LEFT_BP(K31, K32, K33, K34, K35), \
___2_MIDDLE_3_BP___, \
ROW3_RIGHT_BP(K36, K37, K38, K39, K3A), \
___14_BOTTOM_BP___ \
)
// Just for bepo because it's a 3x6 matrix on each side.
// So 3 pairs of 6 keys, left and right.
#define LAYOUT_5x14_base_bepo6( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LVARG_5x14( \
___14_B_SYMB___, \
ROW1_LEFT_BP6(K01, K02, K03, K04, K05, K06), \
___2_MIDDLE_1_BP___, \
ROW1_RIGHT_BP6(K07, K08, K09, K0A, K0B, K0C), \
\
ROW2_LEFT_BP6(K11, K12, K13, K14, K15, K16), \
___2_MIDDLE_2___, \
ROW2_RIGHT_BP6(K17, K18, K19, K1A, K1B, K1C), \
\
ROW3_LEFT_BP6(K21, K22, K23, K24, K25, K26), \
___2_MIDDLE_3___, \
ROW3_RIGHT_BP6(K27, K28, K29, K2A, K2B, K2C), \
___14_BOTTOM_BP___ \
)
// 4 rows of 12. 2 columns transparent in the middle.
#define LAYOUT_5x14_transient( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C, \
K31, K32, K33, K34, K35, K36, \
K37, K38, K39, K3A, K3B, K3C \
) \
LVARG_5x14( \
K01, K02, K03, K04, K05, K06, \
___2___, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
___2___, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
___2___, \
K27, K28, K29, K2A, K2B, K2C, \
K31, K32, K33, K34, K35, K36, \
___2___, \
K37, K38, K39, K3A, K3B, K3C, \
___14___ \
) \
#define BASE_5x14(...) LAYOUT_5x14_base(__VA_ARGS__)
#define BASE_5x14_bepo(...) LAYOUT_5x14_base_bepo(__VA_ARGS__)
#define BASE_5x14_bepo6(...) LAYOUT_5x14_base_bepo6(__VA_ARGS__)
#define TRANSIENT_5x14(...) LAYOUT_5x14_transient(__VA_ARGS__)
/********************************************************************/
/* Ortholinear 4x12 */
/********************************************************************/
#define LAYOUT_4x12_base( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A \
) \
LVARG_4x12( \
ROW1_LEFT(K01, K02, K03, K04, K05), \
ROW1_RIGHT(K06, K07, K08, K09, K0A), \
\
ROW2_LEFT(K11, K12, K13, K14, K15), \
ROW2_RIGHT(K16, K17, K18, K19, K1A), \
\
ROW3_LEFT(K21, K22, K23, K24, K25), \
ROW3_RIGHT(K26, K27, K28, K29, K2A), \
\
___12_BOTTOM___ \
)
#define LAYOUT_4x12_base_bepo( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A \
) \
LVARG_4x12( \
ROW1_LEFT_BP(K01, K02, K03, K04, K05), \
ROW1_RIGHT_BP(K06, K07, K08, K09, K0A), \
\
ROW2_LEFT_BP(K11, K12, K13, K14, K15), \
ROW2_RIGHT_BP(K16, K17, K18, K19, K1A), \
\
ROW3_LEFT_BP(K21, K22, K23, K24, K25), \
ROW3_RIGHT_BP(K26, K27, K28, K29, K2A), \
\
___12_BOTTOM_BP___ \
)
// Just for bepo because it's a 3x6 matrix on each side.
// So 3 pairs of 6 keys, left and right.
#define Layout_4x12_base_bepo6( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LVARG_4x12( \
ROW1_LEFT_BP6(K01, K02, K03, K04, K05, K06), \
ROW1_RIGHT_BP6(K07, K08, K09, K0A, K0B, K0C), \
\
ROW2_LEFT_BP6(K11, K12, K13, K14, K15, K16), \
ROW2_RIGHT_BP6(K17, K18, K19, K1A, K1B, K1C), \
\
ROW3_LEFT_BP6(K21, K22, K23, K24, K25, K26), \
ROW3_RIGHT_BP6(K27, K28, K29, K2A, K2B, K2C), \
___12_BOTTOM_BP___ \
)
// takes 3 makes 4 rows of 12.
#define LAYOUT_4x12_transient( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LVARG_4x12( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C, \
___12___) \
#define BASE_4x12(...) LAYOUT_4x12_base(__VA_ARGS__)
#define BASE_4x12_bepo(...) LAYOUT_4x12_base_bepo(__VA_ARGS__)
#define BASE_4x12_bepo6(...) LAYOUT_4x12_base_bepo6(__VA_ARGS__)
#define TRANSIENT_4x12(...) LAYOUT_4x12_transient(__VA_ARGS__)
/********************************************************************/
/* CRKBD Corne */
/* The Corne has 3x6 matrix on both sides with 6 thumbs total */
/* This Macro takes 2x3x5 and gives it pinkies, and thumbs. */
/* Arg chunks are in the middle with the passthrough modifiers as */
/* needed. Sama Sama apres cette fois. */
/********************************************************************/
#define Base_3x6_3( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A) \
LAYOUT_VARG( \
ROW1_LEFT(K01, K02, K03, K04, K05), \
ROW1_RIGHT(K06, K07, K08, K09, K0A), \
\
ROW2_LEFT(K11, K12, K13, K14, K15), \
ROW2_RIGHT(K16, K17, K18, K19, K1A), \
\
ROW3_LEFT(K21, K22, K23, K24, K25), \
ROW3_RIGHT(K26, K27, K28, K29, K2A), \
___6_ERGO_THUMBS___ \
)
// So we can have different transient layers for symbols and numbers on bepo.
// for layouts like dvorak on bepo.
#define Base_bepo_3x6_3( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A \
) \
LAYOUT_VARG( \
ROW1_LEFT_BP(K01, K02, K03, K04, K05), \
ROW1_RIGHT_BP(K06, K07, K08, K09, K0A), \
\
ROW2_LEFT_BP(K11, K12, K13, K14, K15), \
ROW2_RIGHT_BP(K16, K17, K18, K19, K1A), \
\
ROW3_LEFT_BP(K21, K22, K23, K24, K25), \
ROW3_RIGHT_BP(K26, K27, K28, K29, K2A), \
___6_ERGO_THUMBS_BP___ \
)
// No room for pinkies.
// Just for bepo because it's a 3x6 matrix on each side.
// So 3 pairs of 6 keys, And we lose our left and right.
// Except it keeps the layer toggles along with the keycode
// on the bottom.
#define Base_bepo6_3x6_3( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LAYOUT_VARG( \
ROW1_LEFT_BP6(K01, K02, K03, K04, K05, K06), \
ROW1_RIGHT_BP6(K07, K08, K09, K0A, K0B, K0C), \
\
ROW2_LEFT_BP6(K11, K12, K13, K14, K15, K16), \
ROW2_RIGHT_BP6(K17, K18, K19, K1A, K1B, K1C), \
\
ROW3_LEFT_BP6(K21, K22, K23, K24, K25, K26), \
ROW3_RIGHT_BP6(K27, K28, K29, K2A, K2B, K2C), \
___6_ERGO_THUMBS_BP___ \
)
// All we really need is to add the see through thumbs to the end.
#define Transient6_3x6_3( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LAYOUT_VARG( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C, \
___6___)
//---------------------------------------------------------
// 3x5
#define Base_3x5_3( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A) \
LAYOUT_VARG( \
ROW1_LEFT5(K01, K02, K03, K04, K05), \
ROW1_RIGHT5(K06, K07, K08, K09, K0A), \
\
ROW2_LEFT5(K11, K12, K13, K14, K15), \
ROW2_RIGHT5(K16, K17, K18, K19, K1A), \
\
ROW3_LEFT5(K21, K22, K23, K24, K25), \
ROW3_RIGHT5(K26, K27, K28, K29, K2A), \
___6_ERGO_THUMBS___ \
)
// So we can have different transient layers for symbols and numbers on bepo.
// for layouts like dvorak on bepo.
#define Base_bepo_3x5_3( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A \
) \
LAYOUT_VARG( \
ROW1_LEFT5_BP(K01, K02, K03, K04, K05), \
ROW1_RIGHT5_BP(K06, K07, K08, K09, K0A), \
\
ROW2_LEFT5_BP(K11, K12, K13, K14, K15), \
ROW2_RIGHT5_BP(K16, K17, K18, K19, K1A), \
\
ROW3_LEFT5_BP(K21, K22, K23, K24, K25), \
ROW3_RIGHT5_BP(K26, K27, K28, K29, K2A), \
___6_ERGO_THUMBS_BP___ \
)
// All we really need is to add the see through thumbs to the end.
#define Transient5_3x5_3( \
K01, K02, K03, K04, K05, \
K07, K08, K09, K0A, K0B, \
K11, K12, K13, K14, K15, \
K17, K18, K19, K1A, K1B, \
K21, K22, K23, K24, K25, \
K27, K28, K29, K2A, K2B \
) \
LAYOUT_VARG( \
K01, K02, K03, K04, K05, \
K07, K08, K09, K0A, K0B, \
K11, K12, K13, K14, K15, \
K17, K18, K19, K1A, K1B, \
K21, K22, K23, K24, K25, \
K27, K28, K29, K2A, K2B, \
___6___)
/********************************************************************/
/* Kinesis*/
/********************************************************************/
// Basically an ergodox ez without the 3 pairs of middle keys.
// Left, right, bottom, and thumbs all stay the same.
#define Base_4x6_4_6( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A, \
K31, K32, K33, K34, K35, \
K36, K37, K38, K39, K3A \
) \
LAYOUT_PVARG( \
___KINTFUNC_L___, ___KINTFUNC_R___, \
ROW0_LEFT(K01, K02, K03, K04, K05), \
ROW0_RIGHT(K06, K07, K08, K09, K0A), \
\
ROW1_LEFT(K11, K12, K13, K14, K15), \
ROW1_RIGHT(K16, K17, K18, K19, K1A), \
\
ROW2_LEFT(K21, K22, K23, K24, K25), \
ROW2_RIGHT(K26, K27, K28, K29, K2A), \
\
ROW3_LEFT(K31, K32, K33, K34, K35), \
ROW3_RIGHT(K36, K37, K38, K39, K3A), \
___4_BOTTOM_LEFT___, ___4_BOTTOM_RIGHT___, \
___12_DOX_ALL_THUMBS___ \
)
#define Base_bepo_4x6_4_6( \
K01, K02, K03, K04, K05, \
K06, K07, K08, K09, K0A, \
K11, K12, K13, K14, K15, \
K16, K17, K18, K19, K1A, \
K21, K22, K23, K24, K25, \
K26, K27, K28, K29, K2A, \
K31, K32, K33, K34, K35, \
K36, K37, K38, K39, K3A \
) \
LAYOUT_PVARG( \
___KINTFUNC_L___, ___KINTFUNC_R___, \
ROW0_LEFT(K01, K02, K03, K04, K05), \
ROW0_RIGHT(K06, K07, K08, K09, K0A), \
\
ROW1_LEFT(K11, K12, K13, K14, K15), \
ROW1_RIGHT(K16, K17, K18, K19, K1A), \
\
ROW2_LEFT(K21, K22, K23, K24, K25), \
ROW2_RIGHT(K26, K27, K28, K29, K2A), \
\
ROW3_LEFT(K31, K32, K33, K34, K35), \
ROW3_RIGHT(K36, K37, K38, K39, K3A), \
___4_BOTTOM_LEFT___, ___4_BOTTOM_RIGHT___, \
___12_DOX_ALL_THUMBS_BP___ \
)
// So 3 pairs of 6 keys, left and right.
#define Base_bepo6_4x6_4_6( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C \
) \
LAYOUT_PVARG( \
___KINTFUNC_L___, ___KINTFUNC_R___, \
___6SYMBOL_BEPO_L___, \
___6SYMBOL_BEPO_R___, \
ROW1_LEFT_BP6(K01, K02, K03, K04, K05, K06), \
ROW1_RIGHT_BP6(K07, K08, K09, K0A, K0B, K0C), \
\
ROW2_LEFT_BP6(K11, K12, K13, K14, K15, K16), \
ROW2_RIGHT_BP6(K17, K18, K19, K1A, K1B, K1C), \
\
ROW3_LEFT_BP6(K21, K22, K23, K24, K25, K26), \
ROW3_RIGHT_BP6(K27, K28, K29, K2A, K2B, K2C), \
___4_BOTTOM_LEFT_BP___, ___4_BOTTOM_RIGHT_BP___, \
___12_DOX_ALL_THUMBS_BP___ \
)
#define Transient6_4x6_4_6( \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C, \
K31, K32, K33, K34, K35, K36, \
K37, K38, K39, K3A, K3B, K3C \
) \
LAYOUT_PVARG( \
___KINTFUNC_L___, ___KINTFUNC_R___, \
K01, K02, K03, K04, K05, K06, \
K07, K08, K09, K0A, K0B, K0C, \
K11, K12, K13, K14, K15, K16, \
K17, K18, K19, K1A, K1B, K1C, \
K21, K22, K23, K24, K25, K26, \
K27, K28, K29, K2A, K2B, K2C, \
K31, K32, K33, K34, K35, K36, \
K37, K38, K39, K3A, K3B, K3C, \
___4___, ___4___, \
___12___ \
)