diff options
| author | bgrosse-midokura <48123182+bgrosse-midokura@users.noreply.github.com> | 2021-10-11 10:59:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 02:59:52 -0700 |
| commit | a7313992dee7d1d96555b575ee7f0aaa9e7b59ce (patch) | |
| tree | 55bc5cefefb501ebbbefcb8b0fc29998c977866e | |
| parent | d9e077468ab3446cbd7306a453a73dad2c1403e8 (diff) | |
| download | qmk_firmware-a7313992dee7d1d96555b575ee7f0aaa9e7b59ce.tar.gz qmk_firmware-a7313992dee7d1d96555b575ee7f0aaa9e7b59ce.zip | |
[Keymap] gipsy-king's layout for cornelius (#14602)
Co-authored-by: Benjamin Große <ste3ls@gmail.com>
| -rw-r--r-- | keyboards/foostan/cornelius/keymaps/gipsy-king/keymap.c | 102 | ||||
| -rw-r--r-- | keyboards/foostan/cornelius/keymaps/gipsy-king/readme.md | 39 |
2 files changed, 141 insertions, 0 deletions
diff --git a/keyboards/foostan/cornelius/keymaps/gipsy-king/keymap.c b/keyboards/foostan/cornelius/keymaps/gipsy-king/keymap.c new file mode 100644 index 000000000..8f6adffa2 --- /dev/null +++ b/keyboards/foostan/cornelius/keymaps/gipsy-king/keymap.c | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | /* Copyright 2021 gipsy-king | ||
| 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 | // Raise layer or enter on tap | ||
| 19 | #define RAISE LT(1, KC_ENT) | ||
| 20 | // Xmonad layer with LGUI always on | ||
| 21 | #define MOD4 LM(2, MOD_LGUI) | ||
| 22 | // Oneshot | ||
| 23 | #define ONESHOT OSL(3) | ||
| 24 | // Mic-mute-tap or Fn layer (F20 is mic-mute on thinkpads) | ||
| 25 | #define FNLAY LT(3, KC_F20) | ||
| 26 | |||
| 27 | enum custom_keycodes { | ||
| 28 | EMAIL = SAFE_RANGE, | ||
| 29 | EMAIL_W, | ||
| 30 | }; | ||
| 31 | |||
| 32 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 33 | /* Qwerty | ||
| 34 | * .-----------------------------------------------------------------------------------. | ||
| 35 | * | Tab | Q | W | E | R | T | Y | U | I | O | P |Backsp| | ||
| 36 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 37 | * | Esc | A | S | D | F | G | H | J | K | L | ; | ' | | ||
| 38 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 39 | * | - | Z | X | C | V | B | N | M | , | . | / | = | | ||
| 40 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 41 | * | LCTR | LGUI | LALT | MOD4 | ^( | Space|Ent/Ra| ^) | RALT | MUTE | RGUI | RCTR | | ||
| 42 | * '-----------------------------------------------------------------------------------' | ||
| 43 | */ | ||
| 44 | [0] = LAYOUT( | ||
| 45 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 46 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, | ||
| 47 | KC_MINS,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_EQL, | ||
| 48 | KC_LCTL,KC_LALT,KC_LGUI,MOD4, KC_LSPO,KC_SPC, RAISE, KC_RSPC,KC_RALT,KC_RGUI,FNLAY, KC_RCTL | ||
| 49 | ), | ||
| 50 | /* Raise | ||
| 51 | * .-----------------------------------------------------------------------------------. | ||
| 52 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | \ | | ||
| 53 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 54 | * | ~ | { | PgUp | PgDn | End | Home | <- | \/ | /\ | -> | } | | | | ||
| 55 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 56 | * | [ | ! | @ | # | $ | % | ^ | & | * | ( | ) | ] | | ||
| 57 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 58 | * | | | | | | | | | | | | | | ||
| 59 | * '-----------------------------------------------------------------------------------' | ||
| 60 | */ | ||
| 61 | [1] = LAYOUT( | ||
| 62 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLS, | ||
| 63 | KC_TILD,KC_LCBR,KC_PGUP,KC_PGDN,KC_END, KC_HOME,KC_LEFT,KC_DOWN,KC_UP, KC_RGHT,KC_RCBR,KC_PIPE, | ||
| 64 | KC_LBRC,KC_EXLM,KC_AT, KC_HASH,KC_DLR, KC_PERC,KC_CIRC,KC_AMPR,KC_ASTR,KC_LPRN,KC_RPRN,KC_RBRC, | ||
| 65 | _______,_______,_______,_______,_______,_______,_______,_______,_______,ONESHOT,_______,_______ | ||
| 66 | ), | ||
| 67 | /* XMONAD | ||
| 68 | * Top row: Quit, Workspace shortcuts, Run | ||
| 69 | * Middle row: Float, HJKL | ||
| 70 | * Bottom row: Shift, Close, Border, Keyboard reset | ||
| 71 | * Thumbs: Estra shifts, Space, Enter, Shifts | ||
| 72 | */ | ||
| 73 | [2] = LAYOUT( | ||
| 74 | KC_Q, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_P, KC_MUTE, | ||
| 75 | KC_LSFT,_______,_______,_______,_______,KC_T, KC_H, KC_J, KC_K, KC_L, _______,_______, | ||
| 76 | KC_LSFT,_______,_______,KC_C, _______,KC_B, _______,_______,_______,_______,_______,_______, | ||
| 77 | _______,_______,_______,KC_LSFT,KC_LSFT,KC_SPC, KC_ENT, KC_LSFT,_______,_______,KC_VOLD,KC_VOLU | ||
| 78 | ), | ||
| 79 | /* Fn | ||
| 80 | * Some macros, Keyboard-reset, mouse and audio. | ||
| 81 | */ | ||
| 82 | [3] = LAYOUT( | ||
| 83 | _______,_______,EMAIL_W,EMAIL, _______,_______,_______,_______,_______,_______,_______,RESET, | ||
| 84 | _______,_______,_______,_______,_______,_______,KC_MS_L,KC_MS_D,KC_MS_U,KC_MS_R,_______,_______, | ||
| 85 | _______,_______,_______,_______,_______,_______,KC_BTN1,KC_MUTE,KC_VOLD,KC_VOLU,KC_BRID,KC_BRIU, | ||
| 86 | _______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______,_______ | ||
| 87 | ) | ||
| 88 | }; | ||
| 89 | |||
| 90 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 91 | if (record->event.pressed) { | ||
| 92 | switch (keycode) { | ||
| 93 | case EMAIL: | ||
| 94 | SEND_STRING("ste3ls@gmail.com"); | ||
| 95 | break; | ||
| 96 | case EMAIL_W: | ||
| 97 | SEND_STRING("benjamin@midokura.com"); | ||
| 98 | break; | ||
| 99 | } | ||
| 100 | } | ||
| 101 | return true; | ||
| 102 | }; | ||
diff --git a/keyboards/foostan/cornelius/keymaps/gipsy-king/readme.md b/keyboards/foostan/cornelius/keymaps/gipsy-king/readme.md new file mode 100644 index 000000000..f0bce9fc9 --- /dev/null +++ b/keyboards/foostan/cornelius/keymaps/gipsy-king/readme.md | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | # Gipsy-King's Cornelius layout | ||
| 2 | |||
| 3 | Common typing only needs a base and a symbols layer. Layer changes are on the | ||
| 4 | thumbs *including* shift and non-english variants. | ||
| 5 | |||
| 6 | The importance of having shift on your thumbs is that you don't need to press | ||
| 7 | some letters with pinky OR ring, depending on shift. | ||
| 8 | |||
| 9 | ## Base QWERTY layer | ||
| 10 | |||
| 11 | * Tab, Backspace, Space, Ctrl/Alt/Mod are similar to a generic keyboard. | ||
| 12 | * Esc is like when you remap CapsLock to Esc on a generic keyboard (vim). | ||
| 13 | * Enter is on right thumb and raises Symbol layer on hold, because you rarely | ||
| 14 | hold. | ||
| 15 | * Shifts are on both thumbs! | ||
| 16 | * Leftmost thumb changes to Xmonad window management layer. | ||
| 17 | * Rightmost thumb is Right-Alt which is for `us-intl-altgr` layout (althoug I | ||
| 18 | use kmonad to universally map international characters on all keyboards). | ||
| 19 | * `-` and `=` are on the lower pinkies. | ||
| 20 | * `F20` is mic-mute on my thinkpad laptop. | ||
| 21 | |||
| 22 | ## Symbol layer (Raise) | ||
| 23 | |||
| 24 | * Top row is numbers, bottom row are their symbols. Most people do it the other | ||
| 25 | way 'round. | ||
| 26 | * Middle row has curly brackets, and some navigation and arrows. | ||
| 27 | * Square brackets are on the lower pinkies. | ||
| 28 | * ```~\|`` are places aroung top/outer corners. | ||
| 29 | |||
| 30 | ## Xmonad layer (Window management) | ||
| 31 | |||
| 32 | I use Xmonad to completely manage windows with just my keyboard. This layer | ||
| 33 | accommodates most shortcuts. | ||
| 34 | |||
| 35 | ## Fn layer | ||
| 36 | |||
| 37 | Lastly, some macros, mousekeys (not used, really), some media keys, and the | ||
| 38 | function-keys (I use them maybe once in a decade). | ||
| 39 | |||
