diff options
Diffstat (limited to 'keyboards/hadron/keymaps/default/keymap.c')
| -rw-r--r-- | keyboards/hadron/keymaps/default/keymap.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/keyboards/hadron/keymaps/default/keymap.c b/keyboards/hadron/keymaps/default/keymap.c index 01cc8abab..5582a4652 100644 --- a/keyboards/hadron/keymaps/default/keymap.c +++ b/keyboards/hadron/keymaps/default/keymap.c | |||
| @@ -79,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 79 | * | ` | Ctrl | Alt | GUI |Lower |Space | 0 | . | = |Space |Raise | Left | Down | Up |Right | | 79 | * | ` | Ctrl | Alt | GUI |Lower |Space | 0 | . | = |Space |Raise | Left | Down | Up |Right | |
| 80 | * `--------------------------------------------------------------------------------------------------------' | 80 | * `--------------------------------------------------------------------------------------------------------' |
| 81 | */ | 81 | */ |
| 82 | [_QWERTY] = KEYMAP( | 82 | [_QWERTY] = KEYMAP( |
| 83 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,\ | 83 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,\ |
| 84 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | 84 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_P7, KC_P8, KC_P9, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ |
| 85 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L,LT_MC(KC_SCLN), KC_QUOT, \ | 85 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_P4, KC_P5, KC_P6, KC_H, KC_J, KC_K, KC_L,LT_MC(KC_SCLN), KC_QUOT, \ |
| @@ -100,7 +100,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 100 | * | ` | Ctrl | Alt | GUI |Lower |Space | 0 | . | = |Space |Raise | Left | Down | Up |Right | | 100 | * | ` | Ctrl | Alt | GUI |Lower |Space | 0 | . | = |Space |Raise | Left | Down | Up |Right | |
| 101 | * `--------------------------------------------------------------------------------------------------------' | 101 | * `--------------------------------------------------------------------------------------------------------' |
| 102 | */ | 102 | */ |
| 103 | [_COLEMAK] = KEYMAP( | 103 | [_COLEMAK] = KEYMAP( |
| 104 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,\ | 104 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,\ |
| 105 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_P7, KC_P8, KC_P9, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, \ | 105 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_P7, KC_P8, KC_P9, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, \ |
| 106 | KC_LCTRL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_P4, KC_P5, KC_P6, KC_H, KC_N, KC_E, KC_I, LT_MC(KC_O), KC_QUOT, \ | 106 | KC_LCTRL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_P4, KC_P5, KC_P6, KC_H, KC_N, KC_E, KC_I, LT_MC(KC_O), KC_QUOT, \ |
| @@ -121,14 +121,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 121 | * | ` | Ctrl | Alt | GUI |Lower |Space | 0 | . | = |Space |Raise | Left | Down | Up |Right | | 121 | * | ` | Ctrl | Alt | GUI |Lower |Space | 0 | . | = |Space |Raise | Left | Down | Up |Right | |
| 122 | * `--------------------------------------------------------------------------------------------------------' | 122 | * `--------------------------------------------------------------------------------------------------------' |
| 123 | */ | 123 | */ |
| 124 | [_DVORAK] = KEYMAP( | 124 | [_DVORAK] = KEYMAP( |
| 125 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,\ | 125 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_DEL,\ |
| 126 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_P7, KC_P8, KC_P9, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, \ | 126 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_P7, KC_P8, KC_P9, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, \ |
| 127 | KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_P4, KC_P5, KC_P6, KC_D, KC_H, KC_T, KC_N, LT_MC(KC_S), KC_SLSH, \ | 127 | KC_LCTL, KC_A, KC_O, KC_E, KC_U, KC_I, KC_P4, KC_P5, KC_P6, KC_D, KC_H, KC_T, KC_N, LT_MC(KC_S), KC_SLSH, \ |
| 128 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_P1, KC_P2, KC_P3, KC_B, KC_M, KC_W, KC_V, KC_Z, CTL_ENT, \ | 128 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_P1, KC_P2, KC_P3, KC_B, KC_M, KC_W, KC_V, KC_Z, CTL_ENT, \ |
| 129 | KC_GRV, KC_LCTRL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_P0, KC_DOT, KC_EQL, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ | 129 | KC_GRV, KC_LCTRL, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_P0, KC_DOT, KC_EQL, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \ |
| 130 | ), | 130 | ), |
| 131 | 131 | ||
| 132 | /* Lower | 132 | /* Lower |
| 133 | * ,------+------+------+------+------+------------------------------------------------. | 133 | * ,------+------+------+------+------+------------------------------------------------. |
| 134 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | 134 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | |
| @@ -142,14 +142,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 142 | * | | | | | | | | | | | | Next | Vol- | Vol+ | Play | | 142 | * | | | | | | | | | | | | Next | Vol- | Vol+ | Play | |
| 143 | * `--------------------------------------------------------------------------------------------------------' | 143 | * `--------------------------------------------------------------------------------------------------------' |
| 144 | */ | 144 | */ |
| 145 | [_LOWER] = KEYMAP( | 145 | [_LOWER] = KEYMAP( |
| 146 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | 146 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ |
| 147 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \ | 147 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, \ |
| 148 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_PIPE, \ | 148 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_UNDS, KC_PLUS, KC_LBRC, KC_RBRC, KC_PIPE, \ |
| 149 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12,S(KC_NUHS),S(KC_NUBS),_______,_______, _______, \ | 149 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12,S(KC_NUHS),S(KC_NUBS),_______,_______, _______, \ |
| 150 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | 150 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ |
| 151 | ), | 151 | ), |
| 152 | 152 | ||
| 153 | /* Raise | 153 | /* Raise |
| 154 | * ,------+------+------+------+------+------------------------------------------------. | 154 | * ,------+------+------+------+------+------------------------------------------------. |
| 155 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | | 155 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | |
| @@ -163,14 +163,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 163 | * | | | | | | | | | | | | Next | Vol- | Vol+ | Play | | 163 | * | | | | | | | | | | | | Next | Vol- | Vol+ | Play | |
| 164 | * `--------------------------------------------------------------------------------------------------------' | 164 | * `--------------------------------------------------------------------------------------------------------' |
| 165 | */ | 165 | */ |
| 166 | [_RAISE] = KEYMAP( | 166 | [_RAISE] = KEYMAP( |
| 167 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | 167 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ |
| 168 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ | 168 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ |
| 169 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | 169 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ |
| 170 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ | 170 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \ |
| 171 | _______, _______, _______, _______, _______, KC_SPC, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ | 171 | _______, _______, _______, _______, _______, KC_SPC, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \ |
| 172 | ), | 172 | ), |
| 173 | 173 | ||
| 174 | /* Mouse Layer (semi-col) | 174 | /* Mouse Layer (semi-col) |
| 175 | * ,------+------+------+------+------+------------------------------------------------. | 175 | * ,------+------+------+------+------+------------------------------------------------. |
| 176 | * | ACCL0| ACCL1| ACCL2| | | | | | | | | | | 176 | * | ACCL0| ACCL1| ACCL2| | | | | | | | | | |
| @@ -184,15 +184,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 184 | * | | | | | | BTN1 | | | | BTN1 | | | | | | | 184 | * | | | | | | BTN1 | | | | BTN1 | | | | | | |
| 185 | * `--------------------------------------------------------------------------------------------------------' | 185 | * `--------------------------------------------------------------------------------------------------------' |
| 186 | */ | 186 | */ |
| 187 | 187 | ||
| 188 | [_MOUSECURSOR] = KEYMAP( | 188 | [_MOUSECURSOR] = KEYMAP( |
| 189 | KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | 189 | KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ |
| 190 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_WH_L, KC_MS_U, KC_WH_R,DEMOMACRO,_______, \ | 190 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_WH_L, KC_MS_U, KC_WH_R,DEMOMACRO,_______, \ |
| 191 | _______, _______, _______, _______, _______, _______, _______, _______, KC_END , KC_PGDN, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, \ | 191 | _______, _______, _______, _______, _______, _______, _______, _______, KC_END , KC_PGDN, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, \ |
| 192 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN2, KC_BTN3, KC_BTN4, KC_BTN5, _______, _______, \ | 192 | _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_BTN2, KC_BTN3, KC_BTN4, KC_BTN5, _______, _______, \ |
| 193 | _______, _______, _______, _______, _______, KC_BTN1, _______, _______, _______, KC_BTN1, _______, _______, _______, _______, _______ \ | 193 | _______, _______, _______, _______, _______, KC_BTN1, _______, _______, _______, KC_BTN1, _______, _______, _______, _______, _______ \ |
| 194 | ), | 194 | ), |
| 195 | 195 | ||
| 196 | /* Adjust (Lower + Raise) | 196 | /* Adjust (Lower + Raise) |
| 197 | * ,------+------+------+------+------+------------------------------------------------. | 197 | * ,------+------+------+------+------+------------------------------------------------. |
| 198 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | | 198 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | |
| @@ -206,14 +206,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 206 | * | | | | | | | | | | | | | | | | | 206 | * | | | | | | | | | | | | | | | | |
| 207 | * `--------------------------------------------------------------------------------------------------------' | 207 | * `--------------------------------------------------------------------------------------------------------' |
| 208 | */ | 208 | */ |
| 209 | [_ADJUST] = KEYMAP( | 209 | [_ADJUST] = KEYMAP( |
| 210 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ | 210 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \ |
| 211 | RESET, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, KC_DEL, \ | 211 | RESET, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, _______, _______, _______, _______, _______, KC_DEL, \ |
| 212 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, _______, _______, _______, AG_SWAP, QWERTY, COLEMAK, _______, _______, _______, \ | 212 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, _______, _______, _______, AG_SWAP, QWERTY, COLEMAK, _______, _______, _______, \ |
| 213 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, BL_DEC, BL_INC, BL_STEP, BL_TOGG, \ | 213 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, BL_DEC, BL_INC, BL_STEP, BL_TOGG, \ |
| 214 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______\ | 214 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______\ |
| 215 | ) | 215 | ) |
| 216 | 216 | ||
| 217 | 217 | ||
| 218 | 218 | ||
| 219 | }; | 219 | }; |
| @@ -255,7 +255,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 255 | case QWERTY: | 255 | case QWERTY: |
| 256 | if (record->event.pressed) { | 256 | if (record->event.pressed) { |
| 257 | #ifdef AUDIO_ENABLE | 257 | #ifdef AUDIO_ENABLE |
| 258 | PLAY_NOTE_ARRAY(tone_qwerty, false, 0); | 258 | PLAY_SONG(tone_qwerty); |
| 259 | #endif | 259 | #endif |
| 260 | persistant_default_layer_set(1UL<<_QWERTY); | 260 | persistant_default_layer_set(1UL<<_QWERTY); |
| 261 | } | 261 | } |
| @@ -264,7 +264,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 264 | case COLEMAK: | 264 | case COLEMAK: |
| 265 | if (record->event.pressed) { | 265 | if (record->event.pressed) { |
| 266 | #ifdef AUDIO_ENABLE | 266 | #ifdef AUDIO_ENABLE |
| 267 | PLAY_NOTE_ARRAY(tone_colemak, false, 0); | 267 | PLAY_SONG(tone_colemak); |
| 268 | #endif | 268 | #endif |
| 269 | persistant_default_layer_set(1UL<<_COLEMAK); | 269 | persistant_default_layer_set(1UL<<_COLEMAK); |
| 270 | } | 270 | } |
| @@ -366,12 +366,12 @@ void matrix_scan_user(void) { | |||
| 366 | void startup_user() | 366 | void startup_user() |
| 367 | { | 367 | { |
| 368 | _delay_ms(20); // gets rid of tick | 368 | _delay_ms(20); // gets rid of tick |
| 369 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | 369 | PLAY_SONG(tone_startup); |
| 370 | } | 370 | } |
| 371 | 371 | ||
| 372 | void shutdown_user() | 372 | void shutdown_user() |
| 373 | {cc | 373 | {cc |
| 374 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | 374 | PLAY_SONG(tone_goodbye); |
| 375 | _delay_ms(150); | 375 | _delay_ms(150); |
| 376 | stop_all_notes(); | 376 | stop_all_notes(); |
| 377 | } | 377 | } |
| @@ -383,7 +383,7 @@ void music_on_user(void) | |||
| 383 | 383 | ||
| 384 | void music_scale_user(void) | 384 | void music_scale_user(void) |
| 385 | { | 385 | { |
| 386 | PLAY_NOTE_ARRAY(music_scale, false, 0); | 386 | PLAY_SONG(music_scale); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | #endif | 389 | #endif |
| @@ -397,11 +397,11 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 397 | eeconfig_init(); | 397 | eeconfig_init(); |
| 398 | } | 398 | } |
| 399 | 399 | ||
| 400 | switch (id) { | 400 | switch (id) { |
| 401 | case KC_DEMOMACRO: | 401 | case KC_DEMOMACRO: |
| 402 | if (record->event.pressed){ | 402 | if (record->event.pressed){ |
| 403 | return MACRO (I(1), T(H),T(E),T(L), T(L), T(O), T(SPACE), T(W), T(O), T(R), T(L), T(D), END); | 403 | return MACRO (I(1), T(H),T(E),T(L), T(L), T(O), T(SPACE), T(W), T(O), T(R), T(L), T(D), END); |
| 404 | } | 404 | } |
| 405 | } | 405 | } |
| 406 | 406 | ||
| 407 | return MACRO_NONE; | 407 | return MACRO_NONE; |
| @@ -483,7 +483,7 @@ void iota_gfx_task_user(void) { | |||
| 483 | default: | 483 | default: |
| 484 | matrix_write(&matrix, buf); | 484 | matrix_write(&matrix, buf); |
| 485 | } | 485 | } |
| 486 | 486 | ||
| 487 | // Host Keyboard LED Status | 487 | // Host Keyboard LED Status |
| 488 | char led[40]; | 488 | char led[40]; |
| 489 | snprintf(led, sizeof(led), "\n%s %s %s", | 489 | snprintf(led, sizeof(led), "\n%s %s %s", |
