diff options
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/config.h | 39 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/keymap.c | 114 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/readme.md | 46 | ||||
| -rw-r--r-- | keyboards/mechwild/obe/keymaps/jonavin/rules.mk | 11 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jimmysjolund/config.h | 49 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jimmysjolund/keymap.c | 367 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jimmysjolund/readme.md | 2 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/jimmysjolund/rules.mk | 1 | ||||
| -rw-r--r-- | users/jonavin/jonavin.c | 32 | ||||
| -rw-r--r-- | users/jonavin/jonavin.h | 14 | ||||
| -rw-r--r-- | users/jonavin/readme.md | 106 | ||||
| -rw-r--r-- | users/jonavin/rules.mk | 3 |
12 files changed, 741 insertions, 43 deletions
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/config.h b/keyboards/mechwild/obe/keymaps/jonavin/config.h new file mode 100644 index 000000000..8a812f155 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/config.h | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | /* Copyright 2021 Jonavin Eng | ||
| 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 | #define TAPPING_TOGGLE 2 | ||
| 20 | // TT set to two taps | ||
| 21 | |||
| 22 | /* Handle GRAVESC combo keys */ | ||
| 23 | #define GRAVE_ESC_ALT_OVERRIDE | ||
| 24 | //Always send Escape if Alt is pressed | ||
| 25 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 26 | //Always send Escape if Control is pressed | ||
| 27 | |||
| 28 | #define TAPPING_TERM 180 | ||
| 29 | |||
| 30 | #ifdef RGBLIGHT_ENABLE | ||
| 31 | // Redefine number of LED | ||
| 32 | #ifdef RGBLED_NUM | ||
| 33 | #undef RGBLED_NUM | ||
| 34 | #endif // DEBUG | ||
| 35 | #define RGBLED_NUM 20 | ||
| 36 | |||
| 37 | #define RGBLIGHT_LAYERS | ||
| 38 | #define RGBLIGHT_SLEEP | ||
| 39 | #endif // RGBLIGHT_ENABLE | ||
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/keymap.c b/keyboards/mechwild/obe/keymaps/jonavin/keymap.c new file mode 100644 index 000000000..b5b082965 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/keymap.c | |||
| @@ -0,0 +1,114 @@ | |||
| 1 | /* Copyright 2021 Kyle McCreery | ||
| 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 QMK_KEYBOARD_H | ||
| 18 | #include "jonavin.h" | ||
| 19 | |||
| 20 | #ifdef RGBLIGHT_ENABLE | ||
| 21 | // Custom RGB Colours | ||
| 22 | #define RGB_OBE_BOW 0x00, 0xE4, 0xFF // colour for matching keycaps | ||
| 23 | #endif // RGBLIGHT_ENABLE | ||
| 24 | |||
| 25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 26 | /* Base */ | ||
| 27 | [_BASE] = LAYOUT( | ||
| 28 | KC_MUTE, KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_DEL, | ||
| 29 | KC_PGUP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | ||
| 30 | KC_PGDN, TT(_RAISE), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 31 | KC_LSFTCAPSWIN,KC_Z, KC_X, KC_C, KC_V, KC_B, LT(_LOWER,KC_B), KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_RSFT, | ||
| 32 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, MO(_FN1), LT(_RAISE,KC_SPC), KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 33 | ), | ||
| 34 | [_FN1] = LAYOUT( | ||
| 35 | KC_NO, KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, KC_INS, | ||
| 36 | KC_HOME, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_PSCR, KC_SLCK, KC_PAUS, KC_NO, KC_NO, KC_NO, RESET, | ||
| 37 | KC_END, KC_CAPS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, | ||
| 38 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_NLCK, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGUP, KC_TRNS, | ||
| 39 | KC_TRNS,KC_WINLCK,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_HOME, KC_PGDN, KC_END | ||
| 40 | ), | ||
| 41 | [_LOWER] = LAYOUT( | ||
| 42 | KC_NO, KC_TILD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_VAD, RGB_VAI, KC_TRNS, KC_DEL, | ||
| 43 | RGB_HUI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, EMO_TEARS, EMO_SAD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, RGB_TOG, | ||
| 44 | RGB_HUD, KC_NO, KC_NO, EMO_SHRUG,KC_NO, KC_NO, KC_NO, KC_NO, EMO_JOY, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, | ||
| 45 | KC_NO, KC_NO, KC_NO, EMO_CONFUSE,KC_NO,KC_NO,KC_TRNS,EMO_NERVOUS,KC_NO, KC_NO, KC_NO, KC_NO, RGB_MOD, KC_TRNS, | ||
| 46 | KC_TRNS, KC_APP, KC_TRNS, KC_BSPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, RGB_SPD, RGB_RMOD, RGB_SPI | ||
| 47 | ), | ||
| 48 | [_RAISE] = LAYOUT( | ||
| 49 | KC_NO, KC_TILD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_P7, KC_P8, KC_P9, KC_P0, KC_PMNS, KC_PPLS, KC_PSLS, KC_DEL, | ||
| 50 | KC_NO, KC_NO, KC_HOME,KC_UP, KC_END, KC_PGUP, KC_NO, KC_TAB, KC_P4, KC_P5, KC_P6, KC_NO, KC_NO, KC_NO, KC_PEQL, | ||
| 51 | KC_NO, TT(_RAISE),KC_LEFT,KC_DOWN, KC_RGHT, KC_PGDN, KC_NO, KC_NO, KC_P1, KC_P2, KC_P3, KC_NO, KC_PAST, KC_PENT, | ||
| 52 | KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_P0, KC_00, KC_NO, KC_PDOT, KC_PSLS, CT_PGUP, KC_TRNS, | ||
| 53 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, CT_HOME, CT_PGDN, CT_END | ||
| 54 | ) | ||
| 55 | }; | ||
| 56 | |||
| 57 | #ifdef RGBLIGHT_ENABLE | ||
| 58 | |||
| 59 | enum custom_rgblight_layers | ||
| 60 | { | ||
| 61 | _rgbWINLOCK, | ||
| 62 | _rgbFN, | ||
| 63 | _rgbLOWER, | ||
| 64 | _rgbRAISE | ||
| 65 | }; | ||
| 66 | |||
| 67 | // Optional RGB Light Mapping Zones {LED Posiiton, Number of LEDs, Colour} | ||
| 68 | const rgblight_segment_t PROGMEM _rgb_winlock_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
| 69 | {1, 3, HSV_RED}, | ||
| 70 | {15, 3, HSV_RED} | ||
| 71 | ); | ||
| 72 | const rgblight_segment_t PROGMEM _rgb_fn_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
| 73 | {6, 6, HSV_PURPLE} | ||
| 74 | ); | ||
| 75 | // Light LEDs 9 & 10 in cyan when keyboard layer 1 is active | ||
| 76 | const rgblight_segment_t PROGMEM _rgb_lower_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
| 77 | {4, 10, HSV_YELLOW} | ||
| 78 | ); | ||
| 79 | |||
| 80 | const rgblight_segment_t PROGMEM _rgb_raise_layer[] = RGBLIGHT_LAYER_SEGMENTS( | ||
| 81 | {3, 5, HSV_GREEN}, | ||
| 82 | {10, 5, HSV_GREEN} | ||
| 83 | ); | ||
| 84 | |||
| 85 | const rgblight_segment_t* const PROGMEM _rgb_layers[] = RGBLIGHT_LAYERS_LIST( | ||
| 86 | _rgb_winlock_layer, | ||
| 87 | _rgb_fn_layer, | ||
| 88 | _rgb_lower_layer, | ||
| 89 | _rgb_raise_layer | ||
| 90 | ); | ||
| 91 | |||
| 92 | bool led_update_user(led_t led_state) { | ||
| 93 | rgblight_set_layer_state(_rgbWINLOCK, keymap_config.no_gui); | ||
| 94 | return true; | ||
| 95 | } | ||
| 96 | |||
| 97 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 98 | rgblight_set_layer_state(_rgbFN, layer_state_cmp(state, _FN1)); | ||
| 99 | rgblight_set_layer_state(_rgbLOWER, layer_state_cmp(state, _LOWER)); | ||
| 100 | rgblight_set_layer_state(_rgbRAISE, layer_state_cmp(state, _RAISE)); | ||
| 101 | return state; | ||
| 102 | } | ||
| 103 | #endif // RGBLIGHT_ENABLE | ||
| 104 | |||
| 105 | void keyboard_post_init_keymap(void) { | ||
| 106 | // keyboard_post_init_user() moved to userspace | ||
| 107 | #ifdef RGBLIGHT_ENABLE | ||
| 108 | rgblight_enable_noeeprom(); | ||
| 109 | rgblight_mode(RGBLIGHT_MODE_STATIC_LIGHT); | ||
| 110 | rgblight_setrgb(RGB_OBE_BOW); // Default startup colour | ||
| 111 | rgblight_layers = _rgb_layers; | ||
| 112 | #endif | ||
| 113 | } | ||
| 114 | |||
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/readme.md b/keyboards/mechwild/obe/keymaps/jonavin/readme.md new file mode 100644 index 000000000..d60958a4e --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/readme.md | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | # Jonavin's MechWild Orange Boy Ergo keymap | ||
| 2 | |||
| 3 | --> This keymap makes user of user/jonavin userspace | ||
| 4 | |||
| 5 | Features | ||
| 6 | - Split spacebars, Split Backspace | ||
| 7 | - RGB Winlock indicator (requires LED stripto be installed) | ||
| 8 | - RGB Layer indicators: FN/MO1 - Purple; LOWER/MO2 - Yellow; RAISE/MO3/NumPad - Green | ||
| 9 | - quick demo https://youtu.be/gR1awbsouLk | ||
| 10 | |||
| 11 | - Add PrtScr, Scroll Lock, Break, NumLock to Fn layer | ||
| 12 | - Implement Win key lock using Fn+Win | ||
| 13 | - Layer 2 (LOWER) when right B is held -- for emoticons | ||
| 14 | - Layer 2 RGB functions | ||
| 15 | - Layer 3 (RAISE) mod on Caps Lock with double-tap to switch to this layer, double tap to switch back | ||
| 16 | - provides arrows on WASD and additional nav keys + right hand numpad with 00; an be used for Alt Code entry | ||
| 17 | - left spacebar Backspace | ||
| 18 | - add double tap of Left Shift to toggle Caps Lock | ||
| 19 | |||
| 20 | |||
| 21 | rules.mk OPTIONS - Active features from userspace | ||
| 22 | -------------------------------------------------- | ||
| 23 | |||
| 24 | STARTUP_NUMLOCK_ON = yes | ||
| 25 | - turns on NUMLOCK by default | ||
| 26 | |||
| 27 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
| 28 | - Enables default encoder funtions | ||
| 29 | - holding Left shift, change layers | ||
| 30 | - holding right shift, Navigate page up/down | ||
| 31 | - holding Left Ctrl, navigate prev/next word | ||
| 32 | - holding Left Alt, change media prev/next track | ||
| 33 | - default is change volume | ||
| 34 | |||
| 35 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
| 36 | - This will enable double tap on Left Shift to toggle CAPSLOCK when using KC_LSFTCAPS | ||
| 37 | |||
| 38 | IDLE_TIMEOUT_ENABLE = yes | ||
| 39 | - Enables Timer functionality; for RGB idle timeouts that can be changed dynamically | ||
| 40 | |||
| 41 | EMOTICON_ENABLE | ||
| 42 | - adds EMO_ keycodes for text emojis | ||
| 43 | |||
| 44 | ## All layers diagram | ||
| 45 |  | ||
| 46 | |||
diff --git a/keyboards/mechwild/obe/keymaps/jonavin/rules.mk b/keyboards/mechwild/obe/keymaps/jonavin/rules.mk new file mode 100644 index 000000000..e371b6349 --- /dev/null +++ b/keyboards/mechwild/obe/keymaps/jonavin/rules.mk | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | LTO_ENABLE = yes | ||
| 3 | RGBLIGHT_ENABLE = yes | ||
| 4 | |||
| 5 | MOUSEKEY_ENABLE = no | ||
| 6 | TAP_DANCE_ENABLE = yes | ||
| 7 | |||
| 8 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
| 9 | STARTUP_NUMLOCK_ON = yes | ||
| 10 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
| 11 | EMOTICON_ENABLE = yes | ||
diff --git a/keyboards/planck/keymaps/jimmysjolund/config.h b/keyboards/planck/keymaps/jimmysjolund/config.h new file mode 100644 index 000000000..5606510d4 --- /dev/null +++ b/keyboards/planck/keymaps/jimmysjolund/config.h | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | /* Copyright 2021 Jimmy Sjölund | ||
| 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 | #ifdef AUDIO_ENABLE | ||
| 20 | #define STARTUP_SONG SONG(PLANCK_SOUND) | ||
| 21 | // #define STARTUP_SONG SONG(NO_SOUND) | ||
| 22 | |||
| 23 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ | ||
| 24 | SONG(COLEMAK_SOUND), \ | ||
| 25 | SONG(DVORAK_SOUND) \ | ||
| 26 | } | ||
| 27 | #endif | ||
| 28 | |||
| 29 | /* | ||
| 30 | * MIDI options | ||
| 31 | */ | ||
| 32 | |||
| 33 | /* enable basic MIDI features: | ||
| 34 | - MIDI notes can be sent when in Music mode is on | ||
| 35 | */ | ||
| 36 | |||
| 37 | #define MIDI_BASIC | ||
| 38 | |||
| 39 | /* enable advanced MIDI features: | ||
| 40 | - MIDI notes can be added to the keymap | ||
| 41 | - Octave shift and transpose | ||
| 42 | - Virtual sustain, portamento, and modulation wheel | ||
| 43 | - etc. | ||
| 44 | */ | ||
| 45 | //#define MIDI_ADVANCED | ||
| 46 | |||
| 47 | // Most tactile encoders have detents every 4 stages | ||
| 48 | #define ENCODER_RESOLUTION 4 | ||
| 49 | |||
diff --git a/keyboards/planck/keymaps/jimmysjolund/keymap.c b/keyboards/planck/keymaps/jimmysjolund/keymap.c new file mode 100644 index 000000000..6b89b9954 --- /dev/null +++ b/keyboards/planck/keymaps/jimmysjolund/keymap.c | |||
| @@ -0,0 +1,367 @@ | |||
| 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 QMK_KEYBOARD_H | ||
| 18 | #include "muse.h" | ||
| 19 | |||
| 20 | |||
| 21 | enum planck_layers { | ||
| 22 | _QWERTY, | ||
| 23 | _COLEMAK, | ||
| 24 | _DVORAK, | ||
| 25 | _LOWER, | ||
| 26 | _RAISE, | ||
| 27 | _PLOVER, | ||
| 28 | _ADJUST | ||
| 29 | }; | ||
| 30 | |||
| 31 | enum planck_keycodes { | ||
| 32 | QWERTY = SAFE_RANGE, | ||
| 33 | COLEMAK, | ||
| 34 | DVORAK, | ||
| 35 | PLOVER, | ||
| 36 | BACKLIT, | ||
| 37 | EXT_PLV | ||
| 38 | }; | ||
| 39 | |||
| 40 | #define LOWER MO(_LOWER) | ||
| 41 | #define RAISE MO(_RAISE) | ||
| 42 | |||
| 43 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 44 | |||
| 45 | /* Qwerty - Original | ||
| 46 | * ,-----------------------------------------------------------------------------------. | ||
| 47 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 48 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 49 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 50 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 51 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 52 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 53 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 54 | * `-----------------------------------------------------------------------------------' | ||
| 55 | */ | ||
| 56 | /* Qwerty - jimmysjolund 2021-09-22 | ||
| 57 | * ,-----------------------------------------------------------------------------------. | ||
| 58 | * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 59 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 60 | * | Tab | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 61 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 62 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Shift | | ||
| 63 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 64 | * | Del | Ctrl | GUI | Alt |Lower |Raise |Enter |Space |AltGr | Down | Up |Enter | | ||
| 65 | * `-----------------------------------------------------------------------------------' | ||
| 66 | */ | ||
| 67 | |||
| 68 | [_QWERTY] = LAYOUT_planck_grid( | ||
| 69 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 70 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 71 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 72 | KC_DEL, KC_LCTL, KC_LGUI, KC_LALT, LOWER, RAISE, KC_ENT, KC_SPC, KC_ALGR, KC_DOWN, KC_UP, KC_ENT | ||
| 73 | ), | ||
| 74 | |||
| 75 | /* Colemak Original | ||
| 76 | * ,-----------------------------------------------------------------------------------. | ||
| 77 | * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp | | ||
| 78 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 79 | * | Esc | A | R | S | T | D | H | N | E | I | O | " | | ||
| 80 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 81 | * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter | | ||
| 82 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 83 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 84 | * `-----------------------------------------------------------------------------------' | ||
| 85 | */ | ||
| 86 | /* Colemak jimmysjolund | ||
| 87 | * ,-----------------------------------------------------------------------------------. | ||
| 88 | * | Esc | Q | W | F | P | G | J | L | U | Y | ; | Bksp | | ||
| 89 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 90 | * | Tab | A | R | S | T | D | H | N | E | I | O | " | | ||
| 91 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 92 | * | Shift| Z | X | C | V | B | K | M | , | . | / |Shift | | ||
| 93 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 94 | * | Del | Ctrl | GUI | Alt |Lower |Raise |Enter |Space |AltGr | Down | Up |Enter | | ||
| 95 | * `-----------------------------------------------------------------------------------' | ||
| 96 | */ | ||
| 97 | [_COLEMAK] = LAYOUT_planck_grid( | ||
| 98 | KC_ESC, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, | ||
| 99 | KC_TAB, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, | ||
| 100 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 101 | KC_DEL, KC_LCTL, KC_LGUI, KC_LALT, LOWER, RAISE, KC_ENT, KC_SPC, KC_ALGR, KC_DOWN, KC_UP, KC_ENT | ||
| 102 | ), | ||
| 103 | |||
| 104 | /* Dvorak | ||
| 105 | * ,-----------------------------------------------------------------------------------. | ||
| 106 | * | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp | | ||
| 107 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 108 | * | Esc | A | O | E | U | I | D | H | T | N | S | / | | ||
| 109 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 110 | * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter | | ||
| 111 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 112 | * | Brite| Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
| 113 | * `-----------------------------------------------------------------------------------' | ||
| 114 | */ | ||
| 115 | [_DVORAK] = LAYOUT_planck_grid( | ||
| 116 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, | ||
| 117 | KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, | ||
| 118 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT , | ||
| 119 | BACKLIT, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 120 | ), | ||
| 121 | |||
| 122 | /* Lower | ||
| 123 | * ,-----------------------------------------------------------------------------------. | ||
| 124 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 125 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 126 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 127 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 128 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | | | ||
| 129 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 130 | * | | | | | | | | Left | Down | Up |Right | | ||
| 131 | * `-----------------------------------------------------------------------------------' | ||
| 132 | */ | ||
| 133 | [_LOWER] = LAYOUT_planck_grid( | ||
| 134 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 135 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 136 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 137 | _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 138 | ), | ||
| 139 | |||
| 140 | /* Raise | ||
| 141 | * ,-----------------------------------------------------------------------------------. | ||
| 142 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 143 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 144 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 145 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 146 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | | | ||
| 147 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 148 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 149 | * `-----------------------------------------------------------------------------------' | ||
| 150 | */ | ||
| 151 | [_RAISE] = LAYOUT_planck_grid( | ||
| 152 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 153 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 154 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, _______, | ||
| 155 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 156 | ), | ||
| 157 | |||
| 158 | |||
| 159 | /* Plover layer (http://opensteno.org) | ||
| 160 | * ,-----------------------------------------------------------------------------------. | ||
| 161 | * | # | # | # | # | # | # | # | # | # | # | # | # | | ||
| 162 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 163 | * | | S | T | P | H | * | * | F | P | L | T | D | | ||
| 164 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 165 | * | | S | K | W | R | * | * | R | B | G | S | Z | | ||
| 166 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 167 | * | Exit | | | A | O | | E | U | | | | | ||
| 168 | * `-----------------------------------------------------------------------------------' | ||
| 169 | */ | ||
| 170 | [_PLOVER] = LAYOUT_planck_grid( | ||
| 171 | KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1, KC_1 , | ||
| 172 | XXXXXXX, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, | ||
| 173 | XXXXXXX, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 174 | EXT_PLV, XXXXXXX, XXXXXXX, KC_C, KC_V, XXXXXXX, XXXXXXX, KC_N, KC_M, XXXXXXX, XXXXXXX, XXXXXXX | ||
| 175 | ), | ||
| 176 | |||
| 177 | /* Adjust (Lower + Raise) | ||
| 178 | * ,-----------------------------------------------------------------------------------. | ||
| 179 | * | | Reset| | | | | | | | | | Del | | ||
| 180 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 181 | * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak|Plover| | | ||
| 182 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 183 | * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof| | | | | | | ||
| 184 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 185 | * | | | | | | | | | | | | | ||
| 186 | * `-----------------------------------------------------------------------------------' | ||
| 187 | */ | ||
| 188 | [_ADJUST] = LAYOUT_planck_grid( | ||
| 189 | _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , | ||
| 190 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, PLOVER, _______, | ||
| 191 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, | ||
| 192 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 193 | ) | ||
| 194 | |||
| 195 | }; | ||
| 196 | |||
| 197 | #ifdef AUDIO_ENABLE | ||
| 198 | float plover_song[][2] = SONG(PLOVER_SOUND); | ||
| 199 | float plover_gb_song[][2] = SONG(PLOVER_GOODBYE_SOUND); | ||
| 200 | #endif | ||
| 201 | |||
| 202 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 203 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
| 204 | } | ||
| 205 | |||
| 206 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 207 | switch (keycode) { | ||
| 208 | case QWERTY: | ||
| 209 | if (record->event.pressed) { | ||
| 210 | print("mode just switched to qwerty and this is a huge string\n"); | ||
| 211 | set_single_persistent_default_layer(_QWERTY); | ||
| 212 | } | ||
| 213 | return false; | ||
| 214 | break; | ||
| 215 | case COLEMAK: | ||
| 216 | if (record->event.pressed) { | ||
| 217 | set_single_persistent_default_layer(_COLEMAK); | ||
| 218 | } | ||
| 219 | return false; | ||
| 220 | break; | ||
| 221 | case DVORAK: | ||
| 222 | if (record->event.pressed) { | ||
| 223 | set_single_persistent_default_layer(_DVORAK); | ||
| 224 | } | ||
| 225 | return false; | ||
| 226 | break; | ||
| 227 | case BACKLIT: | ||
| 228 | if (record->event.pressed) { | ||
| 229 | register_code(KC_RSFT); | ||
| 230 | #ifdef BACKLIGHT_ENABLE | ||
| 231 | backlight_step(); | ||
| 232 | #endif | ||
| 233 | #ifdef KEYBOARD_planck_rev5 | ||
| 234 | PORTE &= ~(1<<6); | ||
| 235 | #endif | ||
| 236 | } else { | ||
| 237 | unregister_code(KC_RSFT); | ||
| 238 | #ifdef KEYBOARD_planck_rev5 | ||
| 239 | PORTE |= (1<<6); | ||
| 240 | #endif | ||
| 241 | } | ||
| 242 | return false; | ||
| 243 | break; | ||
| 244 | case PLOVER: | ||
| 245 | if (record->event.pressed) { | ||
| 246 | #ifdef AUDIO_ENABLE | ||
| 247 | stop_all_notes(); | ||
| 248 | PLAY_SONG(plover_song); | ||
| 249 | #endif | ||
| 250 | layer_off(_RAISE); | ||
| 251 | layer_off(_LOWER); | ||
| 252 | layer_off(_ADJUST); | ||
| 253 | layer_on(_PLOVER); | ||
| 254 | if (!eeconfig_is_enabled()) { | ||
| 255 | eeconfig_init(); | ||
| 256 | } | ||
| 257 | keymap_config.raw = eeconfig_read_keymap(); | ||
| 258 | keymap_config.nkro = 1; | ||
| 259 | eeconfig_update_keymap(keymap_config.raw); | ||
| 260 | } | ||
| 261 | return false; | ||
| 262 | break; | ||
| 263 | case EXT_PLV: | ||
| 264 | if (record->event.pressed) { | ||
| 265 | #ifdef AUDIO_ENABLE | ||
| 266 | PLAY_SONG(plover_gb_song); | ||
| 267 | #endif | ||
| 268 | layer_off(_PLOVER); | ||
| 269 | } | ||
| 270 | return false; | ||
| 271 | break; | ||
| 272 | } | ||
| 273 | return true; | ||
| 274 | } | ||
| 275 | |||
| 276 | bool muse_mode = false; | ||
| 277 | uint8_t last_muse_note = 0; | ||
| 278 | uint16_t muse_counter = 0; | ||
| 279 | uint8_t muse_offset = 70; | ||
| 280 | uint16_t muse_tempo = 50; | ||
| 281 | |||
| 282 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 283 | if (muse_mode) { | ||
| 284 | if (IS_LAYER_ON(_RAISE)) { | ||
| 285 | if (clockwise) { | ||
| 286 | muse_offset++; | ||
| 287 | } else { | ||
| 288 | muse_offset--; | ||
| 289 | } | ||
| 290 | } else { | ||
| 291 | if (clockwise) { | ||
| 292 | muse_tempo+=1; | ||
| 293 | } else { | ||
| 294 | muse_tempo-=1; | ||
| 295 | } | ||
| 296 | } | ||
| 297 | } else { | ||
| 298 | if (clockwise) { | ||
| 299 | #ifdef MOUSEKEY_ENABLE | ||
| 300 | tap_code(KC_MS_WH_DOWN); | ||
| 301 | #else | ||
| 302 | tap_code(KC_PGDN); | ||
| 303 | #endif | ||
| 304 | } else { | ||
| 305 | #ifdef MOUSEKEY_ENABLE | ||
| 306 | tap_code(KC_MS_WH_UP); | ||
| 307 | #else | ||
| 308 | tap_code(KC_PGUP); | ||
| 309 | #endif | ||
| 310 | } | ||
| 311 | } | ||
| 312 | return false; | ||
| 313 | } | ||
| 314 | |||
| 315 | bool dip_update_user(uint8_t index, bool active) { | ||
| 316 | switch (index) { | ||
| 317 | case 0: | ||
| 318 | if (active) { | ||
| 319 | #ifdef AUDIO_ENABLE | ||
| 320 | PLAY_SONG(plover_song); | ||
| 321 | #endif | ||
| 322 | layer_on(_ADJUST); | ||
| 323 | } else { | ||
| 324 | #ifdef AUDIO_ENABLE | ||
| 325 | PLAY_SONG(plover_gb_song); | ||
| 326 | #endif | ||
| 327 | layer_off(_ADJUST); | ||
| 328 | } | ||
| 329 | break; | ||
| 330 | case 1: | ||
| 331 | if (active) { | ||
| 332 | muse_mode = true; | ||
| 333 | } else { | ||
| 334 | muse_mode = false; | ||
| 335 | #ifdef AUDIO_ENABLE | ||
| 336 | stop_all_notes(); | ||
| 337 | #endif | ||
| 338 | } | ||
| 339 | } | ||
| 340 | return false; | ||
| 341 | } | ||
| 342 | |||
| 343 | void matrix_scan_user(void) { | ||
| 344 | #ifdef AUDIO_ENABLE | ||
| 345 | if (muse_mode) { | ||
| 346 | if (muse_counter == 0) { | ||
| 347 | uint8_t muse_note = muse_offset + SCALE[muse_clock_pulse()]; | ||
| 348 | if (muse_note != last_muse_note) { | ||
| 349 | stop_note(compute_freq_for_midi_note(last_muse_note)); | ||
| 350 | play_note(compute_freq_for_midi_note(muse_note), 0xF); | ||
| 351 | last_muse_note = muse_note; | ||
| 352 | } | ||
| 353 | } | ||
| 354 | muse_counter = (muse_counter + 1) % muse_tempo; | ||
| 355 | } | ||
| 356 | #endif | ||
| 357 | } | ||
| 358 | |||
| 359 | bool music_mask_user(uint16_t keycode) { | ||
| 360 | switch (keycode) { | ||
| 361 | case RAISE: | ||
| 362 | case LOWER: | ||
| 363 | return false; | ||
| 364 | default: | ||
| 365 | return true; | ||
| 366 | } | ||
| 367 | } | ||
diff --git a/keyboards/planck/keymaps/jimmysjolund/readme.md b/keyboards/planck/keymaps/jimmysjolund/readme.md new file mode 100644 index 000000000..de9680b49 --- /dev/null +++ b/keyboards/planck/keymaps/jimmysjolund/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # The Default Planck Layout | ||
| 2 | |||
diff --git a/keyboards/planck/keymaps/jimmysjolund/rules.mk b/keyboards/planck/keymaps/jimmysjolund/rules.mk new file mode 100644 index 000000000..dcf16bef3 --- /dev/null +++ b/keyboards/planck/keymaps/jimmysjolund/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| SRC += muse.c | |||
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c index f53aa8664..1a0760ea8 100644 --- a/users/jonavin/jonavin.c +++ b/users/jonavin/jonavin.c | |||
| @@ -256,7 +256,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 256 | break; | 256 | break; |
| 257 | } | 257 | } |
| 258 | } | 258 | } |
| 259 | return true; | 259 | return false; |
| 260 | } | 260 | } |
| 261 | #endif // ENCODER_ENABLE | 261 | #endif // ENCODER_ENABLE |
| 262 | 262 | ||
| @@ -266,7 +266,7 @@ __attribute__ ((weak)) bool process_record_keymap(uint16_t keycode, keyrecord_t | |||
| 266 | 266 | ||
| 267 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 267 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
| 268 | if (!process_record_keymap(keycode, record)) { return false; } | 268 | if (!process_record_keymap(keycode, record)) { return false; } |
| 269 | switch (keycode) { | 269 | switch (keycode) { |
| 270 | case KC_00: | 270 | case KC_00: |
| 271 | if (record->event.pressed) { | 271 | if (record->event.pressed) { |
| 272 | // when keycode KC_00 is pressed | 272 | // when keycode KC_00 is pressed |
| @@ -298,6 +298,34 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 298 | } else unregister_code16(keycode); | 298 | } else unregister_code16(keycode); |
| 299 | break; | 299 | break; |
| 300 | #endif // RGB_MATRIX_ENABLE | 300 | #endif // RGB_MATRIX_ENABLE |
| 301 | |||
| 302 | #ifdef EMOTICON_ENABLE | ||
| 303 | case EMO_SHRUG: | ||
| 304 | if (record->event.pressed) SEND_STRING("`\\_(\"/)_/`"); | ||
| 305 | else unregister_code16(keycode); | ||
| 306 | break; | ||
| 307 | case EMO_CONFUSE: | ||
| 308 | if (record->event.pressed) SEND_STRING("(*_*)"); | ||
| 309 | else unregister_code16(keycode); | ||
| 310 | break; | ||
| 311 | case EMO_TEARS: | ||
| 312 | if (record->event.pressed) SEND_STRING("(T_T)"); | ||
| 313 | else unregister_code16(keycode); | ||
| 314 | break; | ||
| 315 | case EMO_NERVOUS: | ||
| 316 | if (record->event.pressed) SEND_STRING("(~_~;)"); | ||
| 317 | else unregister_code16(keycode); | ||
| 318 | break; | ||
| 319 | case EMO_JOY: | ||
| 320 | if (record->event.pressed) SEND_STRING("(^o^)"); | ||
| 321 | else unregister_code16(keycode); | ||
| 322 | break; | ||
| 323 | case EMO_SAD: | ||
| 324 | if (record->event.pressed) SEND_STRING(":'-("); | ||
| 325 | else unregister_code16(keycode); | ||
| 326 | break; | ||
| 327 | #endif // EMOTICON_ENABLE | ||
| 328 | |||
| 301 | default: | 329 | default: |
| 302 | if (record->event.pressed) { | 330 | if (record->event.pressed) { |
| 303 | #ifdef RGB_MATRIX_ENABLE | 331 | #ifdef RGB_MATRIX_ENABLE |
diff --git a/users/jonavin/jonavin.h b/users/jonavin/jonavin.h index efe0301af..feaf6b6a1 100644 --- a/users/jonavin/jonavin.h +++ b/users/jonavin/jonavin.h | |||
| @@ -38,13 +38,23 @@ enum custom_user_keycodes { | |||
| 38 | RGB_TOD, // Timeout idle time down | 38 | RGB_TOD, // Timeout idle time down |
| 39 | RGB_NITE, // Turns off all rgb but allow rgb indicators to work | 39 | RGB_NITE, // Turns off all rgb but allow rgb indicators to work |
| 40 | 40 | ||
| 41 | EMO_SHRUG, // `\_("/)_/` | ||
| 42 | EMO_CONFUSE, // (*_*) | ||
| 43 | EMO_SAD, // :'-( | ||
| 44 | EMO_NERVOUS, // (~_~;) | ||
| 45 | EMO_JOY, // (^o^) | ||
| 46 | EMO_TEARS, // (T_T) | ||
| 47 | |||
| 41 | NEW_SAFE_RANGE // new safe range for keymap level custom keycodes | 48 | NEW_SAFE_RANGE // new safe range for keymap level custom keycodes |
| 42 | }; | 49 | }; |
| 43 | 50 | ||
| 44 | #define KC_CAD LALT(LCTL(KC_DEL)) | 51 | #define KC_CAD LALT(LCTL(KC_DEL)) |
| 45 | #define KC_AF4 LALT(KC_F4) | 52 | #define KC_AF4 LALT(KC_F4) |
| 46 | #define KC_TASK LCTL(LSFT(KC_ESC)) | 53 | #define KC_TASK LCTL(LSFT(KC_ESC)) |
| 47 | 54 | #define CT_PGUP RCTL(KC_PGUP) | |
| 55 | #define CT_PGDN RCTL(KC_PGDN) | ||
| 56 | #define CT_HOME RCTL(KC_HOME) | ||
| 57 | #define CT_END RCTL(KC_END) | ||
| 48 | 58 | ||
| 49 | #ifdef TD_LSFT_CAPSLOCK_ENABLE | 59 | #ifdef TD_LSFT_CAPSLOCK_ENABLE |
| 50 | // Tap Dance Definitions | 60 | // Tap Dance Definitions |
diff --git a/users/jonavin/readme.md b/users/jonavin/readme.md index c029796b4..9fccb8c73 100644 --- a/users/jonavin/readme.md +++ b/users/jonavin/readme.md | |||
| @@ -14,62 +14,90 @@ 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/>. | 14 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | 15 | ||
| 16 | LAYERS: | 16 | LAYERS: |
| 17 | 0 = _BASE | 17 | - 0 = _BASE |
| 18 | 1 = _FN1 | 18 | - 1 = _FN1 |
| 19 | 2 = _LOWER | 19 | - 2 = _LOWER |
| 20 | 3 = _RAISE | 20 | - 3 = _RAISE |
| 21 | 21 | ||
| 22 | KEYCODES: | 22 | KEYCODES: |
| 23 | KC_CAD Ctrl-Alt-Del | 23 | - KC_CAD Ctrl-Alt-Del |
| 24 | KC_AF4 Alt-F4 | 24 | - KC_AF4 Alt-F4 |
| 25 | KC_TASK Windows Task Manager (Ctrl-Shift-Esc) | 25 | - KC_TASK Windows Task Manager (Ctrl-Shift-Esc) |
| 26 | LSFT_CAPSLOCK When LSFT_CAPSLOCK_ENABLE is defined, hold for Shift double tap for CAPSLOCK; otherwise, just Shift | 26 | - LSFT_CAPSLOCK When LSFT_CAPSLOCK_ENABLE is defined, hold for Shift double tap for CAPSLOCK; otherwise, just Shift |
| 27 | KC_00 double zero "00" | 27 | - KC_00 double zero "00" |
| 28 | KC_WINLCK toggles LGui/Win key lock | 28 | - KC_WINLCK toggles LGui/Win key lock |
| 29 | RGB_TOI Increase Timeout idle time threshold | 29 | - RGB_TOI Increase Timeout idle time threshold |
| 30 | RGB_TOD Decrease Timeout idle time threshold | 30 | - RGB_TOD Decrease Timeout idle time threshold |
| 31 | - CT_PGUP Ctrl-PgUp | ||
| 32 | - CT_PGDN Ctrl-PgDn | ||
| 33 | - CT_HOME Ctrl-HOme | ||
| 34 | - CT_END Ctrl-End | ||
| 35 | - | ||
| 36 | When EMOTICON_ENABLE = yes | ||
| 37 | - EMO_SHRUG `\_("/)_/` | ||
| 38 | - EMO_CONFUSE (*_*) | ||
| 39 | - EMD_TEARS (T_T) | ||
| 40 | - EMO_NERVOUS (~_~;) | ||
| 41 | - EMO_JOY (^o^) | ||
| 42 | |||
| 43 | |||
| 44 | AVAILABLE ENCODER ACTIONS: | ||
| 45 | - void encoder_action_volume(bool clockwise); | ||
| 46 | - void encoder_action_mediatrack(bool clockwise); | ||
| 47 | - void encoder_action_navword(bool clockwise); | ||
| 48 | - void encoder_action_navpage(bool clockwise); | ||
| 49 | - | ||
| 50 | - uint8_t get_selected_layer(void); | ||
| 51 | - void encoder_action_layerchange(bool clockwise); | ||
| 52 | - | ||
| 53 | - void encoder_action_rgb_speed(bool clockwise); | ||
| 54 | - void encoder_action_rgb_hue(bool clockwise); | ||
| 55 | - void encoder_action_rgb_saturation(bool clockwise); | ||
| 56 | - void encoder_action_rgb_brightness(bool clockwise); | ||
| 57 | - void encoder_action_rgb_mode(bool clockwise); | ||
| 58 | |||
| 31 | 59 | ||
| 32 | ENABLE FEATURES your keymap rules.mk | 60 | ENABLE FEATURES your keymap rules.mk |
| 61 | --------------------------------------- | ||
| 33 | 62 | ||
| 34 | STARTUP_NUMLOCK_ON = yes | 63 | STARTUP_NUMLOCK_ON = yes |
| 35 | turns on NUMLOCK by default | 64 | - turns on NUMLOCK by default |
| 36 | 65 | ||
| 37 | ENCODER_DEFAULTACTIONS_ENABLE = yes | 66 | ENCODER_DEFAULTACTIONS_ENABLE = yes |
| 38 | Enabled default encoder funtions | 67 | - Enabled default encoder funtions |
| 39 | When enabled, use this in the keymap for an additional encoder processing | 68 | - When enabled, use this in the keymap for an additional encoder processing |
| 40 | bool encoder_update_keymap(uint8_t index, bool clockwise) | 69 | - bool encoder_update_keymap(uint8_t index, bool clockwise) |
| 41 | |||
| 42 | OPTION: set ENCODER_DEFAULTACTIONS_INDEX to the encoder number if the encoder is not index 0 | ||
| 43 | 70 | ||
| 71 | OPTION: set ENCODER_DEFAULTACTIONS_INDEX to the encoder number if the encoder is not index 0 | ||
| 72 | |||
| 44 | TD_LSFT_CAPSLOCK_ENABLE = yes | 73 | TD_LSFT_CAPSLOCK_ENABLE = yes |
| 45 | This will enable double tap on Left Shift to toggle CAPSLOCK | 74 | - This will enable double tap on Left Shift to toggle CAPSLOCK |
| 46 | KC_LSFTCAPS to bind to left Shift to enable feature | 75 | - KC_LSFTCAPS to bind to left Shift to enable feature |
| 47 | KC_LSFTCAPSWIN does the same thing but will not turn on CAPS when Win Lkey is disabled | 76 | - KC_LSFTCAPSWIN does the same thing but will not turn on CAPS when Win Lkey is disabled |
| 48 | 77 | ||
| 49 | IDLE_TIMEOUT_ENABLE = yes | 78 | IDLE_TIMEOUT_ENABLE = yes |
| 50 | Enables Timer functionality; for RGB idle timeouts that can be changed dynamically | 79 | - Enables Timer functionality; for RGB idle timeouts that can be changed dynamically |
| 51 | When enabled, use this in the keymap for an additional matrix processing | 80 | - When enabled, use this in the keymap for an additional matrix processing: void matrix_scan_keymap(void) |
| 52 | void matrix_scan_keymap(void) | 81 | |
| 53 | 82 | - Functions: | |
| 54 | Functions: | 83 | - u16int_t get_timeout_threshold(void) // returns the current timeout threshold |
| 55 | u16int_t get_timeout_threshold(void) // returns the current timeout threshold | 84 | - void timeout_update_threshold(bool increase) // change threshold: true = increase, false = decrease |
| 56 | void timeout_update_threshold(bool increase) // change threshold: true = increase, false = decrease | 85 | - void timeout_reset_timer(void) // resets timer (put in process_record_user if you override it) |
| 57 | void timeout_reset_timer(void) // resets timer (put in process_record_user if you override it) | 86 | - void timeout_tick_timer(void) // registers time ticks (put in maxtrix_scan_user if you override it) |
| 58 | void timeout_tick_timer(void) // registers time ticks (put in maxtrix_scan_user if you override it) | ||
| 59 | 87 | ||
| 60 | Other Functions: | 88 | Other Functions: |
| 61 | - activate_numlock(bool turn_on) // true = turn on NUM LOCK, false = off | 89 | - activate_numlock(bool turn_on) // true = turn on NUM LOCK, false = off |
| 62 | 90 | ||
| 63 | KEYMAP LEVEL ADDITIONAL PROCESSING FUNCTIONS | 91 | KEYMAP LEVEL ADDITIONAL PROCESSING FUNCTIONS |
| 64 | bool process_record_keymap(uint16_t keycode, keyrecord_t *record) | 92 | - bool process_record_keymap(uint16_t keycode, keyrecord_t *record) |
| 65 | void keyboard_post_init_keymap(void) | 93 | - void keyboard_post_init_keymap(void) |
| 66 | 94 | ||
| 67 | LIST OF COMPATIBLE KEYMAPS | 95 | LIST OF COMPATIBLE KEYMAPS |
| 68 | - gmmk/pro/ansi | 96 | - gmmk/pro/ansi |
| 69 | - keebio/quefrency/rev3 | 97 | - keebio/quefrency/rev3 |
| 70 | - mechwild/mercutio | 98 | - mechwild/mercutio |
| 71 | - mechwild/murphpad | 99 | - mechwild/murphpad |
| 72 | - mechwild/OBE (*) | 100 | - mechwild/OBE |
| 73 | - nopunin10did/kastenwagen (*) | 101 | - nopunin10did/kastenwagen (*) |
| 74 | 102 | ||
| 75 | (*) coming soon | 103 | (*) coming soon |
diff --git a/users/jonavin/rules.mk b/users/jonavin/rules.mk index e2918d9e2..eb279f629 100644 --- a/users/jonavin/rules.mk +++ b/users/jonavin/rules.mk | |||
| @@ -14,3 +14,6 @@ endif | |||
| 14 | ifeq ($(strip $(COLEMAK_LAYER_ENABLE)), yes) | 14 | ifeq ($(strip $(COLEMAK_LAYER_ENABLE)), yes) |
| 15 | OPT_DEFS += -DCOLEMAK_LAYER_ENABLE | 15 | OPT_DEFS += -DCOLEMAK_LAYER_ENABLE |
| 16 | endif | 16 | endif |
| 17 | ifeq ($(strip $(EMOTICON_ENABLE)), yes) | ||
| 18 | OPT_DEFS += -DEMOTICON_ENABLE | ||
| 19 | endif | ||
