diff options
| author | Reid Sox-Harris <reidsox1@gmail.com> | 2020-10-17 02:31:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-17 02:31:21 -0700 |
| commit | e0bdd511773ef25388a066e4db9a53f658f681ae (patch) | |
| tree | 0d791ebd2335954a62c2b95ac2f71e2f2fd6dd2b | |
| parent | fba7d4e32f4292094934fb47943b22a70a28ce57 (diff) | |
| download | qmk_firmware-e0bdd511773ef25388a066e4db9a53f658f681ae.tar.gz qmk_firmware-e0bdd511773ef25388a066e4db9a53f658f681ae.zip | |
[Keymap] add keyhive/maypad:eosti (#10663)
* adds eosti/maypad keymap
* remove empty function calls
| -rw-r--r-- | keyboards/keyhive/maypad/keymaps/eosti/config.h | 17 | ||||
| -rw-r--r-- | keyboards/keyhive/maypad/keymaps/eosti/keymap.c | 62 | ||||
| -rw-r--r-- | keyboards/keyhive/maypad/keymaps/eosti/readme.md | 6 | ||||
| -rw-r--r-- | keyboards/keyhive/maypad/keymaps/eosti/rules.mk | 3 |
4 files changed, 88 insertions, 0 deletions
diff --git a/keyboards/keyhive/maypad/keymaps/eosti/config.h b/keyboards/keyhive/maypad/keymaps/eosti/config.h new file mode 100644 index 000000000..8e6a83b79 --- /dev/null +++ b/keyboards/keyhive/maypad/keymaps/eosti/config.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2020 Reid Sox-Harris | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | #define TAPPING_TERM 200 | ||
diff --git a/keyboards/keyhive/maypad/keymaps/eosti/keymap.c b/keyboards/keyhive/maypad/keymaps/eosti/keymap.c new file mode 100644 index 000000000..e4d4b87b7 --- /dev/null +++ b/keyboards/keyhive/maypad/keymaps/eosti/keymap.c | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | /* Copyright 2020 Reid Sox-Harris | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | enum layer_names { | ||
| 19 | _QWERTY, | ||
| 20 | _MOD | ||
| 21 | }; | ||
| 22 | |||
| 23 | // Keymaps Shortcut Defines | ||
| 24 | |||
| 25 | #define ESC_MOD LT(_MOD, KC_ESC) | ||
| 26 | #define MOD TG(_MOD) | ||
| 27 | #define SQRT RALT(KC_V) // (macOS) Prints √ | ||
| 28 | #define NEQL RALT(KC_EQL) // (macOS) Prints ≠ | ||
| 29 | #define PM RALT(KC_PLUS) // (macOS) Prints ± | ||
| 30 | #define PI RALT(KC_P) // (macOS) Prints π | ||
| 31 | |||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | |||
| 35 | [_QWERTY] = LAYOUT_numpad_5x4_split_plus( | ||
| 36 | // ┌────────┬────────┬────────┬────────┐ | ||
| 37 | ESC_MOD, KC_PSLS, KC_PAST, KC_PEQL, | ||
| 38 | // ├────────┼────────┼────────┼────────┤ | ||
| 39 | KC_P7, KC_P8, KC_P9, KC_PPLS, | ||
| 40 | // ├────────┼────────┼────────┼────────┤ | ||
| 41 | KC_P4, KC_P5, KC_P6, KC_PMNS, | ||
| 42 | // ├────────┼────────┼────────┼────────┤ | ||
| 43 | KC_P1, KC_P2, KC_P3, | ||
| 44 | // ├─────────────────┼────────┼ ┤ | ||
| 45 | KC_P0, KC_PDOT, KC_PENT | ||
| 46 | // ├─────────────────┴────────┴────────┘ | ||
| 47 | ), | ||
| 48 | [_MOD] = LAYOUT_numpad_5x4_split_plus( | ||
| 49 | // ┌────────┬────────┬────────┬────────┐ | ||
| 50 | MOD, SQRT, KC_CIRC, NEQL, | ||
| 51 | // ├────────┼────────┼────────┼────────┤ | ||
| 52 | KC_P7, KC_P8, KC_P9, PM, | ||
| 53 | // ├────────┼────────┼────────┼────────┤ | ||
| 54 | KC_P4, KC_P5, KC_P6, PI, | ||
| 55 | // ├────────┼────────┼────────┼────────┤ | ||
| 56 | KC_P1, KC_P2, KC_P3, | ||
| 57 | // ├─────────────────┼────────┼ ┤ | ||
| 58 | KC_P0, KC_BSPC, KC_TAB | ||
| 59 | // ├─────────────────┴────────┴────────┘ | ||
| 60 | ) | ||
| 61 | |||
| 62 | }; | ||
diff --git a/keyboards/keyhive/maypad/keymaps/eosti/readme.md b/keyboards/keyhive/maypad/keymaps/eosti/readme.md new file mode 100644 index 000000000..5b3ee3bc8 --- /dev/null +++ b/keyboards/keyhive/maypad/keymaps/eosti/readme.md | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # EosTi's Maypad Layout | ||
| 2 | |||
| 3 | ## Features | ||
| 4 | * Split-plus layout (who needs a massive plus anyway) | ||
| 5 | * Tapdance ESC/mod key, giving access to special characters and mod functions | ||
| 6 | * Standard numpad base layer | ||
diff --git a/keyboards/keyhive/maypad/keymaps/eosti/rules.mk b/keyboards/keyhive/maypad/keymaps/eosti/rules.mk new file mode 100644 index 000000000..4c1902ee9 --- /dev/null +++ b/keyboards/keyhive/maypad/keymaps/eosti/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | CONSOLE_ENABLE = no | ||
| 2 | COMMAND_ENABLE = no | ||
| 3 | LTO_ENABLE = yes | ||
