diff options
Diffstat (limited to 'keyboards/iris/keymaps')
| -rw-r--r-- | keyboards/iris/keymaps/drashna/config.h | 11 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/drashna/keymap.c | 108 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/drashna/rules.mk | 7 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/drashna_old/config.h | 70 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/drashna_old/keymap.c | 89 | ||||
| -rw-r--r-- | keyboards/iris/keymaps/drashna_old/rules.mk | 17 |
6 files changed, 208 insertions, 94 deletions
diff --git a/keyboards/iris/keymaps/drashna/config.h b/keyboards/iris/keymaps/drashna/config.h index bfdd0022b..d2c112923 100644 --- a/keyboards/iris/keymaps/drashna/config.h +++ b/keyboards/iris/keymaps/drashna/config.h | |||
| @@ -33,7 +33,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 33 | 33 | ||
| 34 | #ifdef RGBLIGHT_ENABLE | 34 | #ifdef RGBLIGHT_ENABLE |
| 35 | #undef RGBLED_NUM | 35 | #undef RGBLED_NUM |
| 36 | #define RGBLED_NUM 16 // Number of LEDs | 36 | #define RGBLED_NUM 18 // Number of LEDs |
| 37 | #define RGBLIGHT_ANIMATIONS | 37 | #define RGBLIGHT_ANIMATIONS |
| 38 | #define RGBLIGHT_HUE_STEP 12 | 38 | #define RGBLIGHT_HUE_STEP 12 |
| 39 | #define RGBLIGHT_SAT_STEP 12 | 39 | #define RGBLIGHT_SAT_STEP 12 |
| @@ -58,4 +58,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 58 | #define PRODUCT Drashna Hacked Iris Rev.2 | 58 | #define PRODUCT Drashna Hacked Iris Rev.2 |
| 59 | #endif | 59 | #endif |
| 60 | 60 | ||
| 61 | #define SHFT_LED1 6 | ||
| 62 | #define SHFT_LED2 11 | ||
| 63 | |||
| 64 | #define CTRL_LED1 7 | ||
| 65 | #define CTRL_LED2 10 | ||
| 66 | |||
| 67 | #define GUI_LED1 8 | ||
| 68 | #define GUI_LED2 9 | ||
| 69 | |||
| 61 | #endif | 70 | #endif |
diff --git a/keyboards/iris/keymaps/drashna/keymap.c b/keyboards/iris/keymaps/drashna/keymap.c index b24e5fe53..bc3cd38ad 100644 --- a/keyboards/iris/keymaps/drashna/keymap.c +++ b/keyboards/iris/keymaps/drashna/keymap.c | |||
| @@ -2,15 +2,6 @@ | |||
| 2 | #include QMK_KEYBOARD_H | 2 | #include QMK_KEYBOARD_H |
| 3 | #include "drashna.h" | 3 | #include "drashna.h" |
| 4 | 4 | ||
| 5 | #ifdef INDICATOR_LIGHTS | ||
| 6 | extern userspace_config_t userspace_config; | ||
| 7 | |||
| 8 | uint8_t last_mod; | ||
| 9 | uint8_t last_led; | ||
| 10 | uint8_t last_osm; | ||
| 11 | bool has_mods_changed = false; | ||
| 12 | #endif | ||
| 13 | |||
| 14 | #define KC_ALAP ALT_T(KC_APP) | 5 | #define KC_ALAP ALT_T(KC_APP) |
| 15 | #define KC_OSLG OSM(MOD_LGUI) | 6 | #define KC_OSLG OSM(MOD_LGUI) |
| 16 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| @@ -55,7 +46,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 55 | 46 | ||
| 56 | [_LOWER] = LAYOUT_wrapper( | 47 | [_LOWER] = LAYOUT_wrapper( |
| 57 | _______, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, _______, | 48 | _______, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, _______, |
| 58 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 49 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, |
| 59 | _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | 50 | _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, |
| 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, | 51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, |
| 61 | _______, _______, _______, _______, _______, _______ | 52 | _______, _______, _______, _______, _______, _______ |
| @@ -63,7 +54,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 63 | 54 | ||
| 64 | [_RAISE] = LAYOUT_wrapper( | 55 | [_RAISE] = LAYOUT_wrapper( |
| 65 | _______, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, _______, | 56 | _______, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, _______, |
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 57 | KC_GRV, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, _______, |
| 67 | _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | 58 | _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, |
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, | 59 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, |
| 69 | _______, _______, _______, _______, _______, _______ | 60 | _______, _______, _______, _______, _______, _______ |
| @@ -71,93 +62,28 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 71 | 62 | ||
| 72 | [_ADJUST] = LAYOUT_wrapper( | 63 | [_ADJUST] = LAYOUT_wrapper( |
| 73 | KC_MAKE, _______, _______, _______, _______, _______, KC_SEC1, KC_SEC2, KC_SEC3, KC_SEC4, KC_SEC5, KC_RST, | 64 | KC_MAKE, _______, _______, _______, _______, _______, KC_SEC1, KC_SEC2, KC_SEC3, KC_SEC4, KC_SEC5, KC_RST, |
| 74 | VRSN, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_TOG, _______, _______, _______, _______, _______, EPRM, | 65 | VRSN, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_TOG, KC_NUKE, _______, _______, _______, _______, EPRM, |
| 75 | _______, _______, CK_TOGG, AU_ON, AU_OFF, AG_NORM, AG_SWAP, KC_QWERTY, KC_COLEMAK, KC_DVORAK, KC_WORKMAN, _______, | 66 | _______, _______, CK_TOGG, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, WORKMAN, TG(_MODS), |
| 76 | TG(_MODS),RGB_SMOD,RGB_HUD,RGB_SAD, RGB_VAD, KC_RGB_T,_______, _______, MG_NKRO, KC_MUTE, KC_VOLD, KC_VOLU, KC_MNXT, KC_MPLY, | 67 | _______, RGB_SMOD,RGB_HUD, RGB_SAD, RGB_VAD, KC_RGB_T,_______, _______, MG_NKRO, KC_MUTE, KC_VOLD, KC_VOLU, KC_MNXT, KC_MPLY, |
| 77 | _______, _______, _______, _______, _______, _______ | 68 | _______, _______, _______, _______, _______, _______ |
| 78 | ) | 69 | ) |
| 79 | 70 | ||
| 80 | }; | 71 | }; |
| 81 | 72 | ||
| 82 | 73 | ||
| 83 | void matrix_init_keymap(void) { | 74 | bool indicator_is_this_led_used(uint8_t index) { |
| 75 | switch (index) { | ||
| 84 | #ifdef INDICATOR_LIGHTS | 76 | #ifdef INDICATOR_LIGHTS |
| 85 | last_mod = get_mods(); | 77 | case SHFT_LED1: |
| 86 | last_led = host_keyboard_leds(); | 78 | case SHFT_LED2: |
| 87 | last_osm =get_oneshot_mods(); | 79 | case CTRL_LED1: |
| 80 | case CTRL_LED2: | ||
| 81 | case GUI_LED1: | ||
| 82 | case GUI_LED2: | ||
| 83 | return true; | ||
| 84 | break; | ||
| 88 | #endif | 85 | #endif |
| 89 | } | 86 | default: |
| 90 | 87 | return false; | |
| 91 | uint32_t layer_state_set_keymap (uint32_t state) { | ||
| 92 | #ifdef INDICATOR_LIGHTS | ||
| 93 | uint8_t modifiders = get_mods(); | ||
| 94 | uint8_t led_usb_state = host_keyboard_leds(); | ||
| 95 | uint8_t one_shot = get_oneshot_mods(); | ||
| 96 | |||
| 97 | |||
| 98 | if (modifiders & MODS_SHIFT_MASK || led_usb_state & (1<<USB_LED_CAPS_LOCK) || one_shot & MODS_SHIFT_MASK) { | ||
| 99 | rgblight_sethsv_at(0, 255, 255, 5); | ||
| 100 | rgblight_sethsv_at(0, 255, 255, 10); | ||
| 101 | } | ||
| 102 | if (modifiders & MODS_CTRL_MASK || one_shot & MODS_CTRL_MASK) { | ||
| 103 | rgblight_sethsv_at(51, 255, 255, 6); | ||
| 104 | rgblight_sethsv_at(51, 255, 255, 9); | ||
| 105 | } | ||
| 106 | if (modifiders & MODS_ALT_MASK || one_shot & MODS_ALT_MASK) { | ||
| 107 | rgblight_sethsv_at(120, 255, 255, 7); | ||
| 108 | rgblight_sethsv_at(120, 255, 255, 8); | ||
| 109 | } | 88 | } |
| 110 | #endif | ||
| 111 | |||
| 112 | return state; | ||
| 113 | } | ||
| 114 | |||
| 115 | |||
| 116 | void matrix_scan_keymap (void) { | ||
| 117 | |||
| 118 | #ifdef INDICATOR_LIGHTS | ||
| 119 | uint8_t current_mod = get_mods(); | ||
| 120 | uint8_t current_led = host_keyboard_leds(); | ||
| 121 | uint8_t current_osm =get_oneshot_mods(); | ||
| 122 | |||
| 123 | if (last_mod == current_mod) { | ||
| 124 | last_mod = current_mod; | ||
| 125 | has_mods_changed = true; | ||
| 126 | } | ||
| 127 | if (last_led == current_led) { | ||
| 128 | last_led = current_led; | ||
| 129 | has_mods_changed = true; | ||
| 130 | } | ||
| 131 | if (last_osm == current_osm) { | ||
| 132 | last_osm = current_osm; | ||
| 133 | has_mods_changed = true; | ||
| 134 | } | ||
| 135 | |||
| 136 | |||
| 137 | if (userspace_config.rgb_layer_change && has_mods_changed && biton32(layer_state) == 0) { | ||
| 138 | if (current_mod & MODS_SHIFT_MASK || current_led & (1<<USB_LED_CAPS_LOCK) || current_osm & MODS_SHIFT_MASK) { | ||
| 139 | rgblight_sethsv_at(0, 255, 255, 5); | ||
| 140 | rgblight_sethsv_at(0, 255, 255, 10); | ||
| 141 | } else { | ||
| 142 | rgblight_sethsv_default_helper(5); | ||
| 143 | rgblight_sethsv_default_helper(10); | ||
| 144 | } | ||
| 145 | if (current_mod & MODS_CTRL_MASK || current_osm & MODS_CTRL_MASK) { | ||
| 146 | rgblight_sethsv_at(51, 255, 255, 6); | ||
| 147 | rgblight_sethsv_at(51, 255, 255, 9); | ||
| 148 | } else { | ||
| 149 | rgblight_sethsv_default_helper(6); | ||
| 150 | rgblight_sethsv_default_helper(9); | ||
| 151 | } | ||
| 152 | if (current_mod & MODS_GUI_MASK || current_osm & MODS_GUI_MASK) { | ||
| 153 | rgblight_sethsv_at(120, 255, 255, 7); | ||
| 154 | rgblight_sethsv_at(120, 255, 255, 8); | ||
| 155 | } else { | ||
| 156 | rgblight_sethsv_default_helper(7); | ||
| 157 | rgblight_sethsv_default_helper(8); | ||
| 158 | |||
| 159 | } | ||
| 160 | } | ||
| 161 | #endif | ||
| 162 | |||
| 163 | } | 89 | } |
diff --git a/keyboards/iris/keymaps/drashna/rules.mk b/keyboards/iris/keymaps/drashna/rules.mk index 2608985c6..1b2604239 100644 --- a/keyboards/iris/keymaps/drashna/rules.mk +++ b/keyboards/iris/keymaps/drashna/rules.mk | |||
| @@ -7,6 +7,9 @@ TAP_DANCE_ENABLE = no | |||
| 7 | RGBLIGHT_ENABLE = yes | 7 | RGBLIGHT_ENABLE = yes |
| 8 | AUDIO_ENABLE = yes | 8 | AUDIO_ENABLE = yes |
| 9 | NKRO_ENABLE = yes | 9 | NKRO_ENABLE = yes |
| 10 | BACKLIGHT_ENABLE = no | 10 | BACKLIGHT_ENABLE = no |
| 11 | SWAP_HANDS_ENABLE = yes | 11 | SWAP_HANDS_ENABLE = no |
| 12 | |||
| 12 | INDICATOR_LIGHTS = yes | 13 | INDICATOR_LIGHTS = yes |
| 14 | MACROS_ENABLED = no | ||
| 15 | RGBLIGHT_TWINKLE = yes | ||
diff --git a/keyboards/iris/keymaps/drashna_old/config.h b/keyboards/iris/keymaps/drashna_old/config.h new file mode 100644 index 000000000..4eec67148 --- /dev/null +++ b/keyboards/iris/keymaps/drashna_old/config.h | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@keeb.io> | ||
| 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 | #ifndef CONFIG_USER_H | ||
| 19 | #define CONFIG_USER_H | ||
| 20 | |||
| 21 | #include "config_common.h" | ||
| 22 | |||
| 23 | /* Use I2C or Serial, not both */ | ||
| 24 | |||
| 25 | #define USE_SERIAL | ||
| 26 | #undef USE_I2C | ||
| 27 | |||
| 28 | /* Select hand configuration */ | ||
| 29 | |||
| 30 | // #define MASTER_LEFT | ||
| 31 | // #define MASTER_RIGHT | ||
| 32 | #define EE_HANDS | ||
| 33 | |||
| 34 | #ifdef RGBLIGHT_ENABLE | ||
| 35 | #undef RGBLED_NUM | ||
| 36 | #define RGBLED_NUM 16 // Number of LEDs | ||
| 37 | #define RGBLIGHT_ANIMATIONS | ||
| 38 | #define RGBLIGHT_HUE_STEP 12 | ||
| 39 | #define RGBLIGHT_SAT_STEP 12 | ||
| 40 | #define RGBLIGHT_VAL_STEP 12 | ||
| 41 | #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2 | ||
| 42 | #define RGBLIGHT_EFFECT_SNAKE_LENGTH 2 | ||
| 43 | #define RGBLIGHT_EFFECT_BREATHE_CENTER 1 | ||
| 44 | |||
| 45 | #define RGBLIGHT_LIMIT_VAL 225 | ||
| 46 | #endif // RGBLIGHT_ENABLE | ||
| 47 | |||
| 48 | #ifdef AUDIO_ENABLE | ||
| 49 | #define C6_AUDIO | ||
| 50 | #ifdef RGBLIGHT_ENABLE | ||
| 51 | #define NO_MUSIC_MODE | ||
| 52 | #endif //RGBLIGHT_ENABLE | ||
| 53 | #endif //AUDIO_ENABLE | ||
| 54 | |||
| 55 | |||
| 56 | #undef PRODUCT | ||
| 57 | #ifdef KEYBOARD_iris_rev2 | ||
| 58 | #define PRODUCT Drashna Hacked Iris Rev.2 | ||
| 59 | #endif | ||
| 60 | |||
| 61 | #define SHFT_LED1 5 | ||
| 62 | #define SHFT_LED2 10 | ||
| 63 | |||
| 64 | #define CTRL_LED1 6 | ||
| 65 | #define CTRL_LED2 9 | ||
| 66 | |||
| 67 | #define GUI_LED1 7 | ||
| 68 | #define GUI_LED2 8 | ||
| 69 | |||
| 70 | #endif | ||
diff --git a/keyboards/iris/keymaps/drashna_old/keymap.c b/keyboards/iris/keymaps/drashna_old/keymap.c new file mode 100644 index 000000000..bc3cd38ad --- /dev/null +++ b/keyboards/iris/keymaps/drashna_old/keymap.c | |||
| @@ -0,0 +1,89 @@ | |||
| 1 | |||
| 2 | #include QMK_KEYBOARD_H | ||
| 3 | #include "drashna.h" | ||
| 4 | |||
| 5 | #define KC_ALAP ALT_T(KC_APP) | ||
| 6 | #define KC_OSLG OSM(MOD_LGUI) | ||
| 7 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 8 | |||
| 9 | [_QWERTY] = LAYOUT_wrapper( | ||
| 10 | KC_ESC, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_MINS, | ||
| 11 | KC_TAB , _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, KC_BSLS, | ||
| 12 | KC_CCCV, _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, KC_QUOT, | ||
| 13 | KC_MLSF, _________________QWERTY_L3_________________, KC_ALAP, KC_OSLG, _________________QWERTY_R3_________________, KC_MRSF, | ||
| 14 | LT(_LOWER,KC_GRV), KC_SPC, KC_BSPC, KC_DEL, KC_ENT, RAISE | ||
| 15 | ), | ||
| 16 | [_COLEMAK] = LAYOUT_wrapper( | ||
| 17 | KC_ESC , ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_MINS, | ||
| 18 | KC_TAB , _________________COLEMAK_L1________________, _________________COLEMAK_R1________________, KC_BSLS, | ||
| 19 | KC_CCCV, _________________COLEMAK_L2________________, _________________COLEMAK_R2________________, KC_QUOT, | ||
| 20 | KC_MLSF, _________________COLEMAK_L3________________, KC_ALAP, KC_OSLG, _________________COLEMAK_R3________________, KC_MRSF, | ||
| 21 | LT(_LOWER,KC_GRV), KC_SPC, KC_BSPC, KC_DEL, KC_ENT, RAISE | ||
| 22 | ), | ||
| 23 | [_DVORAK] = LAYOUT_wrapper( | ||
| 24 | KC_ESC, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_MINS, | ||
| 25 | KC_TAB , _________________DVORAK_L1_________________, _________________DVORAK_R1_________________, KC_BSLS, | ||
| 26 | KC_CCCV, _________________DVORAK_L2_________________, _________________DVORAK_R2_________________, KC_QUOT, | ||
| 27 | KC_MLSF, _________________DVORAK_L3_________________, KC_ALAP, KC_OSLG, _________________DVORAK_R3_________________, KC_MRSF, | ||
| 28 | LT(_LOWER,KC_GRV), KC_SPC, KC_BSPC, KC_DEL, KC_ENT, RAISE | ||
| 29 | ), | ||
| 30 | [_WORKMAN] = LAYOUT_wrapper( | ||
| 31 | KC_ESC, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, KC_MINS, | ||
| 32 | KC_TAB , _________________WORKMAN_L1________________, _________________WORKMAN_R1________________, KC_BSLS, | ||
| 33 | KC_CCCV, _________________WORKMAN_L2________________, _________________WORKMAN_R2________________, KC_QUOT, | ||
| 34 | KC_MLSF, _________________WORKMAN_L3________________, KC_ALAP, KC_OSLG, _________________WORKMAN_R3________________, KC_MRSF, | ||
| 35 | LT(_LOWER,KC_GRV), KC_SPC, KC_BSPC, KC_DEL, KC_ENT, RAISE | ||
| 36 | ), | ||
| 37 | |||
| 38 | [_MODS] = LAYOUT_wrapper( | ||
| 39 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 40 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 41 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 42 | KC_LSFT, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_RSFT, | ||
| 43 | _______, _______, _______, _______, _______, _______ | ||
| 44 | ), | ||
| 45 | |||
| 46 | |||
| 47 | [_LOWER] = LAYOUT_wrapper( | ||
| 48 | _______, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, _______, | ||
| 49 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, | ||
| 50 | _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, | ||
| 52 | _______, _______, _______, _______, _______, _______ | ||
| 53 | ), | ||
| 54 | |||
| 55 | [_RAISE] = LAYOUT_wrapper( | ||
| 56 | _______, _________________FUNC_LEFT_________________, _________________FUNC_RIGHT________________, _______, | ||
| 57 | KC_GRV, ________________NUMBER_LEFT________________, ________________NUMBER_RIGHT_______________, _______, | ||
| 58 | _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 59 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, | ||
| 60 | _______, _______, _______, _______, _______, _______ | ||
| 61 | ), | ||
| 62 | |||
| 63 | [_ADJUST] = LAYOUT_wrapper( | ||
| 64 | KC_MAKE, _______, _______, _______, _______, _______, KC_SEC1, KC_SEC2, KC_SEC3, KC_SEC4, KC_SEC5, KC_RST, | ||
| 65 | VRSN, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_TOG, KC_NUKE, _______, _______, _______, _______, EPRM, | ||
| 66 | _______, _______, CK_TOGG, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, WORKMAN, TG(_MODS), | ||
| 67 | _______, RGB_SMOD,RGB_HUD, RGB_SAD, RGB_VAD, KC_RGB_T,_______, _______, MG_NKRO, KC_MUTE, KC_VOLD, KC_VOLU, KC_MNXT, KC_MPLY, | ||
| 68 | _______, _______, _______, _______, _______, _______ | ||
| 69 | ) | ||
| 70 | |||
| 71 | }; | ||
| 72 | |||
| 73 | |||
| 74 | bool indicator_is_this_led_used(uint8_t index) { | ||
| 75 | switch (index) { | ||
| 76 | #ifdef INDICATOR_LIGHTS | ||
| 77 | case SHFT_LED1: | ||
| 78 | case SHFT_LED2: | ||
| 79 | case CTRL_LED1: | ||
| 80 | case CTRL_LED2: | ||
| 81 | case GUI_LED1: | ||
| 82 | case GUI_LED2: | ||
| 83 | return true; | ||
| 84 | break; | ||
| 85 | #endif | ||
| 86 | default: | ||
| 87 | return false; | ||
| 88 | } | ||
| 89 | } | ||
diff --git a/keyboards/iris/keymaps/drashna_old/rules.mk b/keyboards/iris/keymaps/drashna_old/rules.mk new file mode 100644 index 000000000..1a6b63f16 --- /dev/null +++ b/keyboards/iris/keymaps/drashna_old/rules.mk | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | USER_NAME := drashna | ||
| 2 | |||
| 3 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 4 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 5 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 6 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 7 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 8 | TAP_DANCE_ENABLE = no | ||
| 9 | RGBLIGHT_ENABLE = yes | ||
| 10 | AUDIO_ENABLE = yes | ||
| 11 | NKRO_ENABLE = yes | ||
| 12 | BACKLIGHT_ENABLE = no | ||
| 13 | SWAP_HANDS_ENABLE = no | ||
| 14 | |||
| 15 | INDICATOR_LIGHTS = yes | ||
| 16 | MACROS_ENABLED = no | ||
| 17 | RGBLIGHT_TWINKLE = yes | ||
