diff options
| -rw-r--r-- | keyboards/gmmk/pro/iso/keymaps/jonavin/config.h | 39 | ||||
| -rw-r--r-- | keyboards/gmmk/pro/iso/keymaps/jonavin/keymap.c | 191 | ||||
| -rw-r--r-- | keyboards/gmmk/pro/iso/keymaps/jonavin/readme.md | 53 | ||||
| -rw-r--r-- | keyboards/gmmk/pro/iso/keymaps/jonavin/rgb_matrix_map.h | 146 | ||||
| -rw-r--r-- | keyboards/gmmk/pro/iso/keymaps/jonavin/rules.mk | 12 |
5 files changed, 441 insertions, 0 deletions
diff --git a/keyboards/gmmk/pro/iso/keymaps/jonavin/config.h b/keyboards/gmmk/pro/iso/keymaps/jonavin/config.h new file mode 100644 index 000000000..fa7ebec7e --- /dev/null +++ b/keyboards/gmmk/pro/iso/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 RGB_MATRIX_ENABLE | ||
| 31 | # define RGB_MATRIX_STARTUP_MODE RGB_MATRIX_SOLID_COLOR | ||
| 32 | # define RGB_DISABLE_WHEN_USB_SUSPENDED | ||
| 33 | #endif | ||
| 34 | |||
| 35 | // add fifth layer for colemak -- set "COLEMAK_LAYER_ENABLE = yes" in rules.mk to enable | ||
| 36 | #if defined COLEMAK_LAYER_ENABLE | ||
| 37 | # define DYNAMIC_KEYMAP_LAYER_COUNT 5 | ||
| 38 | # define _COLEMAK 4 | ||
| 39 | #endif // COLEMAK_LAYER_ENABLE | ||
diff --git a/keyboards/gmmk/pro/iso/keymaps/jonavin/keymap.c b/keyboards/gmmk/pro/iso/keymaps/jonavin/keymap.c new file mode 100644 index 000000000..3164ecbf6 --- /dev/null +++ b/keyboards/gmmk/pro/iso/keymaps/jonavin/keymap.c | |||
| @@ -0,0 +1,191 @@ | |||
| 1 | /* Copyright 2021 Glorious, LLC <salman@pcgamingrace.com> | ||
| 2 | Copyright 2021 Jonavin | ||
| 3 | Copyright 2022 RustyBrakes (ISO conversion) | ||
| 4 | |||
| 5 | This program is free software: you can redistribute it and/or modify | ||
| 6 | it under the terms of the GNU General Public License as published by | ||
| 7 | the Free Software Foundation, either version 2 of the License, or | ||
| 8 | (at your option) any later version. | ||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 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 "rgb_matrix_map.h" | ||
| 19 | #include "jonavin.h" | ||
| 20 | |||
| 21 | |||
| 22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 23 | |||
| 24 | // ESC F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Ins Rotary(Mute) | ||
| 25 | // ~ 1 2 3 4 5 6 7 8 9 0 - (=) BackSpc Del | ||
| 26 | // Tab Q W E R T Y U I O P [ ] PgUp | ||
| 27 | // Caps A S D F G H J K L ; " # Enter PgDn | ||
| 28 | // Sh_L \ Z X C V B N M , . ? Sh_R Up End | ||
| 29 | // Ct_L Win_L Alt_L SPACE Alt_R FN Ct_R Left Down Right | ||
| 30 | |||
| 31 | |||
| 32 | [_BASE] = LAYOUT( | ||
| 33 | 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_INS, KC_MUTE, | ||
| 34 | KC_GRV, 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_BSPC, KC_DEL, | ||
| 35 | 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_PGUP, | ||
| 36 | TT(_LOWER), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, | ||
| 37 | KC_LSFTCAPSWIN, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 38 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN1),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 39 | ), | ||
| 40 | |||
| 41 | [_FN1] = LAYOUT( | ||
| 42 | _______, KC_MYCM, KC_WHOM, KC_CALC, KC_MSEL, KC_MPRV, KC_MNXT, KC_MPLY, KC_MSTP, KC_MUTE, KC_VOLD, KC_VOLU, _______, KC_CALC, _______, | ||
| 43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RGB_TOG, | ||
| 44 | _______, _______, RGB_VAI, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, _______, _______, _______, KC_HOME, | ||
| 45 | KC_CAPS, _______, RGB_VAD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_END, | ||
| 46 | _______, RESET, RGB_NITE,RGB_HUI, _______, _______, _______, KC_NLCK, _______, RGB_TOD, RGB_TOI, _______, _______, RGB_MOD, _______, | ||
| 47 | _______, KC_WINLCK, _______, _______, _______, _______, _______, RGB_SPD, RGB_RMOD, RGB_SPI | ||
| 48 | ), | ||
| 49 | |||
| 50 | [_LOWER] = LAYOUT( | ||
| 51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 52 | _______, _______, _______, _______, _______, _______, _______, KC_P7, KC_P8, KC_P9, KC_P0, KC_PMNS, KC_PPLS, _______, _______, | ||
| 53 | _______, KC_HOME, KC_UP, KC_END, KC_PGUP, _______, KC_TAB, KC_P4, KC_P5, KC_P6, KC_PDOT, _______, _______, KC_HOME, | ||
| 54 | _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, _______, _______, KC_P1, KC_P2, KC_P3, KC_NO, KC_PAST, _______, KC_PENT, KC_END, | ||
| 55 | _______, _______, KC_NO, KC_DEL, KC_INS, KC_NO, KC_NO, KC_NO, KC_P0, KC_00, KC_PDOT, KC_PSLS, _______, RCTL(KC_PGUP), _______, | ||
| 56 | _______, _______, _______, KC_BSPC, _______, _______, _______, RCTL(KC_LEFT), RCTL(KC_PGDN), RCTL(KC_RIGHT) | ||
| 57 | ), | ||
| 58 | |||
| 59 | #ifdef COLEMAK_LAYER_ENABLE | ||
| 60 | [_COLEMAK] = LAYOUT( | ||
| 61 | 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_INS, KC_MUTE, | ||
| 62 | KC_GRV, 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_BSPC, KC_DEL, | ||
| 63 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_PGUP, | ||
| 64 | TT(_LOWER), KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, | ||
| 65 | KC_LSFTCAPSWIN, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
| 66 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(_FN1),KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 67 | ), | ||
| 68 | #endif // COLEMAK_LAYER_ENABLE | ||
| 69 | }; | ||
| 70 | |||
| 71 | #if defined(ENCODER_ENABLE) && !defined(ENCODER_DEFAULTACTIONS_ENABLE) // Encoder Functionality when not using userspace defaults | ||
| 72 | void encoder_action_rgbhue(bool clockwise) { | ||
| 73 | if (clockwise) | ||
| 74 | rgblight_increase_hue_noeeprom(); | ||
| 75 | else | ||
| 76 | rgblight_decrease_hue_noeeprom(); | ||
| 77 | } | ||
| 78 | |||
| 79 | bool encoder_update_user(uint8_t index, bool clockwise) { | ||
| 80 | uint8_t mods_state = get_mods(); | ||
| 81 | if (mods_state & MOD_BIT(KC_LSFT) ) { // If you are holding L shift, encoder changes layers | ||
| 82 | encoder_action_layerchange(clockwise); | ||
| 83 | } else if (mods_state & MOD_BIT(KC_RSFT) ) { // If you are holding R shift, Page up/dn | ||
| 84 | unregister_mods(MOD_BIT(KC_RSFT)); | ||
| 85 | encoder_action_navpage(clockwise); | ||
| 86 | register_mods(MOD_BIT(KC_RSFT)); | ||
| 87 | } else if (mods_state & MOD_BIT(KC_LCTL)) { // if holding Left Ctrl, navigate next/prev word | ||
| 88 | encoder_action_navword(clockwise); | ||
| 89 | } else if (mods_state & MOD_BIT(KC_RCTL)) { // if holding Right Ctrl, change rgb hue/colour | ||
| 90 | encoder_action_rgbhue(clockwise); | ||
| 91 | } else if (mods_state & MOD_BIT(KC_LALT)) { // if holding Left Alt, change media next/prev track | ||
| 92 | encoder_action_mediatrack(clockwise); | ||
| 93 | } else { | ||
| 94 | switch(get_highest_layer(layer_state)) { | ||
| 95 | case _FN1: | ||
| 96 | #ifdef IDLE_TIMEOUT_ENABLE | ||
| 97 | timeout_update_threshold(clockwise); | ||
| 98 | #endif | ||
| 99 | break; | ||
| 100 | default: | ||
| 101 | encoder_action_volume(clockwise); // Otherwise it just changes volume | ||
| 102 | break; | ||
| 103 | } | ||
| 104 | } | ||
| 105 | return true; | ||
| 106 | } | ||
| 107 | #endif // ENCODER_ENABLE && !ENCODER_DEFAULTACTIONS_ENABLE | ||
| 108 | |||
| 109 | #ifdef RGB_MATRIX_ENABLE | ||
| 110 | // Capslock, Scroll lock and Numlock indicator on Left side lights. | ||
| 111 | void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { | ||
| 112 | if (get_rgb_nightmode()) rgb_matrix_set_color_all(RGB_OFF); | ||
| 113 | if (IS_HOST_LED_ON(USB_LED_SCROLL_LOCK)) { | ||
| 114 | rgb_matrix_set_color(LED_L1, RGB_GREEN); | ||
| 115 | rgb_matrix_set_color(LED_L2, RGB_GREEN); | ||
| 116 | } | ||
| 117 | |||
| 118 | #ifdef INVERT_NUMLOCK_INDICATOR | ||
| 119 | if (!IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // on if NUM lock is OFF | ||
| 120 | rgb_matrix_set_color(LED_L3, RGB_MAGENTA); | ||
| 121 | rgb_matrix_set_color(LED_L4, RGB_MAGENTA); | ||
| 122 | } | ||
| 123 | #else | ||
| 124 | if (IS_HOST_LED_ON(USB_LED_NUM_LOCK)) { // Normal, on if NUM lock is ON | ||
| 125 | rgb_matrix_set_color(LED_L3, RGB_MAGENTA); | ||
| 126 | rgb_matrix_set_color(LED_L4, RGB_MAGENTA); | ||
| 127 | } | ||
| 128 | #endif // INVERT_NUMLOCK_INDICATOR | ||
| 129 | |||
| 130 | if (IS_HOST_LED_ON(USB_LED_CAPS_LOCK)) { | ||
| 131 | rgb_matrix_set_color(LED_L5, RGB_RED); | ||
| 132 | rgb_matrix_set_color(LED_L6, RGB_RED); | ||
| 133 | rgb_matrix_set_color(LED_L7, RGB_RED); | ||
| 134 | } | ||
| 135 | if (keymap_config.no_gui) { | ||
| 136 | rgb_matrix_set_color(LED_LWIN, RGB_RED); //light up Win key when disabled | ||
| 137 | } | ||
| 138 | switch(get_highest_layer(layer_state)){ // special handling per layer | ||
| 139 | case _FN1: // on Fn layer select what the encoder does when pressed | ||
| 140 | rgb_matrix_set_color(LED_R2, RGB_RED); | ||
| 141 | rgb_matrix_set_color(LED_R3, RGB_RED); | ||
| 142 | rgb_matrix_set_color(LED_R4, RGB_RED); | ||
| 143 | rgb_matrix_set_color(LED_FN, RGB_RED); //FN key | ||
| 144 | |||
| 145 | // Add RGB Timeout Indicator -- shows 0 to 139 using F row and num row; larger numbers using 16bit code | ||
| 146 | uint16_t timeout_threshold = get_timeout_threshold(); | ||
| 147 | if (timeout_threshold <= 10) rgb_matrix_set_color(LED_LIST_FUNCROW[timeout_threshold], RGB_RED); | ||
| 148 | else if (timeout_threshold < 140) { | ||
| 149 | rgb_matrix_set_color(LED_LIST_FUNCROW[(timeout_threshold / 10)], RGB_RED); | ||
| 150 | rgb_matrix_set_color(LED_LIST_NUMROW[(timeout_threshold % 10)], RGB_RED); | ||
| 151 | } else { // >= 140 minutes, just show these 3 lights | ||
| 152 | rgb_matrix_set_color(LED_LIST_NUMROW[10], RGB_RED); | ||
| 153 | rgb_matrix_set_color(LED_LIST_NUMROW[11], RGB_RED); | ||
| 154 | rgb_matrix_set_color(LED_LIST_NUMROW[12], RGB_RED); | ||
| 155 | } | ||
| 156 | break; | ||
| 157 | case _LOWER: | ||
| 158 | for (uint8_t i=0; i<ARRAYSIZE(LED_LIST_NUMPAD); i++) { | ||
| 159 | rgb_matrix_set_color(LED_LIST_NUMPAD[i], RGB_MAGENTA); | ||
| 160 | } | ||
| 161 | rgb_matrix_set_color(LED_R4, RGB_MAGENTA); | ||
| 162 | rgb_matrix_set_color(LED_R5, RGB_MAGENTA); | ||
| 163 | rgb_matrix_set_color(LED_R6, RGB_MAGENTA); | ||
| 164 | break; | ||
| 165 | case _RAISE: | ||
| 166 | rgb_matrix_set_color(LED_R6, RGB_GREEN); | ||
| 167 | rgb_matrix_set_color(LED_R7, RGB_GREEN); | ||
| 168 | rgb_matrix_set_color(LED_R8, RGB_GREEN); | ||
| 169 | break; | ||
| 170 | #ifdef COLEMAK_LAYER_ENABLE | ||
| 171 | case _COLEMAK: | ||
| 172 | for (uint8_t i=0; i<ARRAYSIZE(LED_SIDE_RIGHT); i++) { | ||
| 173 | rgb_matrix_set_color(LED_SIDE_RIGHT[i], RGB_BLUE); | ||
| 174 | } | ||
| 175 | break; | ||
| 176 | #endif | ||
| 177 | default: | ||
| 178 | break; | ||
| 179 | } | ||
| 180 | } | ||
| 181 | #endif | ||
| 182 | |||
| 183 | |||
| 184 | void keyboard_post_init_keymap(void) { | ||
| 185 | // keyboard_post_init_user() moved to userspace | ||
| 186 | #ifdef RGB_MATRIX_ENABLE | ||
| 187 | rgb_matrix_mode(RGB_MATRIX_SOLID_COLOR); | ||
| 188 | rgb_matrix_set_color_all(RGB_NAUTILUS); // Default startup colour | ||
| 189 | activate_rgb_nightmode(false); // Set to true if you want to startup in nightmode, otherwise use Fn + Z to toggle | ||
| 190 | #endif | ||
| 191 | } | ||
diff --git a/keyboards/gmmk/pro/iso/keymaps/jonavin/readme.md b/keyboards/gmmk/pro/iso/keymaps/jonavin/readme.md new file mode 100644 index 000000000..f94a5eabb --- /dev/null +++ b/keyboards/gmmk/pro/iso/keymaps/jonavin/readme.md | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | # jonavin's GMMK Pro ISO layout | ||
| 2 | # Thanks to RustyBrakes for the keymap adjustments and ISO Layout testing | ||
| 3 | |||
| 4 | - Add Fn layer keys from Glorious Core mapping that's missing in the default qmk mapping | ||
| 5 | - Add PrtScr, Scroll Lock, Break, NumLock to Fn layer | ||
| 6 | - Implement Win key lock using Fn+Win like in Glorious Core firmware | ||
| 7 | - Layer 2 mod on Caps Lock with double-tap to switch to this layer, double tap to switch back | ||
| 8 | - Layer 2 provides arrows on WASD and additional nav keys + right hand numpad with 00; an be used for Alt Code entry | ||
| 9 | - Layer 2 left spacebar Backspace | ||
| 10 | - add double tap of Left Shift to toggle Caps Lock | ||
| 11 | - additional encoder functionality | ||
| 12 | - FN Layer - change rgb idle timeout | ||
| 13 | - holding Left shift, change layers | ||
| 14 | - holding right shift, Navigate page up/down | ||
| 15 | - holding Left Ctrl, navigate prev/next word | ||
| 16 | - holding Right Ctrl, changes RGB hue/colour | ||
| 17 | - holding Left Alt, change media prev/next track | ||
| 18 | - default is change volume | ||
| 19 | |||
| 20 | - LED/RGB Functionality | ||
| 21 | - RGB idle timeout (default 5 minutes) | ||
| 22 | - Can be changed in FN layer with < and > or encoder | ||
| 23 | - setting to zero disables timeout | ||
| 24 | - indicators in FN layer using RGB in FN and number rows to show the timeout in minutes | ||
| 25 | - LED address location map as enum definition in rgb_matrix_map.h | ||
| 26 | - LED group lists for arrows, numpad, F row, num row, left and right side LEDs | ||
| 27 | - default startup in single mode with default colour | ||
| 28 | - Capslock, Scroll Lock, and Num Lock (not set) indicator on left side LED | ||
| 29 | - Layer indicator on right side LED | ||
| 30 | - Fn key light up red when Fn layer activate | ||
| 31 | - Win Key light up red when Win Lock mode enabled | ||
| 32 | - Layer 2 activation lights up Numpad area | ||
| 33 | - Fn + Z to turn off all RGB lights except rgb indicators; press again to toggle | ||
| 34 | |||
| 35 | rules.mk OPTIONS - Active features from userspace | ||
| 36 | STARTUP_NUMLOCK_ON = yes | ||
| 37 | - turns on NUMLOCK by default | ||
| 38 | |||
| 39 | ENCODER_DEFAULTACTIONS_ENABLE = yes | ||
| 40 | - Enabled default encoder funtions | ||
| 41 | |||
| 42 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
| 43 | - This will enable double tap on Left Shift to toggle CAPSLOCK when using KC_LSFTCAPS | ||
| 44 | |||
| 45 | IDLE_TIMEOUT_ENABLE = yes | ||
| 46 | - Enables Timer functionality; for RGB idle timeouts that can be changed dynamically | ||
| 47 | |||
| 48 | INVERT_NUMLOCK_INDICATOR | ||
| 49 | - inverts the Num lock indicator, LED is on when num lokc is off | ||
| 50 | |||
| 51 | COLEMAK_LAYER_ENABLE = yes | ||
| 52 | - Enabled optional 5th layer for COLEMAK layout | ||
| 53 | - Use Shift and encoder to enter 5th layer, right led indicator lights up BLUE | ||
diff --git a/keyboards/gmmk/pro/iso/keymaps/jonavin/rgb_matrix_map.h b/keyboards/gmmk/pro/iso/keymaps/jonavin/rgb_matrix_map.h new file mode 100644 index 000000000..1aa31f2a0 --- /dev/null +++ b/keyboards/gmmk/pro/iso/keymaps/jonavin/rgb_matrix_map.h | |||
| @@ -0,0 +1,146 @@ | |||
| 1 | /* Copyright 2021 Jonavin Eng | ||
| 2 | * Copyright 2022 RustyBrakes (ISO conversion) | ||
| 3 | * | ||
| 4 | * This program is free software: you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation, either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, | ||
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | * GNU General Public License for more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License | ||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifdef RGB_MATRIX_ENABLE | ||
| 19 | |||
| 20 | // Custom RGB Colours | ||
| 21 | #define RGB_GODSPEED 0x00, 0xE4, 0xFF // colour for matching keycaps | ||
| 22 | #define RGB_NAUTILUS 0x00, 0xA4, 0xA9 // Naurilus Font colours | ||
| 23 | |||
| 24 | // RGB LED locations | ||
| 25 | enum led_location_map { | ||
| 26 | LED_ESC, // 0, ESC, k13 | ||
| 27 | LED_GRV, // 1, `, k16 | ||
| 28 | LEB_TAB, // 2, Tab, k11 | ||
| 29 | LED_CAPS, // 3, Caps, k21 | ||
| 30 | LED_LSFT, // 4, Sh_L, k00 | ||
| 31 | LED_LCTL, // 5, Ct_L, k06 | ||
| 32 | LED_F1, // 6, F1, k26 | ||
| 33 | LED_1, // 7, 1, k17 | ||
| 34 | LED_Q, // 8, Q, k10 | ||
| 35 | LED_A, // 9, A, k12 | ||
| 36 | LED_Z, // 10, Z, k14 | ||
| 37 | LED_LWIN, // 11, Win_L, k90 | ||
| 38 | LED_F2, // 12, F2, k36 | ||
| 39 | LED_2, // 13, 2, k27 | ||
| 40 | LED_W, // 14, W, k20 | ||
| 41 | LED_S, // 15, S, k22 | ||
| 42 | LED_X, // 16, X, k24 | ||
| 43 | LED_LALT, // 17, Alt_L, k93 | ||
| 44 | LED_F3, // 18, F3, k31 | ||
| 45 | LED_3, // 19, 3, k37 | ||
| 46 | LED_E, // 20, E, k30 | ||
| 47 | LED_D, // 21, D, k32 | ||
| 48 | LED_C, // 22, C, k34 | ||
| 49 | LED_F4, // 23, F4, k33 | ||
| 50 | LED_4, // 24, 4, k47 | ||
| 51 | LED_R, // 25, R, k40 | ||
| 52 | LED_F, // 26, F, k42 | ||
| 53 | LED_V, // 27, V, k44 | ||
| 54 | LED_F5, // 28, F5, k07 | ||
| 55 | LED_5, // 29, 5, k46 | ||
| 56 | LED_T, // 30, T, k41 | ||
| 57 | LED_G, // 31, G, k43 | ||
| 58 | LED_B, // 32, B, k45 | ||
| 59 | LED_SPC, // 33, SPACE, k94 | ||
| 60 | LED_F6, // 34, F6, k63 | ||
| 61 | LED_6, // 35, 6, k56 | ||
| 62 | LED_Y, // 36, Y, k51 | ||
| 63 | LED_H, // 37, H, k53 | ||
| 64 | LED_N, // 38, N, k55 | ||
| 65 | LED_F7, // 39, F7, k71 | ||
| 66 | LED_7, // 40, 7, k57 | ||
| 67 | LED_U, // 41, U, k50 | ||
| 68 | LED_J, // 42, J, k52 | ||
| 69 | LED_M, // 43, M, k54 | ||
| 70 | LED_F8, // 44, F8, k76 | ||
| 71 | LED_8, // 45, 8, k67 | ||
| 72 | LED_I, // 46, I, k60 | ||
| 73 | LED_K, // 47, K, k62 | ||
| 74 | LED_COMM, // 48, ,, k64 | ||
| 75 | LED_RALT, // 49, Alt_R, k95 | ||
| 76 | LED_F9, // 50, F9, ka6 | ||
| 77 | LED_9, // 51, 9, k77 | ||
| 78 | LED_O, // 52, O, k70 | ||
| 79 | LED_L, // 53, L, k72 | ||
| 80 | LED_DOT, // 54, ., k74 | ||
| 81 | LED_FN, // 55, FN, k92 | ||
| 82 | LED_F10, // 56, F10, ka7 | ||
| 83 | LED_0, // 57, 0, k87 | ||
| 84 | LED_P, // 58, P, k80 | ||
| 85 | LED_SCLN, // 59, ;, k82 | ||
| 86 | LED_SLSH, // 60, /, k85 | ||
| 87 | LED_F11, // 61, F11, ka3 | ||
| 88 | LED_MINS, // 62, -, k86 | ||
| 89 | LED_LBRC, // 63, [, k81 | ||
| 90 | LED_QUOT, // 64, ", k83 | ||
| 91 | LED_RCTL, // 65, Ct_R, k04 | ||
| 92 | LED_F12, // 66, F12, ka5 | ||
| 93 | LED_BSLS, // 67, \, k23 | ||
| 94 | LED_L1, // 68, LED, l01 | ||
| 95 | LED_R1, // 69, LED, l11 | ||
| 96 | LED_PRT, // 70, Prt, k97 | ||
| 97 | LED_L2, // 71, LED, l02 | ||
| 98 | LED_R2, // 72, LED, l12 | ||
| 99 | LED_DEL, // 73, Del, k65 | ||
| 100 | LED_L3, // 74, LED, l03 | ||
| 101 | LED_R3, // 75, LED, l13 | ||
| 102 | LED_PGUP, // 76, PgUp, k15 | ||
| 103 | LED_L4, // 77, LED, l04 | ||
| 104 | LED_R4, // 78, LED, l14 | ||
| 105 | LED_EQL, // 79, =, k66 | ||
| 106 | LED_RIGHT, // 80, Right, k05 | ||
| 107 | LED_L5, // 81, LED, l05 | ||
| 108 | LED_R5, // 82, LED, l15 | ||
| 109 | LED_END, // 83, End, k75 | ||
| 110 | LED_L6, // 84, LED, l06 | ||
| 111 | LED_R6, // 85, LED, l16 | ||
| 112 | LED_BSPC, // 86, BSpc, ka1 | ||
| 113 | LED_PGDN, // 87, PgDn, k25 | ||
| 114 | LED_L7, // 88, LED, l07 | ||
| 115 | LED_R7, // 89, LED, l17 | ||
| 116 | LED_RBRC, // 90, ], k61 | ||
| 117 | LED_RSFT, // 91, Sh_R, k91 | ||
| 118 | LED_L8, // 92, LED, l08 | ||
| 119 | LED_R8, // 93, LED, l18 | ||
| 120 | LED_UP, // 94, Up, k35 | ||
| 121 | LED_HASH, // 95, #, k84 | ||
| 122 | LED_LEFT, // 96, Left, k03 | ||
| 123 | LED_ENT, // 97, Enter, ka4 | ||
| 124 | LED_DOWN // 98, Down, k73 | ||
| 125 | }; | ||
| 126 | |||
| 127 | const uint8_t LED_LIST_WASD[] = { LED_W, LED_A, LED_S, LED_D }; | ||
| 128 | |||
| 129 | const uint8_t LED_LIST_ARROWS[] = { LED_LEFT, LED_RIGHT, LED_UP, LED_DOWN }; | ||
| 130 | |||
| 131 | const uint8_t LED_LIST_FUNCROW[] = { LED_ESC, LED_F1, LED_F2, LED_F3, LED_F4, LED_F5, LED_F6, LED_F7, LED_F8, LED_F9, LED_F10, LED_F11, LED_F12, LED_PRT}; | ||
| 132 | |||
| 133 | const uint8_t LED_LIST_NUMROW[] = { LED_GRV, LED_1, LED_2, LED_3, LED_4, LED_5, LED_6, LED_7, LED_8, LED_9, LED_0, LED_MINS, LED_EQL, LED_BSPC, LED_DEL}; | ||
| 134 | |||
| 135 | const uint8_t LED_LIST_NUMPAD[] = { | ||
| 136 | LED_7, LED_8, LED_9, | ||
| 137 | LED_U, LED_I, LED_O, | ||
| 138 | LED_J, LED_K, LED_L, | ||
| 139 | LED_M, LED_COMM, LED_DOT | ||
| 140 | }; | ||
| 141 | |||
| 142 | const uint8_t LED_SIDE_LEFT[] = { LED_L1, LED_L2, LED_L3, LED_L4, LED_L5, LED_L6, LED_L7, LED_L8}; | ||
| 143 | |||
| 144 | const uint8_t LED_SIDE_RIGHT[] = { LED_R1, LED_R2, LED_R3, LED_R4, LED_R5, LED_R6, LED_R7, LED_R8}; | ||
| 145 | |||
| 146 | #endif | ||
diff --git a/keyboards/gmmk/pro/iso/keymaps/jonavin/rules.mk b/keyboards/gmmk/pro/iso/keymaps/jonavin/rules.mk new file mode 100644 index 000000000..1ffc2058a --- /dev/null +++ b/keyboards/gmmk/pro/iso/keymaps/jonavin/rules.mk | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | MOUSEKEY_ENABLE = no | ||
| 3 | TAP_DANCE_ENABLE = yes | ||
| 4 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
| 5 | |||
| 6 | TD_LSFT_CAPSLOCK_ENABLE = yes | ||
| 7 | IDLE_TIMEOUT_ENABLE = yes | ||
| 8 | STARTUP_NUMLOCK_ON = yes | ||
| 9 | ENCODER_DEFAULTACTIONS_ENABLE = no | ||
| 10 | |||
| 11 | COLEMAK_LAYER_ENABLE = yes #Enable Colemak layer / set to no to disable | ||
| 12 | INVERT_NUMLOCK_INDICATOR = yes | ||
