diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jirgn/assets/layout.json | 168 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jirgn/config.h | 42 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jirgn/keymap.c | 221 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jirgn/readme.md | 5 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jirgn/rules.mk | 3 |
6 files changed, 440 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 226f11868..a8dd97eff 100644 --- a/.gitignore +++ b/.gitignore | |||
| @@ -52,6 +52,7 @@ util/Win_Check_Output.txt | |||
| 52 | .vscode/last.sql | 52 | .vscode/last.sql |
| 53 | .vscode/temp.sql | 53 | .vscode/temp.sql |
| 54 | .stfolder | 54 | .stfolder |
| 55 | .tags | ||
| 55 | 56 | ||
| 56 | # ignore image files | 57 | # ignore image files |
| 57 | *.png | 58 | *.png |
diff --git a/keyboards/planck/keymaps/jirgn/assets/layout.json b/keyboards/planck/keymaps/jirgn/assets/layout.json new file mode 100644 index 000000000..d5fc6f26a --- /dev/null +++ b/keyboards/planck/keymaps/jirgn/assets/layout.json | |||
| @@ -0,0 +1,168 @@ | |||
| 1 | [ | ||
| 2 | { | ||
| 3 | "switchMount": "cherry", | ||
| 4 | "switchBrand": "cherry", | ||
| 5 | "switchType": "MX1A-C1xx", | ||
| 6 | "pcb": true, | ||
| 7 | "css": ".keylabel2 {\n color: #61ba5d !important;\n}\n.keylabel6 {\n color: #fa7a5f !important;\n}\n.keylabel8 {\n color: #7ab7f7 !important;\n}\n.keylabel7 {\n color: #999 !important;\n}" | ||
| 8 | }, | ||
| 9 | [ | ||
| 10 | { | ||
| 11 | "fa": [ | ||
| 12 | 0, | ||
| 13 | 2, | ||
| 14 | 0, | ||
| 15 | 2 | ||
| 16 | ] | ||
| 17 | }, | ||
| 18 | "\n~\n\n`\n\n\n\n\n\nTab", | ||
| 19 | { | ||
| 20 | "sm": "cherry", | ||
| 21 | "sb": "cherry", | ||
| 22 | "st": "MX1A-C1xx" | ||
| 23 | }, | ||
| 24 | "\n!\n\n1\n\n\n\n\n\nQ", | ||
| 25 | { | ||
| 26 | "sm": "", | ||
| 27 | "sb": "", | ||
| 28 | "st": "" | ||
| 29 | }, | ||
| 30 | "\n@\n\n2\n\n\n\n\n\nW", | ||
| 31 | "\n#\n\n3\n\n\n\n\n\nE", | ||
| 32 | "\n$\n\n4\n\n\n\n\n\nR", | ||
| 33 | "\n%\n\n5\n\n\n\n\n\nT", | ||
| 34 | "\n^\n\n6\n\n\n\n\n\nY", | ||
| 35 | "\n&\n\n7\n\n\n\n\n\nU", | ||
| 36 | "\n*\n\n8\n\n\n\n\n\nI", | ||
| 37 | "\n(\n\n9\n\n\n\n\n\nO", | ||
| 38 | "\n)\n\n0\n\n\n\n\n\nP", | ||
| 39 | { | ||
| 40 | "a": 7 | ||
| 41 | }, | ||
| 42 | "<i class='mss mss-Unicode-BackSpace-DeleteLeft-Big-2'></i>" | ||
| 43 | ], | ||
| 44 | [ | ||
| 45 | { | ||
| 46 | "c": "#b8b8b8", | ||
| 47 | "a": 5 | ||
| 48 | }, | ||
| 49 | "\n<i class='mss mss-Unicode-DeleteRight-Big-2'></i>\n\n\nCtrl\n\n<i class='mss mss-Unicode-Escape-3'></i>", | ||
| 50 | { | ||
| 51 | "c": "#61ba5d", | ||
| 52 | "a": 4 | ||
| 53 | }, | ||
| 54 | "\n¡\n\nF1\nNav\n\n\n\n\nA", | ||
| 55 | { | ||
| 56 | "c": "#cccccc", | ||
| 57 | "fa": [ | ||
| 58 | 0, | ||
| 59 | 2, | ||
| 60 | 1, | ||
| 61 | 2, | ||
| 62 | 0, | ||
| 63 | 0, | ||
| 64 | 0, | ||
| 65 | 0, | ||
| 66 | 0, | ||
| 67 | 0, | ||
| 68 | 0 | ||
| 69 | ] | ||
| 70 | }, | ||
| 71 | "\n™\nHome\nF2\n\n\n\n\n\nS", | ||
| 72 | "\n€\nPg Up\nF3\n\n\n\n\n\nD", | ||
| 73 | "\n¢\nPg Dn\nF4\n\n\n\n\n\nF", | ||
| 74 | "\n∞\nEnd\nF5\n\n\n\n\n\nG", | ||
| 75 | { | ||
| 76 | "fa": [ | ||
| 77 | 0, | ||
| 78 | 2, | ||
| 79 | 2, | ||
| 80 | 2, | ||
| 81 | 0, | ||
| 82 | 0, | ||
| 83 | 0, | ||
| 84 | 0, | ||
| 85 | 0, | ||
| 86 | 0, | ||
| 87 | 0 | ||
| 88 | ] | ||
| 89 | }, | ||
| 90 | "\n§\n←\nF6\n\n\n\n\n\nH", | ||
| 91 | "\n_\n↓\n-\n\n\n\n\n\nJ", | ||
| 92 | "\n+\n↑\n=\n\n\n\n\n\nK", | ||
| 93 | "\n{\n→\n[\n\n\n\n\n\nL", | ||
| 94 | { | ||
| 95 | "c": "#61ba5d", | ||
| 96 | "fa": [ | ||
| 97 | 0, | ||
| 98 | 2, | ||
| 99 | 2, | ||
| 100 | 2, | ||
| 101 | 0, | ||
| 102 | 0, | ||
| 103 | 0, | ||
| 104 | 2 | ||
| 105 | ] | ||
| 106 | }, | ||
| 107 | "\n}\n\n]\nNav\n\n\n:\n\n;", | ||
| 108 | { | ||
| 109 | "c": "#cccccc" | ||
| 110 | }, | ||
| 111 | "\n|\n\n\\\n\n\n\n\"\n\n'" | ||
| 112 | ], | ||
| 113 | [ | ||
| 114 | { | ||
| 115 | "c": "#b8b8b8", | ||
| 116 | "a": 7 | ||
| 117 | }, | ||
| 118 | "Shift", | ||
| 119 | { | ||
| 120 | "c": "#cccccc", | ||
| 121 | "a": 4 | ||
| 122 | }, | ||
| 123 | "\n\n\nF7\n\n\n\n\n\nZ", | ||
| 124 | "\n\n\nF8\n\n\n\n\n\nX", | ||
| 125 | "\n\n\nF9\n\n\n\n\n\nC", | ||
| 126 | "\n\n\nF10\n\n\n\n\n\nV", | ||
| 127 | "\n\n\nF11\n\n\n\n\n\nB", | ||
| 128 | "\n\n\nF12\n\n\n\n\n\nN", | ||
| 129 | "\n~\n\n#\n\n\n\n\n\nM", | ||
| 130 | "\n|\n\n/\n\n\n\n<\n\n,", | ||
| 131 | { | ||
| 132 | "a": 6 | ||
| 133 | }, | ||
| 134 | "\n\n>\n\n\n\n\n\n.", | ||
| 135 | "\n\n?\n\n\n\n\n\n/", | ||
| 136 | { | ||
| 137 | "c": "#b8b8b8", | ||
| 138 | "a": 7 | ||
| 139 | }, | ||
| 140 | "<i class='kb kb-Return-2'></i>\n\n\n\nShift" | ||
| 141 | ], | ||
| 142 | [ | ||
| 143 | "", | ||
| 144 | "Hyper", | ||
| 145 | "<i class='mss mss-Unicode-Option-3'></i>", | ||
| 146 | "<i class='mss mss-Unicode-Command-3'></i>", | ||
| 147 | { | ||
| 148 | "c": "#fa7a5f" | ||
| 149 | }, | ||
| 150 | "⇓", | ||
| 151 | { | ||
| 152 | "c": "#cccccc", | ||
| 153 | "w": 2 | ||
| 154 | }, | ||
| 155 | "", | ||
| 156 | { | ||
| 157 | "c": "#7ab7f7" | ||
| 158 | }, | ||
| 159 | "⇑", | ||
| 160 | { | ||
| 161 | "c": "#b8b8b8" | ||
| 162 | }, | ||
| 163 | "<i class='mss mss-Unicode-Command-3'></i>", | ||
| 164 | "<i class='mss mss-Unicode-Option-3'></i>", | ||
| 165 | "Hyper", | ||
| 166 | "" | ||
| 167 | ] | ||
| 168 | ] \ No newline at end of file | ||
diff --git a/keyboards/planck/keymaps/jirgn/config.h b/keyboards/planck/keymaps/jirgn/config.h new file mode 100644 index 000000000..b406e2fed --- /dev/null +++ b/keyboards/planck/keymaps/jirgn/config.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | #ifdef AUDIO_ENABLE | ||
| 7 | #define STARTUP_SONG SONG(PLANCK_SOUND) | ||
| 8 | // #define STARTUP_SONG SONG(NO_SOUND) | ||
| 9 | |||
| 10 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ | ||
| 11 | SONG(COLEMAK_SOUND), \ | ||
| 12 | SONG(DVORAK_SOUND) \ | ||
| 13 | } | ||
| 14 | #endif | ||
| 15 | |||
| 16 | #define MUSIC_MASK (keycode != KC_NO) | ||
| 17 | |||
| 18 | /* | ||
| 19 | * MIDI options | ||
| 20 | */ | ||
| 21 | |||
| 22 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 23 | //#define MIDI_ENABLE_STRICT 1 | ||
| 24 | |||
| 25 | /* enable basic MIDI features: | ||
| 26 | - MIDI notes can be sent when in Music mode is on | ||
| 27 | */ | ||
| 28 | |||
| 29 | #define MIDI_BASIC | ||
| 30 | |||
| 31 | /* enable advanced MIDI features: | ||
| 32 | - MIDI notes can be added to the keymap | ||
| 33 | - Octave shift and transpose | ||
| 34 | - Virtual sustain, portamento, and modulation wheel | ||
| 35 | - etc. | ||
| 36 | */ | ||
| 37 | //#define MIDI_ADVANCED | ||
| 38 | |||
| 39 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 40 | //#define MIDI_TONE_KEYCODE_OCTAVES 2 | ||
| 41 | |||
| 42 | #endif \ No newline at end of file | ||
diff --git a/keyboards/planck/keymaps/jirgn/keymap.c b/keyboards/planck/keymaps/jirgn/keymap.c new file mode 100644 index 000000000..87a78d90b --- /dev/null +++ b/keyboards/planck/keymaps/jirgn/keymap.c | |||
| @@ -0,0 +1,221 @@ | |||
| 1 | /* Copyright 2015-2017 Jack Humbert | ||
| 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 | #include "planck.h" | ||
| 18 | #include "action_layer.h" | ||
| 19 | |||
| 20 | extern keymap_config_t keymap_config; | ||
| 21 | |||
| 22 | enum planck_layers { | ||
| 23 | _QWERTY, | ||
| 24 | _LOWER, | ||
| 25 | _RAISE, | ||
| 26 | _PLOVER, | ||
| 27 | _ADJUST, | ||
| 28 | _NAVIGATION | ||
| 29 | }; | ||
| 30 | |||
| 31 | enum planck_keycodes { | ||
| 32 | QWERTY = SAFE_RANGE, | ||
| 33 | PLOVER, | ||
| 34 | LOWER, | ||
| 35 | RAISE, | ||
| 36 | EXT_PLV | ||
| 37 | }; | ||
| 38 | |||
| 39 | // keycode aliases | ||
| 40 | #define _______ KC_TRNS | ||
| 41 | #define ___x___ KC_NO | ||
| 42 | #define KC_EUR LALT(S(KC_2)) | ||
| 43 | #define KC_SEC LALT(KC_6) | ||
| 44 | #define CTL_DEL CTL_T(KC_DEL) | ||
| 45 | #define NAV_SCLN LT(_NAVIGATION, KC_SCLN) | ||
| 46 | #define NAV_A LT(_NAVIGATION, KC_A) | ||
| 47 | |||
| 48 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 49 | |||
| 50 | /* Qwerty | ||
| 51 | * ,-----------------------------------------------------------------------------------. | ||
| 52 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 53 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 54 | * Tab for Esc--| Ctrl | A Nav| S | D | F | G | H | J | K | L | ; Nav| Ctrl |--Tab for " | ||
| 55 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 56 | * | Shift| Z | X | C | V | B | N | M | , | . | / | Shift|--Tab for Enter | ||
| 57 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 58 | * | | Hyper| Alt | Super| Lower| Space | Raise| Super| ALt | Hyper| | | ||
| 59 | * `-----------------------------------------------------------------------------------' | ||
| 60 | */ | ||
| 61 | [_QWERTY] = { | ||
| 62 | {KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC}, | ||
| 63 | {CTL_T(KC_ESC), NAV_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, NAV_SCLN, KC_QUOT}, | ||
| 64 | {KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_T(KC_ENT)}, | ||
| 65 | {___x___, KC_HYPR, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LGUI, KC_LALT, KC_HYPR, ___x___} | ||
| 66 | }, | ||
| 67 | |||
| 68 | /* Lower | ||
| 69 | * ,-----------------------------------------------------------------------------------. | ||
| 70 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 71 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 72 | * Tab to Del---| Ctrl | ¡ | ™ | € | ¢ | ∞ | § | _ | + | { | } | | | | ||
| 73 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 74 | * | | | | | | | |ISO ~ |ISO | | | | | | ||
| 75 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 76 | * | | | | | | | | | | | | | ||
| 77 | * `-----------------------------------------------------------------------------------' | ||
| 78 | */ | ||
| 79 | [_LOWER] = { | ||
| 80 | {KC_TILD, S(KC_1), S(KC_2), S(KC_3), S(KC_4), S(KC_5), S(KC_6), S(KC_7), S(KC_8), S(KC_9), S(KC_0), KC_BSPC}, | ||
| 81 | {CTL_DEL, LALT(KC_1), LALT(KC_2), KC_EUR, LALT(KC_4), LALT(KC_5), LALT(KC_6), KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE}, | ||
| 82 | {_______, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, S(KC_NUHS), S(KC_NUBS), _______, _______, _______}, | ||
| 83 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______} | ||
| 84 | }, | ||
| 85 | |||
| 86 | /* Raise | ||
| 87 | * ,-----------------------------------------------------------------------------------. | ||
| 88 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 89 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 90 | * Tab to Del---| Ctrl | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 91 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 92 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | | | | ||
| 93 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 94 | * | | | | | | | | | | | | | ||
| 95 | * `-----------------------------------------------------------------------------------' | ||
| 96 | */ | ||
| 97 | [_RAISE] = { | ||
| 98 | {KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC}, | ||
| 99 | {CTL_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS}, | ||
| 100 | {_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______}, | ||
| 101 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______} | ||
| 102 | }, | ||
| 103 | |||
| 104 | /* Navigation | ||
| 105 | * ,-----------------------------------------------------------------------------------. | ||
| 106 | * | | | | | | | | | | | | | | ||
| 107 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 108 | * | | | HOME | PGUP | PGDN | END | LEFT | DOWN | UP | RIGHT| | | | ||
| 109 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 110 | * | | | | | | | | | | | | | | ||
| 111 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 112 | * | | | | | | | | | | | | | ||
| 113 | * `-----------------------------------------------------------------------------------' | ||
| 114 | */ | ||
| 115 | [_NAVIGATION] = { | ||
| 116 | {___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___}, | ||
| 117 | {_______, _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END , KC_LEFT, KC_DOWN, KC_UP , KC_RIGHT, _______, ___x___}, | ||
| 118 | {_______, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, ___x___, _______}, | ||
| 119 | {___x___, _______, _______, _______, ___x___, ___x___, ___x___, ___x___, _______, _______, _______, ___x___} | ||
| 120 | }, | ||
| 121 | |||
| 122 | /* Plover layer (http://opensteno.org) | ||
| 123 | * ,-----------------------------------------------------------------------------------. | ||
| 124 | * | # | # | # | # | # | # | # | # | # | # | # | # | | ||
| 125 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 126 | * | | S | T | P | H | * | * | F | P | L | T | D | | ||
| 127 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 128 | * | | S | K | W | R | * | * | R | B | G | S | Z | | ||
| 129 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 130 | * | Exit | | | A | O | | E | U | | | | | ||
| 131 | * `-----------------------------------------------------------------------------------' | ||
| 132 | */ | ||
| 133 | |||
| 134 | [_PLOVER] = { | ||
| 135 | {KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 }, | ||
| 136 | {___x___, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC}, | ||
| 137 | {___x___, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT}, | ||
| 138 | {EXT_PLV, ___x___, ___x___, KC_C, KC_V, ___x___, ___x___, KC_N, KC_M, ___x___, ___x___, ___x___} | ||
| 139 | }, | ||
| 140 | |||
| 141 | /* Adjust (Lower + Raise) | ||
| 142 | * ,-----------------------------------------------------------------------------------. | ||
| 143 | * | | Reset| | | | | | | | | | Del | | ||
| 144 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 145 | * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Plover| | | | | ||
| 146 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 147 | * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof| | | | | | | ||
| 148 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 149 | * | | | | | | | | | | | | | ||
| 150 | * `-----------------------------------------------------------------------------------' | ||
| 151 | */ | ||
| 152 | [_ADJUST] = { | ||
| 153 | {_______, RESET, DEBUG, _______, _______, _______, _______, TERM_ON, TERM_OFF,_______, _______, KC_DEL }, | ||
| 154 | {_______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, PLOVER, _______, _______, _______}, | ||
| 155 | {_______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______}, | ||
| 156 | {_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______} | ||
| 157 | } | ||
| 158 | |||
| 159 | |||
| 160 | }; | ||
| 161 | |||
| 162 | #ifdef AUDIO_ENABLE | ||
| 163 | float plover_song[][2] = SONG(PLOVER_SOUND); | ||
| 164 | float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND); | ||
| 165 | #endif | ||
| 166 | |||
| 167 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 168 | switch (keycode) { | ||
| 169 | case QWERTY: | ||
| 170 | if (record->event.pressed) { | ||
| 171 | print("mode just switched to qwerty and this is a huge string\n"); | ||
| 172 | set_single_persistent_default_layer(_QWERTY); | ||
| 173 | } | ||
| 174 | return false; break; | ||
| 175 | case LOWER: | ||
| 176 | if (record->event.pressed) { | ||
| 177 | layer_on(_LOWER); | ||
| 178 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 179 | } else { | ||
| 180 | layer_off(_LOWER); | ||
| 181 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 182 | } | ||
| 183 | return false; break; | ||
| 184 | case RAISE: | ||
| 185 | if (record->event.pressed) { | ||
| 186 | layer_on(_RAISE); | ||
| 187 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 188 | } else { | ||
| 189 | layer_off(_RAISE); | ||
| 190 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 191 | } | ||
| 192 | return false; break; | ||
| 193 | case PLOVER: | ||
| 194 | if (record->event.pressed) { | ||
| 195 | #ifdef AUDIO_ENABLE | ||
| 196 | stop_all_notes(); | ||
| 197 | PLAY_SONG(plover_song); | ||
| 198 | #endif | ||
| 199 | layer_off(_RAISE); | ||
| 200 | layer_off(_LOWER); | ||
| 201 | layer_off(_ADJUST); | ||
| 202 | layer_on(_PLOVER); | ||
| 203 | if (!eeconfig_is_enabled()) { | ||
| 204 | eeconfig_init(); | ||
| 205 | } | ||
| 206 | keymap_config.raw = eeconfig_read_keymap(); | ||
| 207 | keymap_config.nkro = 1; | ||
| 208 | eeconfig_update_keymap(keymap_config.raw); | ||
| 209 | } | ||
| 210 | return false; break; | ||
| 211 | case EXT_PLV: | ||
| 212 | if (record->event.pressed) { | ||
| 213 | #ifdef AUDIO_ENABLE | ||
| 214 | PLAY_SONG(plover_gb_song); | ||
| 215 | #endif | ||
| 216 | layer_off(_PLOVER); | ||
| 217 | } | ||
| 218 | return false; break; | ||
| 219 | } | ||
| 220 | return true; | ||
| 221 | } | ||
diff --git a/keyboards/planck/keymaps/jirgn/readme.md b/keyboards/planck/keymaps/jirgn/readme.md new file mode 100644 index 000000000..afc93d457 --- /dev/null +++ b/keyboards/planck/keymaps/jirgn/readme.md | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # Jirgns Planck Layout | ||
| 2 | |||
| 3 | This layout was designed with [Layout Designer](http://www.keyboard-layout-editor.com/#/) | ||
| 4 | |||
| 5 | [Permalink to Layout](http://www.keyboard-layout-editor.com/##@_switchMount=cherry&switchBrand=cherry&switchType=MX1A-C1xx&pcb:true&css=.keylabel2%20%7B%0A%20%20%20%20color%2F:%20%2361ba5d%20!important%2F%3B%0A%7D%0A.keylabel6%20%7B%0A%20%20%20%20color%2F:%20%23fa7a5f%20!important%2F%3B%0A%7D%0A.keylabel8%20%7B%0A%20%20%20%20color%2F:%20%237ab7f7%20!important%2F%3B%0A%7D%0A.keylabel7%20%7B%0A%20%20%20%20color%2F:%20%23999%20!important%2F%3B%0A%7D%3B&@_fa@:0&:2&:0&:2%3B%3B&=%0A~%0A%0A%60%0A%0A%0A%0A%0A%0ATab&_sm=cherry&sb=cherry&st=MX1A-C1xx%3B&=%0A!%0A%0A1%0A%0A%0A%0A%0A%0AQ&=%0A%2F@%0A%0A2%0A%0A%0A%0A%0A%0AW&=%0A%23%0A%0A3%0A%0A%0A%0A%0A%0AE&=%0A$%0A%0A4%0A%0A%0A%0A%0A%0AR&=%0A%25%0A%0A5%0A%0A%0A%0A%0A%0AT&=%0A%5E%0A%0A6%0A%0A%0A%0A%0A%0AY&=%0A%2F&%0A%0A7%0A%0A%0A%0A%0A%0AU&=%0A*%0A%0A8%0A%0A%0A%0A%0A%0AI&=%0A(%0A%0A9%0A%0A%0A%0A%0A%0AO&=%0A)%0A%0A0%0A%0A%0A%0A%0A%0AP&_a:7%3B&=%3Ci%20class%2F='mss%20mss-Unicode-BackSpace-DeleteLeft-Big-2'%3E%3C%2F%2Fi%3E%3B&@_c=%23b8b8b8&a:5%3B&=%0A%3Ci%20class%2F='mss%20mss-Unicode-DeleteRight-Big-2'%3E%3C%2F%2Fi%3E%0A%0A%0ACtrl%0A%0A%3Ci%20class%2F='mss%20mss-Unicode-Escape-3'%3E%3C%2F%2Fi%3E&_c=%2361ba5d&a:4%3B&=%0A¡%0A%0AF1%0ANav%0A%0A%0A%0A%0AA&_c=%23cccccc&fa@:0&:2&:1&:2%3B%3B&=%0A™%0AHome%0AF2%0A%0A%0A%0A%0A%0AS&=%0A€%0APg%20Up%0AF3%0A%0A%0A%0A%0A%0AD&=%0A¢%0APg%20Dn%0AF4%0A%0A%0A%0A%0A%0AF&=%0A∞%0AEnd%0AF5%0A%0A%0A%0A%0A%0AG&_f2:2%3B&=%0A§%0A←%0AF6%0A%0A%0A%0A%0A%0AH&_f2:2%3B&=%0A%2F_%0A↓%0A-%0A%0A%0A%0A%0A%0AJ&_f2:2%3B&=%0A+%0A↑%0A%2F=%0A%0A%0A%0A%0A%0AK&_f2:2%3B&=%0A%7B%0A→%0A%5B%0A%0A%0A%0A%0A%0AL&_c=%2361ba5d&fa@:0&:2&:2&:2&:0&:2&:2&:2%3B%3B&=%0A%7D%0A%0A%5D%0ANav%0A%0A%0A%2F:%0A%0A%2F%3B&_c=%23cccccc%3B&=%0A%7C%0A%0A%5C%0A%0A%0A%0A%22%0A%0A'%3B&@_c=%23b8b8b8&a:7%3B&=Shift&_c=%23cccccc&a:4%3B&=%0A%0A%0AF7%0A%0A%0A%0A%0A%0AZ&=%0A%0A%0AF8%0A%0A%0A%0A%0A%0AX&=%0A%0A%0AF9%0A%0A%0A%0A%0A%0AC&=%0A%0A%0AF10%0A%0A%0A%0A%0A%0AV&=%0A%0A%0AF11%0A%0A%0A%0A%0A%0AB&=%0A%0A%0AF12%0A%0A%0A%0A%0A%0AN&=%0A~%0A%0A%23%0A%0A%0A%0A%0A%0AM&=%0A%7C%0A%0A%2F%2F%0A%0A%0A%0A%3C%0A%0A,&_a:6%3B&=%0A%0A%3E%0A%0A%0A%0A%0A%0A.&=%0A%0A%3F%0A%0A%0A%0A%0A%0A%2F%2F&_c=%23b8b8b8&a:7%3B&=%3Ci%20class%2F='kb%20kb-Return-2'%3E%3C%2F%2Fi%3E%0A%0A%0A%0AShift%3B&@=&=Hyper&=%3Ci%20class%2F='mss%20mss-Unicode-Option-3'%3E%3C%2F%2Fi%3E&=%3Ci%20class%2F='mss%20mss-Unicode-Command-3'%3E%3C%2F%2Fi%3E&_c=%23fa7a5f%3B&=%2F&dArr%2F%3B&_c=%23cccccc&w:2%3B&=&_c=%237ab7f7%3B&=%2F&uArr%2F%3B&_c=%23b8b8b8%3B&=%3Ci%20class%2F='mss%20mss-Unicode-Command-3'%3E%3C%2F%2Fi%3E&=%3Ci%20class%2F='mss%20mss-Unicode-Option-3'%3E%3C%2F%2Fi%3E&=Hyper&=) | ||
diff --git a/keyboards/planck/keymaps/jirgn/rules.mk b/keyboards/planck/keymaps/jirgn/rules.mk new file mode 100644 index 000000000..457a3d01d --- /dev/null +++ b/keyboards/planck/keymaps/jirgn/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ifndef QUANTUM_DIR | ||
| 2 | include ../../../../Makefile | ||
| 3 | endif | ||
