diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-02-13 21:11:56 -0800 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-02-13 21:11:56 -0800 |
| commit | 54f18ce0f71efbcb1306cbfe620ed2ad42ee31bc (patch) | |
| tree | 4f8b9b3434f54743031eab2c3fd0b7300739707c /users/drashna | |
| parent | 9841c64de98a0d993e791137d5db482ee96e06ae (diff) | |
| download | qmk_firmware-54f18ce0f71efbcb1306cbfe620ed2ad42ee31bc.tar.gz qmk_firmware-54f18ce0f71efbcb1306cbfe620ed2ad42ee31bc.zip | |
[Keymap] Update to Drashna keymaps and Userspace (#5122)
* Proper rules include
* Minor tweaks
* Minor tweaks
* Add Desitny 2 Swapped layout support
* Add keycode to keylogger
* Convert my viterbi keymaps
* Fix Orthodox keyboard
* Add more default layers
* Make default layer keycodes more optimized
* Update gitlab CI yaml file
* Rev6 Cleanup
* Fix KC_MAKE macro
* Update GitLab CI yaml file
* More GitLab CI changes
* One final GitLab CI change
* Optimize KC_MAKE
* Reformatting of config
* Feature creeeeeeep
* Planck Rev6 updates
Diffstat (limited to 'users/drashna')
| -rw-r--r-- | users/drashna/config.h | 63 | ||||
| -rw-r--r-- | users/drashna/drashna.h | 7 | ||||
| -rw-r--r-- | users/drashna/process_records.c | 24 | ||||
| -rw-r--r-- | users/drashna/process_records.h | 4 | ||||
| -rw-r--r-- | users/drashna/rgb_stuff.c | 8 | ||||
| -rw-r--r-- | users/drashna/wrappers.h | 4 |
6 files changed, 59 insertions, 51 deletions
diff --git a/users/drashna/config.h b/users/drashna/config.h index 827b1b8ac..20e58fd0b 100644 --- a/users/drashna/config.h +++ b/users/drashna/config.h | |||
| @@ -2,43 +2,50 @@ | |||
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | #ifdef AUDIO_ENABLE | 4 | #ifdef AUDIO_ENABLE |
| 5 | #define AUDIO_CLICKY | 5 | #define AUDIO_CLICKY |
| 6 | #define STARTUP_SONG SONG(RICK_ROLL) | 6 | #define STARTUP_SONG SONG(RICK_ROLL) |
| 7 | #define GOODBYE_SONG SONG(SONIC_RING) | 7 | #define GOODBYE_SONG SONG(SONIC_RING) |
| 8 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ | 8 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ |
| 9 | SONG(COLEMAK_SOUND), \ | 9 | SONG(COLEMAK_SOUND), \ |
| 10 | SONG(DVORAK_SOUND), \ | 10 | SONG(DVORAK_SOUND), \ |
| 11 | SONG(OVERWATCH_THEME) \ | 11 | SONG(OVERWATCH_THEME) \ |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f | 14 | #define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f |
| 15 | // #ifdef RGBLIGHT_ENABLE | 15 | // #ifdef RGBLIGHT_ENABLE |
| 16 | // #define NO_MUSIC_MODE | 16 | // #define NO_MUSIC_MODE |
| 17 | // #endif //RGBLIGHT_ENABLE/ | 17 | // #endif //RGBLIGHT_ENABLE/ |
| 18 | #ifndef __arm__ | 18 | #ifndef __arm__ |
| 19 | #undef NOTE_REST | 19 | #undef NOTE_REST |
| 20 | #define NOTE_REST 1.00f | 20 | #define NOTE_REST 1.00f |
| 21 | #endif // !__arm__ | 21 | #endif // !__arm__ |
| 22 | |||
| 23 | #define UNICODE_SONG_OSX SONG(RICK_ROLL) | ||
| 24 | #define UNICODE_SONG_LNX SONG(RICK_ROLL) | ||
| 25 | #define UNICODE_SONG_WIN SONG(RICK_ROLL) | ||
| 26 | #define UNICODE_SONG_BSD SONG(RICK_ROLL) | ||
| 27 | #define UNICODE_SONG_WINC SONG(RICK_ROLL) | ||
| 28 | |||
| 22 | #endif // !AUDIO_ENABLE | 29 | #endif // !AUDIO_ENABLE |
| 23 | 30 | ||
| 24 | #ifdef RGBLIGHT_ENABLE | 31 | #ifdef RGBLIGHT_ENABLE |
| 25 | #define RGBLIGHT_SLEEP | 32 | #define RGBLIGHT_SLEEP |
| 26 | #undef RGBLIGHT_ANIMATIONS | 33 | #undef RGBLIGHT_ANIMATIONS |
| 27 | #define RGBLIGHT_EFFECT_BREATHING | 34 | #define RGBLIGHT_EFFECT_BREATHING |
| 28 | #define RGBLIGHT_EFFECT_SNAKE | 35 | #define RGBLIGHT_EFFECT_SNAKE |
| 29 | #define RGBLIGHT_EFFECT_KNIGHT | 36 | #define RGBLIGHT_EFFECT_KNIGHT |
| 30 | #endif // RGBLIGHT_ENABLE | 37 | #endif // RGBLIGHT_ENABLE |
| 31 | 38 | ||
| 32 | #ifndef ONESHOT_TAP_TOGGLE | 39 | #ifndef ONESHOT_TAP_TOGGLE |
| 33 | #define ONESHOT_TAP_TOGGLE 2 | 40 | #define ONESHOT_TAP_TOGGLE 2 |
| 34 | #endif // !ONESHOT_TAP_TOGGLE | 41 | #endif // !ONESHOT_TAP_TOGGLE |
| 35 | 42 | ||
| 36 | #ifndef ONESHOT_TIMEOUT | 43 | #ifndef ONESHOT_TIMEOUT |
| 37 | #define ONESHOT_TIMEOUT 3000 | 44 | #define ONESHOT_TIMEOUT 3000 |
| 38 | #endif// !ONESHOT_TIMEOUT | 45 | #endif// !ONESHOT_TIMEOUT |
| 39 | 46 | ||
| 40 | #ifndef QMK_KEYS_PER_SCAN | 47 | #ifndef QMK_KEYS_PER_SCAN |
| 41 | #define QMK_KEYS_PER_SCAN 4 | 48 | #define QMK_KEYS_PER_SCAN 4 |
| 42 | #endif // !QMK_KEYS_PER_SCAN | 49 | #endif // !QMK_KEYS_PER_SCAN |
| 43 | 50 | ||
| 44 | 51 | ||
| @@ -48,18 +55,18 @@ | |||
| 48 | // and when this option isn't enabled, z rapidly followed by x | 55 | // and when this option isn't enabled, z rapidly followed by x |
| 49 | // actually sends Ctrl-x. That's bad.) | 56 | // actually sends Ctrl-x. That's bad.) |
| 50 | #define IGNORE_MOD_TAP_INTERRUPT | 57 | #define IGNORE_MOD_TAP_INTERRUPT |
| 51 | #undef PERMISSIVE_HOLD | 58 | // #define PERMISSIVE_HOLD |
| 52 | //#define TAPPING_FORCE_HOLD | 59 | //#define TAPPING_FORCE_HOLD |
| 53 | //#define RETRO_TAPPING | 60 | //#define RETRO_TAPPING |
| 54 | 61 | ||
| 55 | #define FORCE_NKRO | 62 | #define FORCE_NKRO |
| 56 | 63 | ||
| 57 | #ifndef TAPPING_TOGGLE | 64 | #ifndef TAPPING_TOGGLE |
| 58 | #define TAPPING_TOGGLE 1 | 65 | #define TAPPING_TOGGLE 1 |
| 59 | #endif | 66 | #endif |
| 60 | 67 | ||
| 61 | #ifdef TAPPING_TERM | 68 | #ifdef TAPPING_TERM |
| 62 | #undef TAPPING_TERM | 69 | #undef TAPPING_TERM |
| 63 | #endif // TAPPING_TERM | 70 | #endif // TAPPING_TERM |
| 64 | #if defined(KEYBOARD_ergodox_ez) | 71 | #if defined(KEYBOARD_ergodox_ez) |
| 65 | #define TAPPING_TERM 185 | 72 | #define TAPPING_TERM 185 |
diff --git a/users/drashna/drashna.h b/users/drashna/drashna.h index 0a3d0f632..ca55198e3 100644 --- a/users/drashna/drashna.h +++ b/users/drashna/drashna.h | |||
| @@ -36,7 +36,11 @@ enum userspace_layers { | |||
| 36 | _COLEMAK, | 36 | _COLEMAK, |
| 37 | _DVORAK, | 37 | _DVORAK, |
| 38 | _WORKMAN, | 38 | _WORKMAN, |
| 39 | _MODS, | 39 | _NORMAN, |
| 40 | _MALTRON, | ||
| 41 | _EUCALYN, | ||
| 42 | _CARPLAX, | ||
| 43 | _MODS, /* layer 8 */ | ||
| 40 | _GAMEPAD, | 44 | _GAMEPAD, |
| 41 | _DIABLO, | 45 | _DIABLO, |
| 42 | _MACROS, | 46 | _MACROS, |
| @@ -76,6 +80,7 @@ typedef union { | |||
| 76 | bool is_overwatch :1; | 80 | bool is_overwatch :1; |
| 77 | bool nuke_switch :1; | 81 | bool nuke_switch :1; |
| 78 | uint8_t unicode_mod :4; | 82 | uint8_t unicode_mod :4; |
| 83 | bool swapped_numbers :1; | ||
| 79 | }; | 84 | }; |
| 80 | } userspace_config_t; | 85 | } userspace_config_t; |
| 81 | 86 | ||
diff --git a/users/drashna/process_records.c b/users/drashna/process_records.c index 17d7dc01c..73cad92f6 100644 --- a/users/drashna/process_records.c +++ b/users/drashna/process_records.c | |||
| @@ -20,34 +20,18 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 20 | // If console is enabled, it will print the matrix position and status of each key pressed | 20 | // If console is enabled, it will print the matrix position and status of each key pressed |
| 21 | #ifdef KEYLOGGER_ENABLE | 21 | #ifdef KEYLOGGER_ENABLE |
| 22 | #if defined(KEYBOARD_ergodox_ez) || defined(KEYBOARD_iris_rev2) | 22 | #if defined(KEYBOARD_ergodox_ez) || defined(KEYBOARD_iris_rev2) |
| 23 | xprintf("KL: col: %u, row: %u, pressed: %u\n", record->event.key.row, record->event.key.col, record->event.pressed); | 23 | xprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.row, record->event.key.col, record->event.pressed); |
| 24 | #else | 24 | #else |
| 25 | xprintf("KL: col: %u, row: %u, pressed: %u\n", record->event.key.col, record->event.key.row, record->event.pressed); | 25 | xprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed); |
| 26 | #endif | 26 | #endif |
| 27 | #endif //KEYLOGGER_ENABLE | 27 | #endif //KEYLOGGER_ENABLE |
| 28 | 28 | ||
| 29 | switch (keycode) { | 29 | switch (keycode) { |
| 30 | case KC_QWERTY: | 30 | case KC_QWERTY ... KC_CARPLAX: |
| 31 | if (record->event.pressed) { | 31 | if (record->event.pressed) { |
| 32 | set_single_persistent_default_layer(_QWERTY); | 32 | set_single_persistent_default_layer(keycode - KC_QWERTY); |
| 33 | } | 33 | } |
| 34 | break; | 34 | break; |
| 35 | case KC_COLEMAK: | ||
| 36 | if (record->event.pressed) { | ||
| 37 | set_single_persistent_default_layer(_COLEMAK); | ||
| 38 | } | ||
| 39 | break; | ||
| 40 | case KC_DVORAK: | ||
| 41 | if (record->event.pressed) { | ||
| 42 | set_single_persistent_default_layer(_DVORAK); | ||
| 43 | } | ||
| 44 | break; | ||
| 45 | case KC_WORKMAN: | ||
| 46 | if (record->event.pressed) { | ||
| 47 | set_single_persistent_default_layer(_WORKMAN); | ||
| 48 | } | ||
| 49 | break; | ||
| 50 | |||
| 51 | 35 | ||
| 52 | case KC_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader | 36 | case KC_MAKE: // Compiles the firmware, and adds the flash command based on keyboard bootloader |
| 53 | if (!record->event.pressed) { | 37 | if (!record->event.pressed) { |
diff --git a/users/drashna/process_records.h b/users/drashna/process_records.h index 620997add..f7f2193ec 100644 --- a/users/drashna/process_records.h +++ b/users/drashna/process_records.h | |||
| @@ -13,6 +13,10 @@ enum userspace_custom_keycodes { | |||
| 13 | KC_COLEMAK, // Sets default layer to COLEMAK | 13 | KC_COLEMAK, // Sets default layer to COLEMAK |
| 14 | KC_DVORAK, // Sets default layer to DVORAK | 14 | KC_DVORAK, // Sets default layer to DVORAK |
| 15 | KC_WORKMAN, // Sets default layer to WORKMAN | 15 | KC_WORKMAN, // Sets default layer to WORKMAN |
| 16 | KC_NORMAN, // Sets default layer to NORMAN | ||
| 17 | KC_MALTRON, // Sets default layer to MALTRON | ||
| 18 | KC_EUCALYN, // Sets default layer to EUCALYN | ||
| 19 | KC_CARPLAX, // Sets default layer to CARPLAX | ||
| 16 | KC_DIABLO_CLEAR, // Clears all Diablo Timers | 20 | KC_DIABLO_CLEAR, // Clears all Diablo Timers |
| 17 | KC_OVERWATCH, // Toggles game macro input mode (so in OW, it defaults to game chat) | 21 | KC_OVERWATCH, // Toggles game macro input mode (so in OW, it defaults to game chat) |
| 18 | KC_SALT, // See drashna.c for details | 22 | KC_SALT, // See drashna.c for details |
diff --git a/users/drashna/rgb_stuff.c b/users/drashna/rgb_stuff.c index 7d00604b4..37076ce99 100644 --- a/users/drashna/rgb_stuff.c +++ b/users/drashna/rgb_stuff.c | |||
| @@ -315,6 +315,14 @@ uint32_t layer_state_set_rgb(uint32_t state) { | |||
| 315 | rgblight_sethsv_noeeprom_springgreen(); break; | 315 | rgblight_sethsv_noeeprom_springgreen(); break; |
| 316 | case _WORKMAN: | 316 | case _WORKMAN: |
| 317 | rgblight_sethsv_noeeprom_goldenrod(); break; | 317 | rgblight_sethsv_noeeprom_goldenrod(); break; |
| 318 | case _NORMAN: | ||
| 319 | rgblight_sethsv_noeeprom_coral(); break; | ||
| 320 | case _MALTRON: | ||
| 321 | rgblight_sethsv_noeeprom_yellow(); break; | ||
| 322 | case _EUCALYN: | ||
| 323 | rgblight_sethsv_noeeprom_pink(); break; | ||
| 324 | case _CARPLAX: | ||
| 325 | rgblight_sethsv_noeeprom_blue(); break; | ||
| 318 | default: | 326 | default: |
| 319 | rgblight_sethsv_noeeprom_cyan(); break; | 327 | rgblight_sethsv_noeeprom_cyan(); break; |
| 320 | } | 328 | } |
diff --git a/users/drashna/wrappers.h b/users/drashna/wrappers.h index 070a5a0a4..3260c58ae 100644 --- a/users/drashna/wrappers.h +++ b/users/drashna/wrappers.h | |||
| @@ -91,11 +91,11 @@ NOTE: These are all the same length. If you do a search/replace | |||
| 91 | 91 | ||
| 92 | #define _________________MALTRON_L1________________ KC_Q, KC_P, KC_Y, KC_C, KC_B | 92 | #define _________________MALTRON_L1________________ KC_Q, KC_P, KC_Y, KC_C, KC_B |
| 93 | #define _________________MALTRON_L2________________ KC_A, KC_N, KC_I, KC_S, KC_F | 93 | #define _________________MALTRON_L2________________ KC_A, KC_N, KC_I, KC_S, KC_F |
| 94 | #define _________________MALTRON_L3________________ KC_SCLN, KC_SLSH, KC_J KC_G, KC_COMM | 94 | #define _________________MALTRON_L3________________ KC_SCLN, KC_SLSH, KC_J, KC_G, KC_COMM |
| 95 | 95 | ||
| 96 | #define _________________MALTRON_R1________________ KC_V, KC_M, KC_U, KC_Z, KC_L | 96 | #define _________________MALTRON_R1________________ KC_V, KC_M, KC_U, KC_Z, KC_L |
| 97 | #define _________________MALTRON_R2________________ KC_D, KC_T, KC_D, KC_O, KC_R | 97 | #define _________________MALTRON_R2________________ KC_D, KC_T, KC_D, KC_O, KC_R |
| 98 | #define _________________MALTRON_R3________________ KC_DOT, KC_W, KC_K, KC_MINS, KC_X | 98 | #define _________________MALTRON_R3________________ KC_DOT, KC_W, KC_K, KC_MINS, KC_X |
| 99 | 99 | ||
| 100 | 100 | ||
| 101 | #define _________________EUCALYN_L1________________ KC_SLSH, KC_COMM, KC_DOT, KC_F, KC_Q | 101 | #define _________________EUCALYN_L1________________ KC_SLSH, KC_COMM, KC_DOT, KC_F, KC_Q |
