diff options
| author | Pittyolo <kovacspitti@gmail.com> | 2019-10-08 20:26:17 +0200 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-10-08 11:26:17 -0700 |
| commit | 89fe8d2d8727574f6d1fa8f56a0ab35aa4b0245c (patch) | |
| tree | ea8bf73fc91df17bfe12d489f729bb828b70c9b8 /keyboards/xd75 | |
| parent | 9fe7b406cb43e334d588e69b14c3fa41ae4c4925 (diff) | |
| download | qmk_firmware-89fe8d2d8727574f6d1fa8f56a0ab35aa4b0245c.tar.gz qmk_firmware-89fe8d2d8727574f6d1fa8f56a0ab35aa4b0245c.zip | |
[Keymap] Adding my keymaps for Preonic and XD75 (#6874)
* Added my keymaps
* Update to readmes
* Update keyboards/preonic/keymaps/pitty/config.h
Thanks!
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/preonic/keymaps/pitty/config.h
Thanks!
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update keyboards/preonic/keymaps/pitty/config.h
Thanks!
Co-Authored-By: Drashna Jaelre <drashna@live.com>
* Update config.h
* Update keyboards/preonic/keymaps/pitty/keymap.c
Thanks!
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Removed copyrighted material
* Update keyboards/xd75/keymaps/pitty/keymap.c
Thanks!
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update config.h
* Update config.h
* Update config.h
* Update keymap.c
* Update keymap.c
* Update config.h
* Update keymap.c
* Update keyboards/preonic/keymaps/pitty/config.h
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Update keyboards/preonic/keymaps/pitty/config.h
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'keyboards/xd75')
| -rw-r--r-- | keyboards/xd75/keymaps/pitty/config.h | 19 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/pitty/keymap.c | 148 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/pitty/readme.md | 3 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/pitty/rules.mk | 15 |
4 files changed, 185 insertions, 0 deletions
diff --git a/keyboards/xd75/keymaps/pitty/config.h b/keyboards/xd75/keymaps/pitty/config.h new file mode 100644 index 000000000..e6975da8a --- /dev/null +++ b/keyboards/xd75/keymaps/pitty/config.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* Copyright 2017 Benjamin Kesselring | ||
| 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 | |||
| 17 | #pragma once | ||
| 18 | |||
| 19 | // place overrides here | ||
diff --git a/keyboards/xd75/keymaps/pitty/keymap.c b/keyboards/xd75/keymaps/pitty/keymap.c new file mode 100644 index 000000000..955ae59ed --- /dev/null +++ b/keyboards/xd75/keymaps/pitty/keymap.c | |||
| @@ -0,0 +1,148 @@ | |||
| 1 | /* Copyright 2017 Wunder | ||
| 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 | #include "keymap_hungarian.h" | ||
| 18 | |||
| 19 | enum XD75_layers { | ||
| 20 | _QWERTY, | ||
| 21 | _GAME, | ||
| 22 | _LOWER, | ||
| 23 | _RAISE | ||
| 24 | }; | ||
| 25 | |||
| 26 | |||
| 27 | // Defines the keycodes used by our macros in process_record_user | ||
| 28 | enum custom_keycodes { | ||
| 29 | QWERTY = SAFE_RANGE, | ||
| 30 | GAME, | ||
| 31 | LOWER, | ||
| 32 | RAISE, | ||
| 33 | }; | ||
| 34 | |||
| 35 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 36 | |||
| 37 | |||
| 38 | /* Qwerty | ||
| 39 | * ,--------------------------------------------------------------------------------------------------------. | ||
| 40 | * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Ö | Ü | Ó | | | | ||
| 41 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 42 | * | TAB | Q | W | E | R | T | Z | U | I | O | P | Ő | Ú | | | | ||
| 43 | * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------| | ||
| 44 | * | Esc | A | S | D | F | G | H | J | K | L | É | Á | Ű | | | | ||
| 45 | * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------| | ||
| 46 | * | Shift| Y | X | C | V | B | N | M | , | . | - | Shift| | | | | ||
| 47 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 48 | * | Ctrl | GUI | ALt |Lower | Space | Enter| Bksp |AltGr | Raise| | | | | | | ||
| 49 | * `--------------------------------------------------------------------------------------------------------' | ||
| 50 | */ | ||
| 51 | [_QWERTY] = LAYOUT_ortho_5x15( \ | ||
| 52 | HU_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, HU_OE, HU_UE, HU_OO, KC_INS, KC_PGUP, \ | ||
| 53 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, HU_Z, KC_U, KC_I, KC_O, KC_P, HU_OEE, HU_UU, KC_DEL, KC_PGDN, \ | ||
| 54 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, HU_EE, HU_AA, HU_UEE, _______, KC_HOME, \ | ||
| 55 | MT(MOD_LSFT, KC_NUBS), HU_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, HU_COMM, HU_DOT, HU_MINS, KC_RSFT, HU_EQL, KC_UP, KC_END, \ | ||
| 56 | KC_LCTL, KC_LGUI, KC_LALT, TT(_LOWER), KC_SPC, _______, KC_ENT, KC_BSPC, KC_RALT, TT(_RAISE), _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT \ | ||
| 57 | ), | ||
| 58 | |||
| 59 | |||
| 60 | /* Game | ||
| 61 | * ,--------------------------------------------------------------------------------------------------------. | ||
| 62 | * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Ö | Ü | Ó | | | | ||
| 63 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 64 | * | TAB | Q | W | E | R | T | Z | U | I | O | P | Ő | Ú | | | | ||
| 65 | * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------| | ||
| 66 | * | Esc | A | S | D | F | G | H | J | K | L | É | Á | Ű | | | | ||
| 67 | * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------| | ||
| 68 | * | Shift| Y | X | C | V | B | N | M | , | . | - | Shift| | | | | ||
| 69 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 70 | * | Ctrl | GUI | ALt |Raise | Space | Enter| Bksp |AltGr | Lower| | | | | | | ||
| 71 | * `--------------------------------------------------------------------------------------------------------' | ||
| 72 | */ | ||
| 73 | [_GAME] = LAYOUT_ortho_5x15( \ | ||
| 74 | HU_0, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, HU_OE, HU_UE, HU_OO, KC_INS, KC_PGUP, \ | ||
| 75 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, HU_Z, KC_U, KC_I, KC_O, KC_P, HU_OEE, HU_UU, KC_DEL, KC_PGDN, \ | ||
| 76 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, HU_EE, HU_AA, HU_UEE, _______, KC_HOME, \ | ||
| 77 | KC_LSFT, HU_Y, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, HU_COMM, HU_DOT, HU_MINS, KC_RSFT, HU_EQL, KC_UP, KC_END, \ | ||
| 78 | KC_LCTL, KC_LGUI, KC_LALT, TT(_RAISE), KC_SPC, _______, KC_ENT, KC_BSPC, KC_RALT, TT(_LOWER), _______, _______, KC_LEFT, KC_DOWN, KC_RIGHT \ | ||
| 79 | ), | ||
| 80 | |||
| 81 | |||
| 82 | /* Lower | ||
| 83 | * ,--------------------------------------------------------------------------------------------------------. | ||
| 84 | * | | | | | | | | 7 | 8 | 9 | + | | | | | | ||
| 85 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 86 | * | | | Up | | | | | 4 | 5 | 6 | - | | | | | | ||
| 87 | * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------| | ||
| 88 | * | | Left | Down | Right| | | | 1 | 2 | 3 | * | | | | | | ||
| 89 | * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------| | ||
| 90 | * | | | |Lnxcpy|Lnxpst| | | 0 | | | / | = | | | | | ||
| 91 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 92 | * | | | | | | | | Home |PageDn|PageUp| End | | | | | ||
| 93 | * `--------------------------------------------------------------------------------------------------------' | ||
| 94 | */ | ||
| 95 | [_LOWER] = LAYOUT_ortho_5x15( \ | ||
| 96 | _______, _______, _______, _______, _______, _______, _______, HU_7, HU_8, HU_9, HU_PLUS, _______, _______, _______, _______, \ | ||
| 97 | _______, _______, KC_UP, _______, _______, _______, _______, HU_4, HU_5, HU_6, HU_MINS, _______, _______, _______, _______, \ | ||
| 98 | _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, HU_1, HU_2, HU_3, HU_ASTR, _______, _______, _______, _______, \ | ||
| 99 | _______, _______, _______, _______, _______, _______, _______, HU_0, _______, _______, HU_SLSH, HU_EQL, _______, _______, _______, \ | ||
| 100 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, TO(_GAME), TO(_QWERTY), _______, _______, _______ \ | ||
| 101 | ), | ||
| 102 | |||
| 103 | /* Raise | ||
| 104 | * ,--------------------------------------------------------------------------------------------------------. | ||
| 105 | * | F12 | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | | | | | ||
| 106 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 107 | * | | | Up | | | | | | | | | | | | | | ||
| 108 | * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------| | ||
| 109 | * | | Left | Down | Right| | | | | | | | | | | | | ||
| 110 | * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------| | ||
| 111 | * | | | | | | | | | | | | | | | | | ||
| 112 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 113 | * | | | | | | | | Home |PageDn|PageUp| End | | | | | ||
| 114 | * `--------------------------------------------------------------------------------------------------------' | ||
| 115 | */ | ||
| 116 | [_RAISE] = LAYOUT_ortho_5x15( \ | ||
| 117 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, \ | ||
| 118 | _______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 119 | _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 120 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
| 121 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, TO(_GAME), TO(_QWERTY), _______, _______, _______ \ | ||
| 122 | ), | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | }; | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 131 | switch (get_highest_layer(state)) { | ||
| 132 | case _RAISE: | ||
| 133 | rgblight_setrgb (0xC3, 0xFF, 0xFF); | ||
| 134 | rgblight_mode(5); | ||
| 135 | break; | ||
| 136 | case _LOWER: | ||
| 137 | rgblight_setrgb (0xFF, 0xFF, 0xFF); | ||
| 138 | rgblight_mode(5); | ||
| 139 | break; | ||
| 140 | case _GAME: | ||
| 141 | rgblight_mode(8); | ||
| 142 | break; | ||
| 143 | default: // for any other layers, or the default layer | ||
| 144 | rgblight_mode(14); | ||
| 145 | break; | ||
| 146 | } | ||
| 147 | return state; | ||
| 148 | } | ||
diff --git a/keyboards/xd75/keymaps/pitty/readme.md b/keyboards/xd75/keymaps/pitty/readme.md new file mode 100644 index 000000000..b0cc42997 --- /dev/null +++ b/keyboards/xd75/keymaps/pitty/readme.md | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | My keymap for the XD75 | ||
| 2 | |||
| 3 | Including Hungarian characters and layer reactive underglow. \ No newline at end of file | ||
diff --git a/keyboards/xd75/keymaps/pitty/rules.mk b/keyboards/xd75/keymaps/pitty/rules.mk new file mode 100644 index 000000000..52a8f38d4 --- /dev/null +++ b/keyboards/xd75/keymaps/pitty/rules.mk | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # Copyright 2013 Jun Wako <wakojun@gmail.com> | ||
| 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 | |||
