diff options
| author | Jann-Niklas Zimmermann <jann-niklas.zimmermann@wire.com> | 2020-03-18 00:57:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-17 16:57:53 -0700 |
| commit | 59d6b0faab108cc49ca5b3b83d9d169d445f50bd (patch) | |
| tree | eb2c2d56c6a0cbf28289f1e526a732ef848c2d27 /keyboards/kyria/keymaps | |
| parent | 6f55aa993a4498f411c97025049d92019414af68 (diff) | |
| download | qmk_firmware-59d6b0faab108cc49ca5b3b83d9d169d445f50bd.tar.gz qmk_firmware-59d6b0faab108cc49ca5b3b83d9d169d445f50bd.zip | |
[Keymap] Corodiak's Kyria (#8444)
* Add kyria keymap
* Delete wrong readme.md
* Move layer keys
* Refine keymap
* Clean up
* Add comment
* Improve OS depending macros
* Update keymap overview
* Add review suggestions
Diffstat (limited to 'keyboards/kyria/keymaps')
| -rw-r--r-- | keyboards/kyria/keymaps/corodiak/config.h | 45 | ||||
| -rw-r--r-- | keyboards/kyria/keymaps/corodiak/keymap.c | 321 | ||||
| -rw-r--r-- | keyboards/kyria/keymaps/corodiak/rules.mk | 4 |
3 files changed, 370 insertions, 0 deletions
diff --git a/keyboards/kyria/keymaps/corodiak/config.h b/keyboards/kyria/keymaps/corodiak/config.h new file mode 100644 index 000000000..eed94d055 --- /dev/null +++ b/keyboards/kyria/keymaps/corodiak/config.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* Copyright 2019 Thomas Baart <thomas@splitkb.com> | ||
| 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 OLED_DRIVER_ENABLE | ||
| 20 | #define OLED_DISPLAY_128X64 | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #ifdef RGBLIGHT_ENABLE | ||
| 24 | #define RGBLIGHT_ANIMATIONS | ||
| 25 | #define RGBLIGHT_HUE_STEP 8 | ||
| 26 | #define RGBLIGHT_SAT_STEP 8 | ||
| 27 | #define RGBLIGHT_VAL_STEP 8 | ||
| 28 | #endif | ||
| 29 | |||
| 30 | // The Leader key allows to flexibly assign macros to key sequences. | ||
| 31 | #define LEADER_PER_KEY_TIMING | ||
| 32 | #define LEADER_TIMEOUT 350 | ||
| 33 | |||
| 34 | #define TAPPING_TERM 200 | ||
| 35 | |||
| 36 | // Turn off on slave | ||
| 37 | #define WAIT_FOR_USB | ||
| 38 | |||
| 39 | // If you are using an Elite C rev3 on the slave side, uncomment the lines below: | ||
| 40 | #define SPLIT_USB_DETECT | ||
| 41 | #define NO_USB_STARTUP_CHECK | ||
| 42 | |||
| 43 | // Allows to use either side as the master. Look at the documentation for info: | ||
| 44 | // https://docs.qmk.fm/#/config_options?id=setting-handedness | ||
| 45 | #define EE_HANDS | ||
diff --git a/keyboards/kyria/keymaps/corodiak/keymap.c b/keyboards/kyria/keymaps/corodiak/keymap.c new file mode 100644 index 000000000..0f7e05991 --- /dev/null +++ b/keyboards/kyria/keymaps/corodiak/keymap.c | |||
| @@ -0,0 +1,321 @@ | |||
| 1 | /* Copyright 2019 Thomas Baart <thomas@splitkb.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | typedef union { | ||
| 19 | uint32_t raw; | ||
| 20 | struct { | ||
| 21 | bool osIsWindows; | ||
| 22 | }; | ||
| 23 | } user_config_t; | ||
| 24 | |||
| 25 | user_config_t user_config; | ||
| 26 | |||
| 27 | enum layers { | ||
| 28 | _QWERTY = 0, | ||
| 29 | _COLEMAK, | ||
| 30 | _NAV, | ||
| 31 | _SYMBOLS, | ||
| 32 | _NUM, | ||
| 33 | _ADJUST | ||
| 34 | }; | ||
| 35 | |||
| 36 | enum custom_keycodes { | ||
| 37 | Qwerty = SAFE_RANGE, | ||
| 38 | Colemak, | ||
| 39 | Undo, | ||
| 40 | Cut, | ||
| 41 | Copy, | ||
| 42 | Paste, | ||
| 43 | NxtWord, | ||
| 44 | PrvWord | ||
| 45 | }; | ||
| 46 | |||
| 47 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 48 | /* | ||
| 49 | * Base Layer: QWERTY | ||
| 50 | * | ||
| 51 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 52 | * | TAB | Q | W | E | R | T | | Y | U | I | O | P | Bksp | | ||
| 53 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 54 | * | NAV | A | S | D | F | G | | H | J | K | L | ; : | ' " | | ||
| 55 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 56 | * | LShift | Z | X | C | V | B |Enter | ESC | |ADJUST|Space | N | M | , < | . > | / ? | Del | | ||
| 57 | * `----------------------+------+------+------+ +------| |------+ +------+------+------+----------------------' | ||
| 58 | * | LCTL | GUI | RALT | | NUM | | NUM | | SYMB | NAV |LEADER| | ||
| 59 | * | | | | | | | | | | | | | ||
| 60 | * `----------------------------------' `----------------------------------' | ||
| 61 | */ | ||
| 62 | [_QWERTY] = LAYOUT( | ||
| 63 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y, KC_U , KC_I , KC_O , KC_P , KC_BSPC, | ||
| 64 | MO(_NAV), KC_A , KC_S , KC_D , KC_F , KC_G , KC_H, KC_J , KC_K , KC_L ,KC_SCLN, KC_QUOT, | ||
| 65 | KC_LSFT , KC_Z , KC_X , KC_C , KC_V , KC_B , XXXXXXX, KC_ESC , MO(_ADJUST), XXXXXXX, KC_N, KC_M ,KC_COMM, KC_DOT ,KC_SLSH, RSFT_T(KC_DEL), | ||
| 66 | KC_LCTL, KC_LGUI, KC_RALT, KC_ENT ,TT(_NUM),TT(_NUM), KC_SPC, MO(_SYMBOLS), MO(_NAV), KC_LEAD | ||
| 67 | ), | ||
| 68 | |||
| 69 | /* | ||
| 70 | * Base Layer: Colemak | ||
| 71 | * | ||
| 72 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 73 | * | TAB | Q | W | F | P | G | | J | L | U | Y | ; : | Bksp | | ||
| 74 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 75 | * | NAV | A | R | S | T | D | | H | N | E | I | O | ' " | | ||
| 76 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 77 | * | LShift | Z | X | C | V | B |Enter | ESC | |ADJUST|Space | K | M | , < | . > | / ? | Del | | ||
| 78 | * `----------------------+------+------+------+ +------| |------+ +------+------+------+----------------------' | ||
| 79 | * | LCTL | GUI | RALT | | NUM | | NUM | | SYMB | NAV |LEADER| | ||
| 80 | * | | | | | | | | | | | | | ||
| 81 | * `----------------------------------' `----------------------------------' | ||
| 82 | */ | ||
| 83 | [_COLEMAK] = LAYOUT( | ||
| 84 | KC_TAB , KC_Q , KC_W , KC_F , KC_P , KC_G , KC_J, KC_L , KC_U , KC_Y ,KC_SCLN, KC_BSPC, | ||
| 85 | MO(_NAV), KC_A , KC_R , KC_S , KC_T , KC_D , KC_H, KC_N , KC_E , KC_I , KC_O , KC_QUOT, | ||
| 86 | KC_LSFT , KC_Z , KC_X , KC_C , KC_V , KC_B , XXXXXXX, KC_ESC , MO(_ADJUST), XXXXXXX, KC_K, KC_M ,KC_COMM, KC_DOT ,KC_SLSH, RSFT_T(KC_DEL), | ||
| 87 | KC_LCTL, KC_LGUI, KC_RALT, KC_ENT ,TT(_NUM),TT(_NUM), KC_SPC, MO(_SYMBOLS), MO(_NAV), KC_LEAD | ||
| 88 | ), | ||
| 89 | |||
| 90 | /* | ||
| 91 | * Navigation Layer: Cursor, Text Navigation | ||
| 92 | * | ||
| 93 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 94 | * | | | |WheelU| | | | |PrvWord| Up |NxtWord| | | | ||
| 95 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 96 | * | | | LCTL |WheelD|LSFT | Bksp | | Bksp | Left | Down |Right | Del | | | ||
| 97 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 98 | * | | Undo | Cut | Copy |Paste | | | | | | | | Home | | End | | | | ||
| 99 | * `----------------------+------+------+------+ +------| |------+ +------+------+------+----------------------' | ||
| 100 | * | | | | |Space | | | | | | | | ||
| 101 | * | | | | | | | | | | | | | ||
| 102 | * `----------------------------------' `----------------------------------' | ||
| 103 | */ | ||
| 104 | [_NAV] = LAYOUT( | ||
| 105 | _______, _______, _______, KC_WH_U, _______, _______, _______, PrvWord, KC_UP , NxtWord, _______, _______, | ||
| 106 | _______, _______, KC_LCTL, KC_WH_D, KC_LSFT, KC_BSPC, KC_BSPC, KC_LEFT, KC_DOWN,KC_RIGHT, KC_DEL , _______, | ||
| 107 | _______, Undo , Cut , Copy , Paste , _______, XXXXXXX, _______, _______, XXXXXXX, _______, KC_HOME, _______, KC_END , _______, _______, | ||
| 108 | _______, _______, _______, _______, KC_SPC , _______, _______, _______, _______, _______ | ||
| 109 | ), | ||
| 110 | |||
| 111 | /* | ||
| 112 | * Symbol Layer | ||
| 113 | * | ||
| 114 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 115 | * | ` ~ | ! | @ | # | $ | % | | ^ | { | } | | € | | | ||
| 116 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 117 | * | ~ | | | - _ | = + | & | | * | ( | ) | | | | | | ||
| 118 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 119 | * | | | | _ | + | | | | | | | | [ { | ] } | | \ | | | | ||
| 120 | * `----------------------+------+------+------+ +------| |------+ +------+------+------+----------------------' | ||
| 121 | * | | | | | | | | | | | | | ||
| 122 | * | | | | | | | | | | | | | ||
| 123 | * `----------------------------------' `----------------------------------' | ||
| 124 | */ | ||
| 125 | [_SYMBOLS] = LAYOUT( | ||
| 126 | KC_GRV, KC_EXLM, KC_AT , KC_HASH, KC_DLR , KC_PERC, KC_CIRC, KC_LCBR, KC_RCBR, _______,ALGR(KC_5),_______, | ||
| 127 | KC_TILD, _______, _______, KC_MINS, KC_EQL , KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, KC_PIPE, _______, | ||
| 128 | _______, _______, _______, KC_UNDS, KC_PLUS, _______, XXXXXXX, _______, _______, XXXXXXX, _______, KC_LBRC, KC_RBRC, _______, KC_BSLS, _______, | ||
| 129 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 130 | ), | ||
| 131 | /* | ||
| 132 | * Num Layer | ||
| 133 | * | ||
| 134 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 135 | * | | 1 ! | 2 @ | 3 # | 4 $ | 5 % | | / | 7 & | 8 * | 9 ( | - | | | ||
| 136 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 137 | * | | 6 ^ | 7 & | 8 * | 9 ( | 0 ) | | * | 4 $ | 5 % | 6 ^ | + | Space | | ||
| 138 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 139 | * | | | | | | | | | | | | 0 ) | 1 ! | 2 @ | 3 # | = | Enter | | ||
| 140 | * `----------------------+------+------+------+ +------| |------+ +------+------+------+----------------------' | ||
| 141 | * | | | | | | | | | | , | . | | ||
| 142 | * | | | | | | | | | | | | | ||
| 143 | * `----------------------------------' `----------------------------------' | ||
| 144 | */ | ||
| 145 | [_NUM] = LAYOUT( | ||
| 146 | _______, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_PSLS, KC_7 , KC_8 , KC_9 , KC_PMNS, _______, | ||
| 147 | _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_PAST, KC_4 , KC_5 , KC_6 , KC_PLUS, KC_SPC , | ||
| 148 | _______, _______, _______, _______, _______, _______, XXXXXXX, _______, _______, XXXXXXX, KC_0 , KC_1 , KC_2 , KC_3 , KC_PEQL, KC_ENT , | ||
| 149 | _______, _______, _______, _______, _______, _______, _______, _______, KC_PCMM, KC_DOT | ||
| 150 | ), | ||
| 151 | |||
| 152 | /* | ||
| 153 | * Adjust Layer: Media | ||
| 154 | * | ||
| 155 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 156 | * | | F9 | F10 | F11 | F12 | | | SAI | | Vol+ | | Play | | | ||
| 157 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 158 | * | | F5 | F6 | F7 | F8 | | | HUI | Prev | Vol- | Nxt | | | | ||
| 159 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 160 | * | | F1 | F2 | F3 | F4 | | | | | | | VAI | Mute | | | | | | ||
| 161 | * `----------------------+------+------+------+ +------| |------+ +------+------+------+----------------------' | ||
| 162 | * |Qwerty|Colemak| | | | | RGB | | RGB | | | | ||
| 163 | * | Dflt | Dflt | | | | |Toggle| | Mode | | | | ||
| 164 | * `----------------------------------' `----------------------------------' | ||
| 165 | */ | ||
| 166 | [_ADJUST] = LAYOUT( | ||
| 167 | _______, KC_F9 , KC_F10 , KC_F11 , KC_F12 , _______, RGB_SAI, _______, KC_VOLU, _______, KC_MPLY, _______, | ||
| 168 | _______, KC_F5 , KC_F6 , KC_F7 , KC_F8 , _______, RGB_HUI, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, | ||
| 169 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , _______, XXXXXXX, _______, _______, XXXXXXX, RGB_VAI, KC_MUTE, _______, _______, _______, _______, | ||
| 170 | Qwerty , Colemak, _______, _______, _______, RGB_TOG, _______, RGB_MOD, _______, _______ | ||
| 171 | ), | ||
| 172 | |||
| 173 | // /* | ||
| 174 | // * Layer template | ||
| 175 | // * | ||
| 176 | // * ,-------------------------------------------. ,-------------------------------------------. | ||
| 177 | // * | | | | | | | | | | | | | | | ||
| 178 | // * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 179 | // * | | | | | | | | | | | | | | | ||
| 180 | // * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 181 | // * | | | | | | | | | | | | | | | | | | | ||
| 182 | // * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 183 | // * | | | | | | | | | | | | | ||
| 184 | // * | | | | | | | | | | | | | ||
| 185 | // * `----------------------------------' `----------------------------------' | ||
| 186 | // */ | ||
| 187 | // [_LAYERINDEX] = LAYOUT( | ||
| 188 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 189 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 190 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 191 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 192 | // ), | ||
| 193 | }; | ||
| 194 | |||
| 195 | void keyboard_post_init_user(void) { | ||
| 196 | // Call the post init code. | ||
| 197 | |||
| 198 | // Read the user config from EEPROM | ||
| 199 | user_config.raw = eeconfig_read_user(); | ||
| 200 | |||
| 201 | // Default RGB settings, without saving settings | ||
| 202 | rgblight_enable_noeeprom(); | ||
| 203 | rgblight_sethsv_noeeprom(HSV_CYAN); | ||
| 204 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); | ||
| 205 | } | ||
| 206 | |||
| 207 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 208 | switch(keycode) { | ||
| 209 | case Qwerty: | ||
| 210 | if (record->event.pressed) { | ||
| 211 | set_single_persistent_default_layer(_QWERTY); | ||
| 212 | } | ||
| 213 | break; | ||
| 214 | case Colemak: | ||
| 215 | if (record->event.pressed) { | ||
| 216 | set_single_persistent_default_layer(_COLEMAK); | ||
| 217 | } | ||
| 218 | break; | ||
| 219 | case Undo: | ||
| 220 | if (record->event.pressed) { | ||
| 221 | if (user_config.osIsWindows == 1) { | ||
| 222 | tap_code16(C(KC_Z)); | ||
| 223 | } else if (user_config.osIsWindows == 0) { | ||
| 224 | tap_code16(G(KC_Z)); | ||
| 225 | } | ||
| 226 | } | ||
| 227 | break; | ||
| 228 | case Cut: | ||
| 229 | if (record->event.pressed) { | ||
| 230 | if (user_config.osIsWindows == 1) { | ||
| 231 | tap_code16(C(KC_X)); | ||
| 232 | } else if (user_config.osIsWindows == 0) { | ||
| 233 | tap_code16(G(KC_X)); | ||
| 234 | } | ||
| 235 | } | ||
| 236 | break; | ||
| 237 | case Copy: | ||
| 238 | if (record->event.pressed) { | ||
| 239 | if (user_config.osIsWindows == 1) { | ||
| 240 | tap_code16(C(KC_C)); | ||
| 241 | } else if (user_config.osIsWindows == 0) { | ||
| 242 | tap_code16(G(KC_C)); | ||
| 243 | } | ||
| 244 | } | ||
| 245 | break; | ||
| 246 | case Paste: | ||
| 247 | if (record->event.pressed) { | ||
| 248 | if (user_config.osIsWindows == 1) { | ||
| 249 | tap_code16(C(KC_V)); | ||
| 250 | } else if (user_config.osIsWindows == 0) { | ||
| 251 | tap_code16(G(KC_V)); | ||
| 252 | } | ||
| 253 | } | ||
| 254 | break; | ||
| 255 | case PrvWord: | ||
| 256 | if (record->event.pressed) { | ||
| 257 | if (user_config.osIsWindows == 1) { | ||
| 258 | tap_code16(C(KC_LEFT)); | ||
| 259 | } else if (user_config.osIsWindows == 0) { | ||
| 260 | tap_code16(A(KC_LEFT)); | ||
| 261 | } | ||
| 262 | } | ||
| 263 | break; | ||
| 264 | case NxtWord: | ||
| 265 | if (record->event.pressed) { | ||
| 266 | if (user_config.osIsWindows == 1) { | ||
| 267 | tap_code16(C(KC_RGHT)); | ||
| 268 | } else if (user_config.osIsWindows == 0) { | ||
| 269 | tap_code16(A(KC_RGHT)); | ||
| 270 | } | ||
| 271 | } | ||
| 272 | break; | ||
| 273 | } | ||
| 274 | return true; | ||
| 275 | }; | ||
| 276 | |||
| 277 | LEADER_EXTERNS(); | ||
| 278 | |||
| 279 | void matrix_scan_user(void) { | ||
| 280 | LEADER_DICTIONARY() { | ||
| 281 | leading = false; | ||
| 282 | leader_end(); | ||
| 283 | |||
| 284 | // Set current OS indicator to macOs | ||
| 285 | SEQ_ONE_KEY(KC_M) { | ||
| 286 | user_config.osIsWindows = false; | ||
| 287 | eeconfig_update_user(user_config.raw); | ||
| 288 | } | ||
| 289 | |||
| 290 | // Set current OS indicator to Windows | ||
| 291 | SEQ_ONE_KEY(KC_W) { | ||
| 292 | user_config.osIsWindows = true; | ||
| 293 | eeconfig_update_user(user_config.raw); | ||
| 294 | } | ||
| 295 | |||
| 296 | // Screenshot | ||
| 297 | SEQ_ONE_KEY(KC_S) { | ||
| 298 | if (user_config.osIsWindows == 1) { | ||
| 299 | tap_code16(S(G(KC_S))); | ||
| 300 | } else if (user_config.osIsWindows == 0) { | ||
| 301 | tap_code16(S(G(KC_4))); | ||
| 302 | } | ||
| 303 | } | ||
| 304 | |||
| 305 | // Video | ||
| 306 | SEQ_ONE_KEY(KC_V) { | ||
| 307 | if (user_config.osIsWindows == 0) { | ||
| 308 | tap_code16(S(G(KC_5))); | ||
| 309 | } | ||
| 310 | } | ||
| 311 | |||
| 312 | // Sleep | ||
| 313 | SEQ_ONE_KEY(KC_P) { | ||
| 314 | if (user_config.osIsWindows == 1) { | ||
| 315 | SEND_STRING(SS_LGUI("x") "u" "h"); | ||
| 316 | } else if (user_config.osIsWindows == 0) { | ||
| 317 | tap_code16(A(G(KC_PWR))); | ||
| 318 | } | ||
| 319 | } | ||
| 320 | } | ||
| 321 | } | ||
diff --git a/keyboards/kyria/keymaps/corodiak/rules.mk b/keyboards/kyria/keymaps/corodiak/rules.mk new file mode 100644 index 000000000..da64c4ea5 --- /dev/null +++ b/keyboards/kyria/keymaps/corodiak/rules.mk | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | # OLED_DRIVER_ENABLE = yes # Enables the use of OLED displays | ||
| 2 | # ENCODER_ENABLE = yes # Enables the use of one or more encoders | ||
| 3 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 4 | LEADER_ENABLE = yes # Enables the Leader shortcut funtionality | ||
