diff options
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/xd75/keymaps/skewwhiffy/Makefile | 18 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/skewwhiffy/config.h | 24 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/skewwhiffy/keymap.c | 154 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/skewwhiffy/readme.md | 5 | ||||
| -rw-r--r-- | keyboards/xd75/keymaps/skewwhiffy/rules.mk | 18 | ||||
| -rw-r--r-- | keyboards/xd75/readme.md | 3 |
6 files changed, 220 insertions, 2 deletions
diff --git a/keyboards/xd75/keymaps/skewwhiffy/Makefile b/keyboards/xd75/keymaps/skewwhiffy/Makefile new file mode 100644 index 000000000..d4e08cfb2 --- /dev/null +++ b/keyboards/xd75/keymaps/skewwhiffy/Makefile | |||
| @@ -0,0 +1,18 @@ | |||
| 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 | |||
| 16 | ifndef QUANTUM_DIR | ||
| 17 | include ../../../../Makefile | ||
| 18 | endif | ||
diff --git a/keyboards/xd75/keymaps/skewwhiffy/config.h b/keyboards/xd75/keymaps/skewwhiffy/config.h new file mode 100644 index 000000000..f52a97bbc --- /dev/null +++ b/keyboards/xd75/keymaps/skewwhiffy/config.h | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /* Copyright 2017 REPLACE_WITH_YOUR_NAME | ||
| 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 | #ifndef CONFIG_USER_H | ||
| 18 | #define CONFIG_USER_H | ||
| 19 | |||
| 20 | #include "../../config.h" | ||
| 21 | |||
| 22 | // place overrides here | ||
| 23 | |||
| 24 | #endif | ||
diff --git a/keyboards/xd75/keymaps/skewwhiffy/keymap.c b/keyboards/xd75/keymaps/skewwhiffy/keymap.c new file mode 100644 index 000000000..d25621525 --- /dev/null +++ b/keyboards/xd75/keymaps/skewwhiffy/keymap.c | |||
| @@ -0,0 +1,154 @@ | |||
| 1 | /* Copyright 2017 Kenny Hung | ||
| 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 "xd75.h" | ||
| 17 | #include "keymap_uk.h" | ||
| 18 | // Fillers to make layering more clear | ||
| 19 | #define _______ KC_TRNS | ||
| 20 | #define ___T___ KC_TRNS | ||
| 21 | #define XXXXXXX KC_NO | ||
| 22 | |||
| 23 | // Layer shorthand | ||
| 24 | #define _CM 0 // Colemak | ||
| 25 | #define _QW 1 // Qwerty | ||
| 26 | #define _DV 2 // Dvorak | ||
| 27 | #define _NB 3 // Numbers | ||
| 28 | #define _FN 4 // Function | ||
| 29 | #define _SYL 5 // Symbols left | ||
| 30 | #define _SYR 6 // Symbols right | ||
| 31 | #define _NAV 7 // Navigation | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | |||
| 35 | /* Colemak _CM | ||
| 36 | * .------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------. | ||
| 37 | * | | | | | | | | | | | | | | | | | ||
| 38 | * |--------+--------------+--------------+---------------+--------------+--------------+--------+--------+--------+----------------+--------+------------------+----------------+------------------------| | ||
| 39 | * | | Q | W | F | P | G | | | | J | L | U | Y | ; | | | ||
| 40 | * |--------+--------------+--------------+---------------+--------------+--------------+--------+--------+--------+----------------+--------+------------------+----------------+------------------------| | ||
| 41 | * | | A | R | S | T | D | | | | H | N | E | I | O | RETURN | | ||
| 42 | * |--------+--------------+--------------+---------------+--------------+--------------+--------+--------+--------+----------------+--------+------------------+----------------+------------------------| | ||
| 43 | * | | sft or Z | nb or X | sym or C | V | nav or B | | | | nav or K | M | sym or , | nb or . | sft or / | | | ||
| 44 | * |--------+--------------+--------------+---------------+--------------+--------------+--------+--------+--------+----------------+--------+------------------+----------------+------------------------| | ||
| 45 | * | LSHIFT | LCTRL | LALT | LGUI | | SPACE | LCTRL | DEL | LALT | BACKSP | | RGUI | RALT | RCTRL | RSHIFT | | ||
| 46 | * '------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------' | ||
| 47 | */ | ||
| 48 | [_CM] = { | ||
| 49 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | ||
| 50 | { _______, KC_Q, KC_W, KC_F, KC_P, KC_G, _______, _______, _______, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, _______ }, | ||
| 51 | { _______, KC_A, KC_R, KC_S, KC_T, KC_D, _______, _______, _______, KC_H, KC_N, KC_E, KC_I, KC_O, KC_ENT }, | ||
| 52 | { _______, SFT_T(KC_Z), LT(_NB, KC_X), LT(_SYL, KC_C), KC_V, LT(_NAV, KC_B), _______, _______, _______, LT(_NAV, KC_K), KC_M, LT(_SYR, KC_COMM), LT(_FN, KC_DOT), SFT_T(KC_SLSH), _______ }, | ||
| 53 | { KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, LCTL(KC_QUOT), KC_SPC, KC_LCTL, KC_DEL , KC_LALT, KC_BSPC, _______, KC_RGUI, KC_RALT, KC_RCTL, KC_RSFT }, | ||
| 54 | }, | ||
| 55 | |||
| 56 | /* Numbers _NB / Functions _FN | ||
| 57 | * .----------------------------------------------------------------------------------------------------------------------------------------------------. | ||
| 58 | * | | | | | | | | | | | | | | | | | ||
| 59 | * |--------+--------+--------------+--------+--------+--------+--------+--------+--------+--------+--------+--------+----------------+-----------------| | ||
| 60 | * | | | F7 | F8 | F9 | F10 | | | | | 7 | 8 | 9 | | | | ||
| 61 | * |--------+--------+--------------+--------+--------+--------+--------+--------+--------+--------+--------+--------+----------------+--------+--------| | ||
| 62 | * | | | F4 | F5 | F6 | F11 | | | | | 4 | 5 | 6 | | | | ||
| 63 | * |--------+--------+--------------+--------+--------+--------+--------+--------+--------+--------+--------+----------------------------------+--------| | ||
| 64 | * | | | F1 | F2 | F3 | F12 | | | | | 1 | 2 | 3 | | | | ||
| 65 | * |--------+--------+--------------+--------+--------+--------+--------+--------+--------+--------+--------+-------------------------+--------+--------| | ||
| 66 | * | | | | | | | | | | | 0 | 0 | . | | | | ||
| 67 | * '----------------------------------------------------------------------------------------------------------------------------------------------------' | ||
| 68 | */ | ||
| 69 | [_NB] = { | ||
| 70 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, }, | ||
| 71 | { _______, _______, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, _______, KC_7, KC_8, KC_9, _______, _______ }, | ||
| 72 | { _______, _______, KC_F4, KC_F5, KC_F6, KC_F11, _______, _______, _______, _______, KC_4, KC_5, KC_6, _______, _______ }, | ||
| 73 | { _______, _______, LT(_NB, KC_X), KC_F2, KC_F3, KC_F12, _______, _______, _______, _______, KC_1, KC_2, KC_3, _______, _______ }, | ||
| 74 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_0, KC_DOT, _______, _______ }, | ||
| 75 | }, | ||
| 76 | [_FN] = { | ||
| 77 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, }, | ||
| 78 | { _______, _______, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, _______, _______, KC_7, KC_8, KC_9, _______, _______ }, | ||
| 79 | { _______, _______, KC_F4, KC_F5, KC_F6, KC_F11, _______, _______, _______, _______, KC_5, KC_5, KC_6, _______, _______ }, | ||
| 80 | { _______, _______, KC_F1, KC_F2, KC_F3, KC_F12, _______, _______, _______, _______, KC_1, KC_2, LT(_FN, KC_DOT), _______, _______ }, | ||
| 81 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_0, KC_DOT, _______, _______ }, | ||
| 82 | }, | ||
| 83 | |||
| 84 | /* Symbols _SYL and _SYR | ||
| 85 | * .-------------------------------------------------------------------------------------------------------------------------------------------------------. | ||
| 86 | * | | | | | | | | | | | | | | | | | ||
| 87 | * |--------+--------+--------+---------------+--------+--------+--------+--------+--------+--------+--------+------------------+--------+--------+--------| | ||
| 88 | * | | ! | £ | _ | - | ~ | | | | \ | { | } | / | # | | | ||
| 89 | * |--------+--------+--------+---------------+--------+--------+--------+--------+--------+--------+--------+------------------+--------+--------+--------| | ||
| 90 | * | | $ | % | + | = | | | | | " | ( | ) | ' | @ | | | ||
| 91 | * |--------+--------+--------+---------------+--------+--------+--------+--------+--------+--------+--------+------------------+--------+--------+--------| | ||
| 92 | * | | ^ | & | * | | | | | | | < | [ | ] | > | ` | | | ||
| 93 | * |--------+--------+--------+---------------+--------+--------+--------+--------+--------+--------+--------+------------------+--------+--------+--------| | ||
| 94 | * | | | | | | | | | | | | | | | | | ||
| 95 | * '-------------------------------------------------------------------------------------------------------------------------------------------------------' | ||
| 96 | */ | ||
| 97 | [_SYL] = { | ||
| 98 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | ||
| 99 | { _______, KC_EXLM, UK_PND, KC_UNDS, KC_MINS, KC_TILD, _______, _______, _______, UK_BSLS, KC_LCBR, KC_RCBR, KC_SLSH, UK_HASH, _______ }, | ||
| 100 | { _______, KC_DLR, KC_PERC, KC_PLUS, KC_EQL, _______, _______, _______, _______, UK_QUOT, KC_LPRN, KC_RPRN, KC_QUOT, UK_AT, _______ }, | ||
| 101 | { _______, KC_CIRC, KC_AMPR, LT(_SYL, KC_C), UK_PIPE, _______, _______, _______, _______, KC_LABK, KC_LBRC, KC_RBRC, KC_RABK, KC_GRV, _______ }, | ||
| 102 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | ||
| 103 | }, | ||
| 104 | [_SYR] = { | ||
| 105 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | ||
| 106 | { _______, KC_EXLM, UK_PND, KC_UNDS, KC_MINS, KC_TILD, _______, _______, _______, KC_BSLS, KC_LCBR, KC_RCBR, KC_SLSH, UK_HASH, _______ }, | ||
| 107 | { _______, KC_DLR, KC_PERC, KC_PLUS, KC_EQL, _______, _______, _______, _______, UK_QUOT, KC_LPRN, KC_RPRN, KC_QUOT, UK_AT, _______ }, | ||
| 108 | { _______, KC_CIRC, KC_AMPR, KC_ASTR, UK_PIPE, _______, _______, _______, _______, KC_LABK, KC_LBRC, LT(_SYR, KC_COMM), KC_RABK, KC_GRV, _______ }, | ||
| 109 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | ||
| 110 | }, | ||
| 111 | /* | ||
| 112 | * Navigation | ||
| 113 | * .------------------------------------------------------------------------------------------------------------------------------------------------------------------. | ||
| 114 | * | | | | | | | | | | | | | | | | | ||
| 115 | * |--------+----------+--------------+--------+--------------+---------------+--------+--------+--------+---------------+--------+--------+--------+--------+--------| | ||
| 116 | * | | Esc | Ctrl L | Up | Ctrl R | | | | | | PtSn | ScLk | Pause | | | | ||
| 117 | * |--------+----------+--------------+--------+--------------+---------------+--------+--------+--------+---------------+--------+--------+--------+--------+--------| | ||
| 118 | * | | Tab | Left | Down | Right | | | | | | Insert | Home | PgUp | | | | ||
| 119 | * |--------+----------+--------------+--------+--------------+---------------+--------+--------+--------+---------------+--------+--------+--------+--------+--------| | ||
| 120 | * | | ShTab | | | | | | | | | ScLk | End | PgDn | | | | ||
| 121 | * |--------+----------+--------------+--------+--------------+---------------+--------+--------+--------+---------------+--------+--------+--------+--------+--------| | ||
| 122 | * | | | | | | | | | | | | | | | RESET | | ||
| 123 | * '------------------------------------------------------------------------------------------------------------------------------------------------------------------' | ||
| 124 | */ | ||
| 125 | [_NAV] = { | ||
| 126 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ }, | ||
| 127 | { _______, KC_ESC, LCTL(KC_LEFT), KC_UP , LCTL(KC_RGHT), _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______ }, | ||
| 128 | { _______, KC_TAB, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______, _______, _______, KC_INS, KC_HOME, KC_PGUP, _______, _______ }, | ||
| 129 | { _______, S(KC_TAB), _______, _______, _______, LT(_NAV, KC_B), _______, _______, _______, LT(_NAV, KC_K), KC_SLCK, KC_END, KC_PGDN, _______, _______ }, | ||
| 130 | { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET }, | ||
| 131 | }, | ||
| 132 | }; | ||
| 133 | |||
| 134 | const uint16_t PROGMEM fn_actions[] = { | ||
| 135 | |||
| 136 | }; | ||
| 137 | |||
| 138 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | ||
| 139 | { | ||
| 140 | // MACRODOWN only works in this function | ||
| 141 | switch(id) { | ||
| 142 | case 0: | ||
| 143 | if (record->event.pressed) { | ||
| 144 | register_code(KC_RSFT); | ||
| 145 | #ifdef BACKLIGHT_ENABLE | ||
| 146 | backlight_step(); | ||
| 147 | #endif | ||
| 148 | } else { | ||
| 149 | unregister_code(KC_RSFT); | ||
| 150 | } | ||
| 151 | break; | ||
| 152 | } | ||
| 153 | return MACRO_NONE; | ||
| 154 | }; | ||
diff --git a/keyboards/xd75/keymaps/skewwhiffy/readme.md b/keyboards/xd75/keymaps/skewwhiffy/readme.md new file mode 100644 index 000000000..33ae54129 --- /dev/null +++ b/keyboards/xd75/keymaps/skewwhiffy/readme.md | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # Kenny Hung's custom keyboard | ||
| 2 | |||
| 3 | Contact me at kennysubs+github@outlook.com | ||
| 4 | |||
| 5 | Copied from my Diverge 3 layout with a few minor changes. See skewwhiffy repo setup for further deets. | ||
diff --git a/keyboards/xd75/keymaps/skewwhiffy/rules.mk b/keyboards/xd75/keymaps/skewwhiffy/rules.mk new file mode 100644 index 000000000..d4e08cfb2 --- /dev/null +++ b/keyboards/xd75/keymaps/skewwhiffy/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 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 | |||
| 16 | ifndef QUANTUM_DIR | ||
| 17 | include ../../../../Makefile | ||
| 18 | endif | ||
diff --git a/keyboards/xd75/readme.md b/keyboards/xd75/readme.md index 28a252332..d5dbdef25 100644 --- a/keyboards/xd75/readme.md +++ b/keyboards/xd75/readme.md | |||
| @@ -17,8 +17,7 @@ it using DFU. | |||
| 17 | 17 | ||
| 18 | ### Default | 18 | ### Default |
| 19 | 19 | ||
| 20 | To build with the default keymap, simply run `make xd75-default`, and | 20 | To build with the default keymap, simply run `make xd75-default` from the root directory (i.e. two levels above this file), and to install via DFU, `make xd75-default-dfu`, also from the root directory. |
| 21 | to install via DFU, `make xd75-default-dfu`. | ||
| 22 | 21 | ||
| 23 | Note that DFU is likely to require root permissions, so installing the | 22 | Note that DFU is likely to require root permissions, so installing the |
| 24 | firmware likely requires a command line like: | 23 | firmware likely requires a command line like: |
