diff options
Diffstat (limited to 'keyboards/ergodox_ez')
43 files changed, 0 insertions, 6393 deletions
diff --git a/keyboards/ergodox_ez/keymaps/bdk/config.h b/keyboards/ergodox_ez/keymaps/bdk/config.h deleted file mode 100644 index e824b73109..0000000000 --- a/keyboards/ergodox_ez/keymaps/bdk/config.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#define ONESHOT_TAP_TOGGLE 2 -#define ONESHOT_TIMEOUT 167 -#define FORCE_NKRO diff --git a/keyboards/ergodox_ez/keymaps/bdk/keymap.c b/keyboards/ergodox_ez/keymaps/bdk/keymap.c deleted file mode 100644 index 20af6c18ed..0000000000 --- a/keyboards/ergodox_ez/keymaps/bdk/keymap.c +++ /dev/null @@ -1,176 +0,0 @@ -#include QMK_KEYBOARD_H - -#define SHIFT_DOWN() (get_mods() & (MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT))) -#define KC_FKEYS MO(FKEYS) - -// Layers -enum { - BASE=0, - SYMNUM, // Symbols and numbers (activated by holding enter) - FKEYS, // Function keys (activated by a thumb button) -}; - -// counter that increments on all key press events. This is needed for our LT -// handling -uint16_t press_counter = 0; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - -// Keymap 0: Base layer - -[BASE] = LAYOUT_ergodox( - // left hand --------------------------------------------------------------------------------------------------- - KC_NO, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_NO, - KC_GRV, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_LGUI, - KC_SLSH, KC_A, KC_O, KC_E, KC_U, KC_I, - KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_HOME, - KC_LCTL, KC_LALT, KC_PGUP, KC_PGDN, KC_NO, - // left thumb -------------------------------------------------------------------------------------------------- - KC_NO, KC_NO, - KC_NO, - KC_SPC, KC_TAB, KC_FKEYS, - // right hand -------------------------------------------------------------------------------------------------- - KC_NO, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_NO, - KC_RGUI, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSLS, - KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, - KC_END, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSFT, - KC_LEFT, KC_UP, KC_DOWN, KC_RIGHT, KC_RCTL, - // right thumb ------------------------------------------------------------------------------------------------- - KC_NO, KC_NO, - KC_NO, - KC_DEL, KC_BSPC, KC_ENT -), -// SYMNUM -- numpad and function keys -[SYMNUM] = LAYOUT_ergodox( - // left hand --------------------------------------------------------------------------------------------------- - KC_TRNS, LALT(KC_1), LALT(KC_2), LALT(KC_3), LALT(KC_4), LALT(KC_5), KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_AMPR, KC_TRNS, KC_TRNS, - KC_TRNS, KC_LCBR, KC_LBRC, KC_LPRN, KC_0, KC_MINS, - KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_SLSH, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - // left thumb -------------------------------------------------------------------------------------------------- - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand -------------------------------------------------------------------------------------------------- - KC_TRNS, LALT(KC_6), LALT(KC_7), LALT(KC_8), LALT(KC_9), LALT(KC_0), KC_TRNS, - KC_TRNS, KC_PERC, KC_EQL, KC_LT, KC_GT, KC_EXLM, KC_TRNS, - KC_PLUS, KC_1, KC_RPRN, KC_RBRC, KC_RCBR, KC_TRNS, - KC_TRNS, KC_ASTR, KC_2, KC_3, KC_4, KC_5, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - // right thumb ------------------------------------------------------------------------------------------------- - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -// FKEYS -- function keys -[FKEYS] = LAYOUT_ergodox( - // left hand --------------------------------------------------------------------------------------------------- - KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - // left thumb -------------------------------------------------------------------------------------------------- - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand -------------------------------------------------------------------------------------------------- - KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - // right thumb ------------------------------------------------------------------------------------------------- - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -}; - -// Code to handle layer tap. -// -// The default code doesn't work for me, so I rolled my own code. The main -// difference is that it always tries to send modifier+key combination, rather -// than two keys. One place where this is noticable is if you tap the key, -// then try hold it. - -struct tap_start_info { - uint16_t timer; - uint16_t initial_press_counter; -}; - -static struct tap_start_info tap_start_infos[5]; - -// Quick check to see if a key is down. Note that this requires NKRO enabled -static bool key_down(uint8_t code) { - return (keyboard_report->nkro.bits[code>>3] & 1<<(code&7)) != 0; -} - -static bool handle_lt(uint16_t keycode, keyrecord_t *record, uint8_t layer, uint8_t index) { - struct tap_start_info* tap_start = tap_start_infos + index; - - if(record->event.pressed) { - layer_on(layer); - tap_start->timer = timer_read(); - tap_start->initial_press_counter = press_counter; - } else { - layer_off(layer); - // Only click the key if: - // - No other keys are pressed between the press and release events - // - The release happens before the ONESHOT_TIMEOUT - if(press_counter == tap_start->initial_press_counter && timer_elapsed(tap_start->timer) < ONESHOT_TIMEOUT) { - register_code16(keycode); - unregister_code16(keycode); - } - } - return false; -} - -static bool handle_mt(uint16_t keycode, keyrecord_t *record, uint8_t mods, uint8_t index) { - struct tap_start_info* tap_start = tap_start_infos + index; - - if(record->event.pressed) { - register_mods(mods); - tap_start->timer = timer_read(); - tap_start->initial_press_counter = press_counter; - } else { - unregister_mods(mods); - // Only click the key if: - // - No other keys are pressed between the press and release events - // - The release happens before the ONESHOT_TIMEOUT - if(press_counter == tap_start->initial_press_counter && timer_elapsed(tap_start->timer) < ONESHOT_TIMEOUT) { - register_code16(keycode); - unregister_code16(keycode); - } - } - return false; -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if(record->event.pressed) { - press_counter++; - // The symbol layer allows sequences repeat the same "physical" key. - // For example "0)", which is like pressing the "0" key twice in a - // row. It's very easy to make a sequence of these where the ")" - // press comes before the "0" release. If that happens, force a - // release of the "0" key, otherwise nothing will happen. - uint8_t shortcode = keycode & 0xFF; - if(key_down(shortcode)) { - unregister_code(shortcode); - } - } - - switch(keycode) { - case KC_ENTER: - return handle_lt(keycode, record, SYMNUM, 0); - - case KC_TAB: - return handle_mt(keycode, record, MOD_BIT(KC_LCTL), 1); - - case KC_LSFT: - case KC_RSFT: - return handle_mt(KC_ESC, record, MOD_BIT(keycode), 2); - } - return true; -} diff --git a/keyboards/ergodox_ez/keymaps/bdk/readme.md b/keyboards/ergodox_ez/keymaps/bdk/readme.md deleted file mode 100644 index 36a211d321..0000000000 --- a/keyboards/ergodox_ez/keymaps/bdk/readme.md +++ /dev/null @@ -1,36 +0,0 @@ -# The BDK Ergodox Keyboard Layout - -## Dvorak-based - -This was the first alternative layout I switched to and I don't want to change -again. - -## Mod-tap / Layer-tap is great for thumb keys - -This means a key that activates a layer/modifier when you hold it down, but -results in a keyclick when you tap it. Thumb keys are great for this since -they are good for both high-usage keys as well as modifiers. - -The one thing to avoid is when you mean to tap a key, but hit the next key -before you release, which results in the modifier/layer instead of a tap. To -avoid this, I chose Enter/Tab as the tap keys, since they aren't chorded -together with other keys often. - -The other issue is I found several problems with using the standard MT,LT code, -so I rolled my own to handle it. - -## Don't have too many layers - -My first layouts had multiple layers that I could switch to, but that -overloaded my brain. This layout basically only uses 1 extra layer. -Technically there's also a function key layer, but I only use those keys for -a handlful of things: boot order, rename, reload page, that's basically it. - -## Brackets should be easy to use - -There's a lot of ways to lay out a symbol layer. I organized mine around -making the {[()]} chars easy to use since they're so frequent in programming. -I put them all on the symbol layer home row. - -I also arranged the numbers so 0/1 were also on the symbol layer home row. -This makes for fairly easy chording of "[0]" and "[1]". diff --git a/keyboards/ergodox_ez/keymaps/bdk/rules.mk b/keyboards/ergodox_ez/keymaps/bdk/rules.mk deleted file mode 100644 index 6c51636239..0000000000 --- a/keyboards/ergodox_ez/keymaps/bdk/rules.mk +++ /dev/null @@ -1,3 +0,0 @@ -# CONSOLE_ENABLE = yes -# DEBUG_ENABLE = yes -COMMAND_ENABLE = no diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/config.h b/keyboards/ergodox_ez/keymaps/bepo_tm_style/config.h deleted file mode 100755 index c03ee70bd5..0000000000 --- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/config.h +++ /dev/null @@ -1,26 +0,0 @@ -#include "../../config.h" - -// Sets good default for the speed of the mouse. -#undef MOUSEKEY_INTERVAL -#undef MOUSEKEY_DELAY -#undef MOUSEKEY_TIME_TO_MAX -#undef MOUSEKEY_MAX_SPEED - -#define MOUSEKEY_INTERVAL 20 -#define MOUSEKEY_DELAY 100 -#define MOUSEKEY_TIME_TO_MAX 60 -#define MOUSEKEY_MAX_SPEED 7 - -#undef MOUSEKEY_WHEEL_MAX_SPEED -#undef MOUSEKEY_WHEEL_TIME_TO_MAX -#undef MOUSEKEY_WHEEL_DELAY - -#define MOUSEKEY_WHEEL_MAX_SPEED 5 -#define MOUSEKEY_WHEEL_TIME_TO_MAX 60 -#define MOUSEKEY_WHEEL_DELAY 100 - -#undef TAPPING_TOGGLE -#undef TAPPING_TERM - -#define TAPPING_TOGGLE 1 -#define TAPPING_TERM 150 diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c b/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c deleted file mode 100755 index 99d10e9a12..0000000000 --- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c +++ /dev/null @@ -1,349 +0,0 @@ -// An Ergodox EZ keymap meant to be used with a bรฉpo layout (FR ergonomic -// layout, dvorak style). The overall design is slightly inspired by the -// TypeMatrix keyboard. Switching between a TypeMatrix and an Ergodox with this -// layout should be relatively easy. -// -// See the README.md file for an image of this keymap. - -#include QMK_KEYBOARD_H -#include "keymap_bepo.h" - -// The layers that we are defining for this keyboards. -#define BASE 0 -#define FN 1 -#define MOUSE 2 -#define NUMS 3 -#define SWAP 4 -#define SYSLEDS 5 - -// The Tap Dance identifiers, used in the TD keycode and tap_dance_actions array. -#define TAP_MACRO 0 - -// A 'transparent' key code (that falls back to the layers below it). -#define ___ KC_TRANSPARENT - -// A 'blocking' key code. Does nothing but prevent falling back to another layer. -#define XXX KC_NO - -// Some combined keys (one normal keycode when tapped and one modifier or layer -// toggle when held). -#define ESC_FN LT(FN, KC_ESC) // ESC key and FN layer toggle. -#define M_RSFT MT(MOD_RSFT, BP_M) // 'M' key and right shift modifier. -#define W_RCTL MT(MOD_RCTL, BP_W) // 'W' key and right control modifier. -#define SPC_RALT MT(MOD_RALT, KC_SPC) // SPACE key and right alt modifier. -#define PERC_FN LT(FN, BP_PERC) // '%' key and FN layer toggle. - -// The most portable copy/paste keys (windows (mostly), linux, and some terminal emulators). -#define MK_CUT LSFT(KC_DEL) // shift + delete -#define MK_COPY LCTL(KC_INS) // ctrl + insert -#define MK_PASTE LSFT(KC_INS) // shift + insert - -// Custom keycodes -enum { - // SAFE_RANGE must be used to tag the first element of the enum. - // DYNAMIC_MACRO_RANGE must always be the last element of the enum if other - // values are added (as its value is used to create a couple of other keycodes - // after it). - DYNAMIC_MACRO_RANGE = SAFE_RANGE, -}; - -// This file must be included after DYNAMIC_MACRO_RANGE is defined... -#include "dynamic_macro.h" - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - // Layer 0: basic keys. - [BASE] = LAYOUT_ergodox( - /* left hand */ - BP_DLR, BP_DQUO, BP_LDAQ, BP_RDAQ, BP_LPRN, BP_RPRN, KC_DEL, - KC_TAB, BP_B, BP_EACU, BP_P, BP_O, BP_EGRV, KC_BSPC, - KC_LSFT, BP_A, BP_U, BP_I, BP_E, BP_COMM, - KC_LCTL, BP_AGRV, BP_Y, BP_X, BP_DOT, BP_K, KC_ENT, - ESC_FN, BP_ECIR, KC_LGUI, KC_LALT, SPC_RALT, - TT(SWAP), KC_MNXT, - KC_MPLY, - TT(FN), TT(NUMS), KC_MPRV, - /* right hand */ - KC_DEL, BP_AT, BP_PLUS, BP_MINS, BP_SLSH, BP_ASTR, BP_EQL, - KC_BSPC, BP_DCIR, BP_V, BP_D, BP_L, BP_J, BP_Z, - BP_C, BP_T, BP_S, BP_R, BP_N, M_RSFT, - KC_ENT, BP_QUOT, BP_Q, BP_G, BP_H, BP_F, W_RCTL, - SPC_RALT, KC_LALT, TT(SYSLEDS), BP_CCED, PERC_FN, - KC_LEFT, KC_RIGHT, - KC_UP, - KC_DOWN, TD(TAP_MACRO), TT(MOUSE)), - - // Layer 1: function and media keys. - [FN] = LAYOUT_ergodox( - /* left hand */ - KC_SLEP, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, KC_LSFT, - ___, ___, MK_CUT, MK_COPY, MK_PASTE, KC_LCTL, ___, - ___, ___, ___, ___, ___, - ___, KC_VOLU, - KC_VOLD, - ___, ___, KC_MUTE, - /* right hand */ - ___, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - ___, ___, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_F12, - ___, KC_LEFT, KC_DOWN, KC_RIGHT, KC_PGDN, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, - KC_HOME, KC_END, - KC_PGUP, - KC_PGDN, ___, ___), - // Note that any change to the FN layer above must be added to - // the MOUSE layer below (except for the arrow keys). - - // Layer 2: Mouse control. - [MOUSE] = LAYOUT_ergodox( - /* left hand */ - KC_SLEP, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, ___, - ___, ___, KC_BTN4, KC_MS_U, KC_BTN5, ___, ___, - ___, ___, KC_MS_L, KC_MS_D, KC_MS_R, KC_LSFT, - ___, ___, MK_CUT, MK_COPY, MK_PASTE, KC_LCTL, ___, - ___, ___, ___, ___, ___, - ___, KC_VOLU, - KC_VOLD, - ___, ___, KC_MUTE, - /* right hand */ - ___, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - ___, ___, XXX, KC_WH_U, XXX, XXX, KC_F12, - ___, KC_WH_L, KC_WH_D, KC_WH_R, XXX, ___, - ___, ___, KC_ACL0, KC_ACL1, KC_ACL2, ___, ___, - KC_BTN1, KC_BTN2, KC_BTN3, ___, ___, - ___, ___, - ___, - ___, ___, ___), - - // Layer 3: Numeric keypad and system keys. - [NUMS] = LAYOUT_ergodox( - /* left hand */ - KC_PSCR, KC_INS, KC_PAUS, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, - ___, ___, MK_CUT, MK_COPY, MK_PASTE, ___, ___, - ___, ___, ___, ___, ___, - ___, ___, - ___, - ___, ___, ___, - /* right hand */ - ___, ___, ___, ___, ___, ___, KC_NUM, - ___, KC_PEQL, KC_P7, KC_P8, KC_P9, KC_PMNS, KC_SCRL, - KC_PCMM, KC_P4, KC_P5, KC_P6, KC_PPLS, ___, - KC_PENT, KC_P0, KC_P1, KC_P2, KC_P3, KC_PAST, ___, - ___, ___, ___, KC_PSLS, ___, - ___, ___, - ___, - ___, ___, ___), - - // Layer 4: hand swap, all keys are mirrored to the other side of the keyboard - // except for the layer toggle itself (so there is no right arrow when this - // layer is activated). - [SWAP] = LAYOUT_ergodox( - /* left hand */ - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, - TT(SWAP), ___, - ___, - ___, ___, ___, - /* right hand */ - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, - ___, TT(SWAP), - ___, - ___, ___, ___), - - // Layer 5: The LEDs are showing the "standard" caps/num/scroll lock indicator - // instead of their default which shows the currently active layers (FN, NUMS, - // and MOUSE in that order). - [SYSLEDS] = LAYOUT_ergodox( - /* left hand */ - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, - ___, ___, - ___, - ___, ___, ___, - /* right hand */ - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, - ___, ___, TT(SYSLEDS), ___, ___, - ___, ___, - ___, - ___, ___, ___), -}; - -// Whether the macro 1 is currently being recorded. -static bool is_macro1_recording = false; - -// The current set of active layers (as a bitmask). -// There is a global 'layer_state' variable but it is set after the call -// to layer_state_set_user(). -static layer_state_t current_layer_state = 0; -layer_state_t layer_state_set_user(layer_state_t state); - -// Method called at the end of the tap dance on the TAP_MACRO key. That key is -// used to start recording a macro (double tap or more), to stop recording (any -// number of tap), or to play the recorded macro (1 tap). -void macro_tapdance_fn(tap_dance_state_t *state, void *user_data) { - uint16_t keycode; - keyrecord_t record; - dprintf("macro_tap_dance_fn %d\n", state->count); - if (is_macro1_recording) { - keycode = DM_RSTP; - is_macro1_recording = false; - layer_state_set_user(current_layer_state); - } else if (state->count == 1) { - keycode = DM_PLY1; - } else { - keycode = DM_REC1; - is_macro1_recording = true; - layer_state_set_user(current_layer_state); - } - - record.event.pressed = true; - process_record_dynamic_macro(keycode, &record); - record.event.pressed = false; - process_record_dynamic_macro(keycode, &record); -} - -// The definition of the tap dance actions: -tap_dance_action_t tap_dance_actions[] = { - // This Tap dance plays the macro 1 on TAP and records it on double tap. - [TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn), -}; - -// Runs for each key down or up event. -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if (keycode != TD(TAP_MACRO)) { - // That key is processed by the macro_tapdance_fn. Not ignoring it here is - // mostly a no-op except that it is recorded in the macros (and uses space). - // We can't just return false when the key is a tap dance, because - // process_record_user, is called before the tap dance processing (and - // returning false would eat the tap dance). - if (!process_record_dynamic_macro(keycode, record)) { - return false; - } - } - - return true; // Let QMK send the enter press/release events -} - -// Runs just one time when the keyboard initializes. -void matrix_init_user(void) { - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); -}; - -// Runs constantly in the background, in a loop. -void matrix_scan_user(void) { - -}; - -// The state of the LEDs requested by the system, as a bitmask. -static led_t sys_led_state = {0}; - -// Value to use to switch LEDs on. The default value of 255 is far too bright. -static const uint8_t max_led_value = 20; - -// Whether the given layer (one of the constant defined at the top) is active. -#define LAYER_ON(layer) (current_layer_state & (1<<layer)) - -void led_1_on(void) { - ergodox_right_led_1_on(); - ergodox_right_led_1_set(max_led_value); -} - -void led_2_on(void) { - ergodox_right_led_2_on(); - ergodox_right_led_2_set(max_led_value); -} - -void led_3_on(void) { - ergodox_right_led_3_on(); - ergodox_right_led_3_set(max_led_value); -} - -void led_1_off(void) { - ergodox_right_led_1_off(); -} - -void led_2_off(void) { - ergodox_right_led_2_off(); -} - -void led_3_off(void) { - ergodox_right_led_3_off(); -} - -// Called when the computer wants to change the state of the keyboard LEDs. -bool led_update_user(led_t led_state) { - sys_led_state = led_state; - if (LAYER_ON(SYSLEDS)) { - if (sys_led_state.caps_lock) { - led_1_on(); - } else { - led_1_off(); - } - if (sys_led_state.num_lock) { - led_2_on(); - } else { - led_2_off(); - } - if (sys_led_state.scroll_lock) { - led_3_on(); - } else { - led_3_off(); - } - } - return false; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - current_layer_state = state; - swap_hands = LAYER_ON(SWAP); - - if (is_macro1_recording) { - led_1_on(); - led_2_on(); - led_3_on(); - return state; - } - - if (LAYER_ON(SYSLEDS)) { - led_update_user(sys_led_state); - return state; - } - - if (LAYER_ON(FN)) { - led_1_on(); - } else { - led_1_off(); - } - - if (LAYER_ON(NUMS)) { - led_2_on(); - } else { - led_2_off(); - } - - if (LAYER_ON(MOUSE)) { - led_3_on(); - } else { - led_3_off(); - } - - return state; -}; diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/readme.md b/keyboards/ergodox_ez/keymaps/bepo_tm_style/readme.md deleted file mode 100755 index 5571f120cc..0000000000 --- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/readme.md +++ /dev/null @@ -1,22 +0,0 @@ -# Bรฉpo compatible keymap for the Ergodox EZ, *TypeMatrix* style. - -This keymap is meant to be used with a [Bรฉpo](http://bepo.fr) layout. It is -designed to be somewhat similar to a TypeMatrix keyboard so that switching -between one and the other is easy. - -![The Keymap](https://i.imgur.com/yChIbaK.png) - -## Build instruction - -To build this on Windows, under Cygwin, provided that you have installed the -Arduino environment and Teensy loaded in the default path, you can do: - -```shell -PATH=/cygdrive/c/Program\ Files\ \(x86\)/Arduino/hardware/tools/avr/bin:$PATH -make ergodox_ez:bepo_tm_style:all -``` - -## Debug - -See https://github.com/tmk/tmk_keyboard#magic-commands for command that can help -debug, together with the [hid_listen tool](https://docs.qmk.fm/faq_debug.html).
\ No newline at end of file diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk b/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk deleted file mode 100755 index 785b3df8be..0000000000 --- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/rules.mk +++ /dev/null @@ -1,14 +0,0 @@ -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -SWAP_HANDS_ENABLE= yes # Allow swapping hands of keyboard -KEY_LOCK_ENABLE = yes -TAP_DANCE_ENABLE = yes # Enable the tap dance feature. -CONSOLE_ENABLE = yes # Console for debug - -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -UNICODE_ENABLE = no -SLEEP_LED_ENABLE = no -RGBLIGHT_ENABLE = no -RGBLIGHT_ANIMATION = no diff --git a/keyboards/ergodox_ez/keymaps/blakedietz/keymap.c b/keyboards/ergodox_ez/keymaps/blakedietz/keymap.c deleted file mode 100644 index 67c50eb129..0000000000 --- a/keyboards/ergodox_ez/keymaps/blakedietz/keymap.c +++ /dev/null @@ -1,264 +0,0 @@ -#include QMK_KEYBOARD_H -#include "debug.h" -#include "action_layer.h" - -/** - * This section of macros is for tap or hold functionality. Keys will fire off the second symbol in the name if tapped - * or fire the first symbol in the name if held. For example - * GUI_Z - * - * - will fire z if tapped - * - will fire cmd/super/win if held - */ -#define ALT_DOT ALT_T(KC_DOT) -#define ALT_X ALT_T(KC_X) -#define CTL_SLSH CTL_T(KC_SLSH) -#define CTL_Z CTL_T(KC_Z) -#define GUI_C GUI_T(KC_C) -#define GUI_COMM GUI_T(KC_COMM) -#define HPR_ESC ALL_T(KC_ESC) -#define HPR_QUO ALL_T(KC_QUOT) - -#define BASE 0 -#define SYMB 1 -#define MDIA 2 -#define MOUSE 3 -#define DEV 4 - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -/* Keymap 0: Basic layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | = | 1 | 2 | 3 | 4 | 5 | LEFT | | RIGHT| 6 | 7 | 8 | 9 | 0 | - | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | Del | Q | W | E | R | T | L1 | | L1 | Y | U | I | O | P | \ | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | BkSp | A | S | D | F | G |------| |------| H | J | K | L |; / L2| '" | - * |--------+------+------+------+------+------| Hyper| | Meh |------+------+------+------+------+--------| - * | LShift |Z/Ctrl|X/Alt |C/GUI | V | B | | | | N | M |,/GUI |./ALT |//Ctrl| RShift | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * |Grv/L1| '" |AltShf| Left | Right| | Up | Down | [ | ] | ~L1 | - * `----------------------------------' `----------------------------------' - * ,-------------. ,------------. - * |MOUSE | Home | | PgDn | PgUp| - * ,------|------|------| |------+-----+------. - * | | | ESC | | ESC | | | - * | Space|Backsp|------| |------| Tab |Enter | - * | |ace | LGui | | LGui | | | - * `--------------------' `-------------------' - */ -// If it accepts an argument (i.e, is a function), it doesn't need KC_. -// Otherwise, it needs KC_* -[BASE] = LAYOUT_ergodox( // layer 0 : default - // left hand - KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT, - KC_DEL, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(DEV), - KC_BSPC, KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT, CTL_T(KC_Z), ALT_T(KC_X), GUI_T(KC_C), KC_V, KC_B, ALL_T(KC_NO), - LT(SYMB,KC_GRV), KC_QUOT, LALT(KC_LSFT), KC_LEFT, KC_RGHT, - - TG(MOUSE), KC_HOME, - KC_ESC, - KC_SPC, KC_BSPC, KC_LGUI, - - // right hand - KC_RGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - TG(SYMB), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN), KC_QUOT, - MEH_T(KC_NO), KC_N, KC_M, GUI_COMM, ALT_DOT, CTL_SLSH, KC_RSFT, - KC_DOWN, KC_UP, KC_LBRC, KC_RBRC, TT(SYMB), - - KC_PGDN, KC_PGUP, - KC_ESC, - KC_LGUI, KC_TAB, KC_ENT - ), -/* Keymap 1: Symbol Layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | ! | @ | { | } | | | | | | Up | 7 | 8 | 9 | * | F12 | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | # | $ | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | + | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | | . | 0 | = | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// SYMBOLS -[SYMB] = LAYOUT_ergodox( - // left hand - KC_TRNS,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, - KC_TRNS,KC_EXLM,KC_AT, KC_LCBR,KC_RCBR,KC_PIPE,KC_TRNS, - KC_TRNS,KC_HASH,KC_DLR, KC_LPRN,KC_RPRN,KC_GRV, - KC_TRNS,KC_PERC,KC_CIRC,KC_LBRC,KC_RBRC,KC_TILD,KC_TRNS, - KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS, - KC_TRNS,KC_TRNS, - KC_TRNS, - KC_TRNS,KC_TRNS,KC_TRNS, - // right hand - KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - KC_TRNS, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12, - KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS, - KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS, - KC_TRNS,KC_DOT, KC_0, KC_EQL, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -/* Keymap 2: Media and mouse keys - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | |------| |------| | Prev | Next | Mute | | Play | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | VolDn| VolUp| | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | | | | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// MEDIA -[MDIA] = LAYOUT_ergodox( - // left hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_MPRV, KC_MNXT, KC_MUTE, KC_TRNS, KC_MPLY, - KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -[MOUSE] = LAYOUT_ergodox( - // left hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_ACL2, KC_ACL1, KC_ACL0, KC_TRNS, KC_TRNS, - KC_TRNS, KC_BTN1, KC_BTN2, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -[DEV] = LAYOUT_ergodox( - // left hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_F12, KC_F13, KC_F14, KC_F15, KC_F16, KC_TRNS, - KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, - KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -}; - -// Runs constantly in the background, in a loop. -void matrix_scan_user(void) { - uint8_t layer = get_highest_layer(layer_state); - - ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - switch (layer) { - case SYMB: - // Binary 1 represented by the leds - // --* - ergodox_right_led_3_on(); - break; - case MDIA: - // Binary 2 represented by the leds - // -*- - ergodox_right_led_2_on(); - break; - case MOUSE: - // Binary 3 represented by the leds - // -** - ergodox_right_led_3_on(); - ergodox_right_led_2_on(); - break; - case DEV: - // Binary 4 represented by the leds - // *-- - ergodox_right_led_1_on(); - break; - default: - // none - break; - } -}; - -//bool process_record_user(uint16_t keycode, keyrecord_t *record) { -// switch (keycode) { -// case QWERTY: -// return false -// break; -// case LOWER: -// if (record->event.pressed) { -// layer_on(_LOWER); -// update_tri_layer(_LOWER, _RAISE, _ADJUST); -// } else { -// layer_off(_LOWER); -// update_tri_layer(_LOWER, _RAISE, _ADJUST); -// } -// return false; -// break; -// case RAISE: -// if (record->event.pressed) { -// layer_on(_RAISE); -// update_tri_layer(_LOWER, _RAISE, _ADJUST); -// } else { -// layer_off(_RAISE); -// update_tri_layer(_LOWER, _RAISE, _ADJUST); -// } -// return false; -// break; -// } -// return true; -//} diff --git a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/config.h b/keyboards/ergodox_ez/keymaps/bpruitt-goddard/config.h deleted file mode 100644 index c03ee70bd5..0000000000 --- a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/config.h +++ /dev/null @@ -1,26 +0,0 @@ -#include "../../config.h" - -// Sets good default for the speed of the mouse. -#undef MOUSEKEY_INTERVAL -#undef MOUSEKEY_DELAY -#undef MOUSEKEY_TIME_TO_MAX -#undef MOUSEKEY_MAX_SPEED - -#define MOUSEKEY_INTERVAL 20 -#define MOUSEKEY_DELAY 100 -#define MOUSEKEY_TIME_TO_MAX 60 -#define MOUSEKEY_MAX_SPEED 7 - -#undef MOUSEKEY_WHEEL_MAX_SPEED -#undef MOUSEKEY_WHEEL_TIME_TO_MAX -#undef MOUSEKEY_WHEEL_DELAY - -#define MOUSEKEY_WHEEL_MAX_SPEED 5 -#define MOUSEKEY_WHEEL_TIME_TO_MAX 60 -#define MOUSEKEY_WHEEL_DELAY 100 - -#undef TAPPING_TOGGLE -#undef TAPPING_TERM - -#define TAPPING_TOGGLE 1 -#define TAPPING_TERM 150 diff --git a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c b/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c deleted file mode 100644 index 87ad7e63e4..0000000000 --- a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c +++ /dev/null @@ -1,234 +0,0 @@ -// An Ergodox EZ keymap mostly following the programmer's dvorak layout. -// There is a standard QWERTY layer as well -// -// See the README.md file for an image of this keymap. - -#include QMK_KEYBOARD_H - -// The layers that we are defining for this keyboards. -#define BASE 0 -#define NUM 1 -#define QWERTY 2 -#define MAC 3 - -// The Tap Dance identifiers, used in the TD keycode and tap_dance_actions array. -#define TAP_MACRO 0 - -// SAFE_RANGE must be used to tag the first element of the enum. -// DYNAMIC_MACRO_RANGE must always be the last element of the enum if other -// values are added (as its value is used to create a couple of other keycodes -// after it). -enum custom_keycodes { - MC_ARROW = SAFE_RANGE, - DYNAMIC_MACRO_RANGE -}; - -// A 'transparent' key code (that falls back to the layers below it). -#define ___ KC_TRANSPARENT - -// A 'blocking' key code. Does nothing but prevent falling back to another layer. -#define XXX KC_NO - -// Some combined keys (one normal keycode when tapped and one modifier or layer -// toggle when held). -#define SPC_RALT MT(MOD_RALT, KC_SPC) // SPACE key and right alt modifier. - -// The most portable copy/paste keys (windows (mostly), linux, and some terminal emulators). -#define MK_CUT LSFT(KC_DEL) // shift + delete -#define MK_COPY LCTL(KC_INS) // ctrl + insert -#define MK_PASTE LSFT(KC_INS) // shift + insert -//Move mac desktop spaces -#define MAC_L LGUI(LSFT(KC_UP)) // cmd + shift + up -#define MAC_R LGUI(LSFT(KC_DOWN)) // cmd + shift + down - -// This file must be included after DYNAMIC_MACRO_RANGE is defined... -#include "dynamic_macro.h" - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - // Layer 0: basic keys. - [BASE] = LAYOUT_ergodox_pretty( - KC_DLR, KC_AMPR, KC_LBRC, KC_LCBR, KC_RCBR, KC_LPRN, KC_CIRC, KC_F4, KC_EQUAL,KC_ASTR, KC_BSLS, KC_PLUS, KC_RBRC, KC_EXLM, - GUI_T(KC_BSLS), KC_SCLN, KC_COMMA, KC_DOT, KC_P, KC_Y, KC_PERC, KC_DELETE, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLASH, - MO(NUM), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINUS, - SC_LSPO, KC_QUOTE, KC_Q, KC_J, KC_K, KC_X, KC_LALT, TD(TAP_MACRO),KC_B, KC_M, KC_W, KC_V, KC_Z, SC_RSPC, - KC_AT, KC_HASH, KC_GRAVE, KC_LEFT, KC_RIGHT, KC_UP, KC_DOWN, KC_HOME, KC_END, TO(QWERTY), - ALT_T(KC_APPLICATION), ALL_T(KC_NO), KC_PGUP, KC_LGUI, - KC_BSLS, TO(MAC), - KC_ENTER, KC_TAB, CTL_T(KC_ESCAPE), CTL_T(KC_ESCAPE), KC_BSPC, KC_SPACE), - - // Layer 1: function and numpad keys. - [NUM] = LAYOUT_ergodox_pretty( - ___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, ___, ___, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - ___, KC_EXLM, KC_COMMA, KC_DOT, KC_MS_BTN1, KC_MS_BTN2, ___, ___, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12, - XXX, ___, KC_LCBR, KC_RCBR, MC_ARROW, KC_GRAVE, KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_UNDS, - ___, ___, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, ___, ___, KC_0, KC_1, KC_2, KC_3, KC_KP_SLASH, KC_BSLS, - ___, ___, ___, ___, ___, ___, KC_0, KC_KP_DOT, KC_EQUAL, ___, - ___, ___, KC_KP_ASTERISK, KC_KP_SLASH, - KC_LCTL, ___, - KC_KP_PLUS, KC_KP_MINUS, KC_DLR, KC_DELETE, KC_BSPC, KC_SPACE), - - // Layer 2: QWERTY control. - [QWERTY] = LAYOUT_ergodox_pretty( - /* left hand */ - KC_EQUAL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT, KC_RIGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, - KC_DELETE, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, TO(BASE), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - MO(NUM), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, GUI_T(KC_QUOT), - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, ALT_T(KC_NO), MEH_T(KC_NO), KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, SC_RSPC, - KC_GRAVE, KC_QUOTE, LALT(KC_TAB), KC_LEFT, KC_RIGHT, KC_UP, KC_DOWN, KC_LBRC, KC_RBRC, TO(BASE), - ___, KC_LGUI, ___, KC_ESCAPE, - KC_HOME, KC_PGUP, - KC_ENTER, KC_TAB, KC_END, KC_PGDN, KC_BSPC, KC_SPACE), - - // Layer 3: Mac layer - [MAC] = LAYOUT_ergodox_pretty( - /* left hand */ - ___, KC_1, KC_2, KC_3, KC_4, KC_5, ___, ___, KC_6, KC_7, KC_8, KC_9, KC_0, ___, - ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, - ___, ___, ___, MAC_L, MAC_R, ___, ___, ___, ___, ___, - ___, ___, ___, ___, - ___, TO(BASE), - KC_LGUI, KC_LALT, KC_LGUI, KC_LGUI, KC_LALT, KC_LGUI), -}; - -// Whether the macro 1 is currently being recorded. -static bool is_macro1_recording = false; - -// The current set of active layers (as a bitmask). -// There is a global 'layer_state' variable but it is set after the call -// to layer_state_set_user(). -static layer_state_t current_layer_state = 0; -layer_state_t layer_state_set_user(layer_state_t state); - -// Method called at the end of the tap dance on the TAP_MACRO key. That key is -// used to start recording a macro (double tap or more), to stop recording (any -// number of tap), or to play the recorded macro (1 tap). -void macro_tapdance_fn(tap_dance_state_t *state, void *user_data) { - uint16_t keycode; - keyrecord_t record; - dprintf("macro_tap_dance_fn %d\n", state->count); - if (is_macro1_recording) { - keycode = DM_RSTP; - is_macro1_recording = false; - layer_state_set_user(current_layer_state); - } else if (state->count == 1) { - keycode = DM_PLY1; - } else { - keycode = DM_REC1; - is_macro1_recording = true; - layer_state_set_user(current_layer_state); - } - - record.event.pressed = true; - process_record_dynamic_macro(keycode, &record); - record.event.pressed = false; - process_record_dynamic_macro(keycode, &record); -} - -// The definition of the tap dance actions: -tap_dance_action_t tap_dance_actions[] = { - // This Tap dance plays the macro 1 on TAP and records it on double tap. - [TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn) -}; - -// Runs for each key down or up event. -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - if (keycode != TD(TAP_MACRO)) { - // That key is processed by the macro_tapdance_fn. Not ignoring it here is - // mostly a no-op except that it is recorded in the macros (and uses space). - // We can't just return false when the key is a tap dance, because - // process_record_user, is called before the tap dance processing (and - // returning false would eat the tap dance). - if (!process_record_dynamic_macro(keycode, record)) { - return false; - } - - if(record->event.pressed) { - switch(keycode) { - case MC_ARROW: - SEND_STRING("=>"); - return false; - break; - } - } - } - - return true; // Let QMK send the enter press/release events -} - -// Runs just one time when the keyboard initializes. -void matrix_init_user(void) { - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); -}; - -// Runs constantly in the background, in a loop. -void matrix_scan_user(void) { - -}; - -// Value to use to switch LEDs on. The default value of 255 is far too bright. -static const uint8_t max_led_value = 20; - -// Whether the given layer (one of the constant defined at the top) is active. -#define LAYER_ON(layer) (current_layer_state & (1<<layer)) - -void led_1_on(void) { - ergodox_right_led_1_on(); - ergodox_right_led_1_set(max_led_value); -} - -void led_2_on(void) { - ergodox_right_led_2_on(); - ergodox_right_led_2_set(max_led_value); -} - -void led_3_on(void) { - ergodox_right_led_3_on(); - ergodox_right_led_3_set(max_led_value); -} - -void led_1_off(void) { - ergodox_right_led_1_off(); -} - -void led_2_off(void) { - ergodox_right_led_2_off(); -} - -void led_3_off(void) { - ergodox_right_led_3_off(); -} - -layer_state_t layer_state_set_user(layer_state_t state) { - current_layer_state = state; - - if (is_macro1_recording) { - led_1_on(); - led_2_on(); - led_3_on(); - return state; - } - - if (LAYER_ON(NUM)) { - led_1_on(); - } else { - led_1_off(); - } - - if (LAYER_ON(MAC)) { - led_2_on(); - } else { - led_2_off(); - } - - if (LAYER_ON(QWERTY)) { - led_3_on(); - } else { - led_3_off(); - } - - return state; -}; diff --git a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/readme.md b/keyboards/ergodox_ez/keymaps/bpruitt-goddard/readme.md deleted file mode 100644 index 33040800e9..0000000000 --- a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/readme.md +++ /dev/null @@ -1,23 +0,0 @@ -# Ergodox EZ Layout by bpruitt-goddard -![Layout Image](https://i.imgur.com/kVPmpFG.png) - -[KLE link](http://www.keyboard-layout-editor.com/#/gists/5896c5a729a64633d3f63de71e7e0e79) - -## Layers -| Layer | Legend | -| ----- | ------ | -| Base | Top (black) | -| Num | Center (blue) | -| QWERTY | Bottom (Red) | -| MAC | Front/Bottom-most (Yellow) | - -## Features -* Tap-dance dynamic macro key. - * Tap twice for starting macro. Then tap once to complete the macro - * Tap one for replaying macro -* Numpad on right hand with momentary Num layer -* QWERTY layer for non-dvorak users -* Mac layer for changing thumbpad modifier keys with Command -* Uses the following dual function keys - * Space Cadet shifts (shift/paren) - * Ctrl/Esc diff --git a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/rules.mk b/keyboards/ergodox_ez/keymaps/bpruitt-goddard/rules.mk deleted file mode 100644 index 75832dcf8e..0000000000 --- a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/rules.mk +++ /dev/null @@ -1,14 +0,0 @@ -MOUSEKEY_ENABLE = yes # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -COMMAND_ENABLE = yes # Commands for debug and configuration -NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -SWAP_HANDS_ENABLE = yes # Allow swapping hands of keyboard -KEY_LOCK_ENABLE = yes -TAP_DANCE_ENABLE = yes # Enable the tap dance feature. -CONSOLE_ENABLE = yes # Console for debug - -BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite -UNICODE_ENABLE = no -SLEEP_LED_ENABLE = no -RGBLIGHT_ENABLE = no -RGBLIGHT_ANIMATION = no diff --git a/keyboards/ergodox_ez/keymaps/ifohancroft/config.h b/keyboards/ergodox_ez/keymaps/ifohancroft/config.h deleted file mode 100644 index b279371a0b..0000000000 --- a/keyboards/ergodox_ez/keymaps/ifohancroft/config.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2022 IFo Hancroft - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -// place overrides here -#define FORCE_NKRO -#ifdef TAPPING_TOGGLE -# undef TAPPING_TOGGLE -#endif -#define TAPPING_TOGGLE 3 - diff --git a/keyboards/ergodox_ez/keymaps/ifohancroft/keymap.c b/keyboards/ergodox_ez/keymaps/ifohancroft/keymap.c deleted file mode 100644 index 58c3beaeaa..0000000000 --- a/keyboards/ergodox_ez/keymaps/ifohancroft/keymap.c +++ /dev/null @@ -1,151 +0,0 @@ -/* Copyright 2022 IFo Hancroft - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - /* Default Layer - * *---------------------------------------------------------------------* *---------------------------------------------------------------------* - * | ` | 1 | 2 | 3 | 4 | 5 | - | | = | 6 | 7 | 8 | 9 | 0 | Del | - * |---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| - * | Tab | Q | W | E | R | T | [ | | ] | Y | U | I | O | P | \ | - * |---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| - * | Esc | A | S | D | F | G | | | | H | J | K | L | ; | ' | - * |---------+---------+---------+---------+---------+---------+---------* *---------+---------+---------+---------+---------+---------+---------| - * | Shift | Z | X | C | V | B | | N | M | , | . | / | Shift | - * |---------+---------+---------+---------+---------+---------* *---------+---------+---------+---------+---------+---------| - * | Ctrl | Super | Alt | | OSL(1) | | TT(1) | | Alt | Super | Ctrl | - * *-------------------------------------------------* *-------------------------------------------------* - * - * *-------------------* *-------------------* - * | | | | | | - * *---------+---------+---------| |---------+---------+---------* - * | | | | | | | | - * | Bckspc | Enter |---------| |---------| Enter | Space | - * | | | SH_OS | | | | | - * *---------+---------+---------* *---------+---------+---------* - */ - - LAYOUT_ergodox_pretty( - KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_NO, KC_NO, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, - KC_LCTL, KC_LGUI, KC_LALT, KC_NO, OSL(1), TT(1), KC_NO, KC_RALT, KC_RGUI, KC_RCTL, - - KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, - KC_BSPC, KC_ENT, SH_OS, KC_NO, KC_ENT, KC_SPC - ), - - /* Function Keys Layer - * *---------------------------------------------------------------------* *---------------------------------------------------------------------* - * | NumLock | F1 | F2 | F3 | F4 | F5 | F11 | | F12 | F6 | F7 | F8 | F9 | F10 | | - * |---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| - * | | + | 7 | 8 | 9 | * | | | | | | | | | | - * |---------+---------+---------+---------+---------+---------+---------| |---------+---------+---------+---------+---------+---------+---------| - * | | - | 4 | 5 | 6 | / | | | | Left | Down | Up | Right | | | - * |---------+---------+---------+---------+---------+---------+---------* *---------+---------+---------+---------+---------+---------+---------| - * | | 0 | 1 | 2 | 3 | . | | NK_TOGG | | | | | | - * |---------+---------+---------+---------+---------+---------* *---------+---------+---------+---------+---------+---------| - * | | | | | | | | Left | Down | Up | Right | - * *-------------------------------------------------* *-------------------------------------------------* - * - * *-------------------* *-------------------* - * | | | | | | - * *---------+---------+---------| |---------+---------+---------* - * | | | | | | | | - * | | Enter |---------| |---------| | | - * | | | PgUp | | PgDn | | | - * *---------+---------+---------* *---------+---------+---------* - */ - - LAYOUT_ergodox_pretty( - KC_NUM, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F11, KC_F12, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, - _______, KC_PPLS, KC_P7, KC_P8, KC_P9, KC_PAST, _______, _______, _______, _______, _______, _______, _______, _______, - _______, KC_PMNS, KC_P4, KC_P5, KC_P6, KC_PSLS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, - _______, KC_P0, KC_P1, KC_P2, KC_P3, KC_PDOT, _______, _______, NK_TOGG, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, - - _______, _______, _______, _______, - _______, _______, - _______, KC_PENT, KC_PGUP, KC_PGDN, _______, _______ - ), - - /* Empty Layer */ - LAYOUT_ergodox_pretty( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - - _______, _______, _______, _______, - _______, _______, - _______, _______, _______, _______, _______, _______ - ), - - /* Empty Layer */ - LAYOUT_ergodox_pretty( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - - _______, _______, _______, _______, - _______, _______, - _______, _______, _______, _______, _______, _______ - ) -}; - - /* Swap Hands - * *-------------------------------------------------* - * | Del | \ | ' | | | - * |---------+---------+---------+---------+---------+---------* - * | 6 | Y | H | N | | | - * |---------+---------+---------+---------+---------+---------| - * | 7 | U | J | M | | | - * |---------+---------+---------+---------+---------+---------| - * | 8 | I | K | , | | Space | - * |---------+---------+---------+---------+---------+---------| - * | 9 | O | L | . | | | - * |---------+---------+---------+---------+---------+---------| - * | 0 | P | ; | / | | | - * |---------+---------+---------+---------| |---------| - * | = | ] | | | | | - * *---------------------------------------* *---------* - */ - -const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { - {{0, 13}, {1, 13}, {2, 13}, {3, 0}, {4, 0}}, - {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 1}, {5, 1}}, - {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 2}, {5, 2}}, - {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 3}, {5, 10}}, - {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 4}, {5, 9}}, - {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {0, 0}, {5, 8}}, - {{0, 7}, {1, 7}, {0, 0}, {3, 7}, {0, 0}, {5, 7}}, - - {{0, 7}, {1, 7}, {0, 0}, {3, 7}, {0, 0}, {5, 7}}, - {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {0, 0}, {5, 8}}, - {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}, {5, 9}}, - {{0, 10}, {1, 10}, {2, 10}, {3, 10}, {4, 10}, {5, 10}}, - {{0, 11}, {1, 11}, {2, 11}, {3, 11}, {4, 11}, {5, 11}}, - {{0, 12}, {1, 12}, {2, 12}, {3, 12}, {4, 12}, {5, 12}}, - {{0, 13}, {1, 13}, {2, 13}, {3, 13}, {4, 13}} -}; - diff --git a/keyboards/ergodox_ez/keymaps/ifohancroft/readme.md b/keyboards/ergodox_ez/keymaps/ifohancroft/readme.md deleted file mode 100644 index 7a94a05eae..0000000000 --- a/keyboards/ergodox_ez/keymaps/ifohancroft/readme.md +++ /dev/null @@ -1,18 +0,0 @@ -![IFo Hancroft ErgoDox EZ Layout Image](https://i.imgur.com/bSWyBCV.png) - -# IFo Hancroft's ErgoDox EZ Layout - -- Layer 0: A QWERTY Layer. -- Layer 1: A Function Layer. -- Layer 2: Empty Layer. -- Layer 3: Empty Layer. - -This keymap also does the following: - -- Forces NKRO on -- Enables: - - Via - - The Swap Hands feature -- Disables: - - Mouse Key - - Extra Key diff --git a/keyboards/ergodox_ez/keymaps/ifohancroft/rules.mk b/keyboards/ergodox_ez/keymaps/ifohancroft/rules.mk deleted file mode 100644 index 3b18c2b9d2..0000000000 --- a/keyboards/ergodox_ez/keymaps/ifohancroft/rules.mk +++ /dev/null @@ -1,4 +0,0 @@ -MOUSEKEY_ENABLE = no -EXTRAKEY_ENABLE = no -SWAP_HANDS_ENABLE = yes -VIA_ENABLE = yes diff --git a/keyboards/ergodox_ez/keymaps/kou/keymap.c b/keyboards/ergodox_ez/keymaps/kou/keymap.c deleted file mode 100644 index b938b5f168..0000000000 --- a/keyboards/ergodox_ez/keymaps/kou/keymap.c +++ /dev/null @@ -1,312 +0,0 @@ -#include QMK_KEYBOARD_H -#include "debug.h" -#include "action_layer.h" -#include "version.h" - -#define BASE 0 // default layer -#define SYMB 1 // symbols -#define NPAD 2 // number pad -#define MDIA 3 // media keys -#define OTHR 4 // other keys - -enum custom_keycodes { - PLACEHOLDER = SAFE_RANGE, // can always be here - EPRM, - VRSN, - RGB_SLD -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -/* Keymap 0: Basic layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | Esc | 1! | 2@ | 3# | 4$ | 5% | `~ | | \| | 6 | 7 | 8 | 9 | 0 | BkSp | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | Tab | Q | W | E | R | T | Del | | =+ | Y | U | I | O | P | '" | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | LCtrl | A | S | D | F | G |------| |------| H | J | K | L | ; | RCtrl | - * |--------+------+------+------+------+------| Esc | | -_ |------+------+------+------+------+--------| - * | LShift | Z/L2 | X | C | V | B | | | | N | M | , | . | //L3 | RShift | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | ~L1 | LAlt | LGui | ~L1 | Space| | Left | Right| LGui | LAlt | ~L1 | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | (*1) | (*2) | | L2 | L1 | - * ,------|------|------| |------+--------+------. - * | | | L3 | | (*3) | | | - * | Enter| Esc |------| |------| Up | Down | - * | /LSft| /LCtr| L4 | | (*4) | | | - * `--------------------' `----------------------' - * (*1) -> Ctrl + Alt + U (Webstorm: Toggle Camel Case) - * (*2) -> Ctrl + Shift + Alt + P (Webstorm: Pritter Format) - * (*3) -> Ctrl + Shift + Alt + Up (Webstorm: Move Previous Change) - * (*4) -> Ctrl + Shift + Alt + Down (Webstorm: Move Next Change) - */ -// If it accepts an argument (i.e, is a function), it doesn't need KC_. -// Otherwise, it needs KC_* -[BASE] = LAYOUT_ergodox( // layer 0 : default - // left hand - KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_DEL, - KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT, LT(NPAD, KC_Z), KC_X, KC_C, KC_V, KC_B, KC_ESC, - MO(SYMB), KC_LALT, KC_LGUI, MO(SYMB), KC_SPC, - LSFT(LALT(KC_U)), LCTL(LSFT(LALT(KC_P))), - TG(MDIA), - SFT_T(KC_ENT), CTL_T(KC_ESC), TG(OTHR), - - - // right hand - KC_BSLS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, - KC_EQL, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_QUOT, - KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_RCTL, - KC_MINS, KC_N, KC_M, KC_COMM, KC_DOT, LT(MDIA, KC_SLSH), KC_RSFT, - KC_LEFT, KC_RGHT, KC_RGUI, KC_RALT, MO(SYMB), - TG(NPAD), TG(SYMB), - LCTL(LSFT(LALT(KC_UP))), - LCTL(LSFT(LALT(KC_DOWN))), KC_UP, KC_DOWN - ), - - - -/* Keymap 1: Symbol Layer - * - * ,---------------------------------------------------. ,--------------------------------------------------. - * | | F1 | F2 | F3 | F4 | F5 | | | | | | | [ | ] | | - * |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------| - * | | F6 | F7 | F8 | F9 | F10 | | | | ! | @ | # | $ | % | ` | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | F11 | F12 | GUI+1| GUI+2| GUI+3|------| |------| ^ | & | * | ~ | | | | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | { | } | \ | | - * `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | Home | End | | | | - * `-----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| PgUp | PgDn | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// SYMBOLS -[SYMB] = LAYOUT_ergodox( - // left hand - KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS, - KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_TRNS, - KC_TRNS, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, KC_TRNS, - KC_TRNS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_GRV, - KC_CIRC, KC_AMPR, KC_ASTR, KC_TILD, KC_PIPE, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_BSLS, KC_TRNS, - KC_HOME, KC_END, KC_0, KC_EQL, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_PGUP, KC_PGDN -), - - - -/* Keymap 2: Number pad Layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | |NumLk | * | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | | | | | | | + | | 7 | 8 | 9 | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | |------| |------| | 4 | 5 | 6 | | | - * |--------+------+------+------+------+------| | | - |------+------+------+------+------+--------| - * | | | | | | | | | | | 1 | 2 | 3 | / | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | 0 | . | | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// Number Pad -[NPAD] = LAYOUT_ergodox( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - // right hand - KC_TRNS, KC_TRNS, KC_NUM, KC_PAST, KC_TRNS, KC_TRNS, KC_TRNS, - KC_PPLS, KC_TRNS, KC_P7, KC_P8, KC_P9, KC_TRNS, KC_TRNS, - KC_TRNS, KC_P4, KC_P5, KC_P6, KC_TRNS, KC_TRNS, - KC_PMNS, KC_TRNS, KC_P1, KC_P2, KC_P3, KC_PSLS, KC_TRNS, - KC_P0, KC_PDOT, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), - - - -/* Keymap 3: Mouse Layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | | MsUp | | WUp | | | | | WUp | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | |MsLeft|MsDown|MsRght| WDn |------| |------| | WDn | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | | | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | |MsAcl0| | | | | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | |Brwser|Brwser| - * | Lclk | Rclk |------| |------|Back |Fwd | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// MEDIA AND MOUSE -[MDIA] = LAYOUT_ergodox( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_WH_U, KC_TRNS, - KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ACL0, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_BTN1, KC_BTN2, KC_TRNS, - - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_WH_U, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_WH_D, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_WBAK, KC_WFWD -), - - - -/* Keymap 4: - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | |------| |------| | | | | | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | | | | | | | | | | | | | | | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | | | | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// -[OTHR] = LAYOUT_ergodox( - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, - - // right hand - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, - KC_TRNS, - KC_TRNS, KC_TRNS, KC_TRNS -), -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - // dynamically generate these. - case EPRM: - if (record->event.pressed) { - eeconfig_init(); - } - return false; - break; - case VRSN: - if (record->event.pressed) { - SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); - } - return false; - break; - case RGB_SLD: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_mode(1); - #endif - } - return false; - break; - } - return true; -} - -// Runs just one time when the keyboard initializes. -void matrix_init_user(void) { - -}; - - -// Runs constantly in the background, in a loop. -void matrix_scan_user(void) { - - uint8_t layer = get_highest_layer(layer_state); - - ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - switch (layer) { - // TODO: Make this relevant to the ErgoDox EZ. - case 1: - ergodox_right_led_1_on(); - break; - case 2: - ergodox_right_led_2_on(); - break; - case 3: - ergodox_right_led_3_on(); - break; - case 4: - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - break; - default: - // none - break; - } -}; diff --git a/keyboards/ergodox_ez/keymaps/kou/readme.md b/keyboards/ergodox_ez/keymaps/kou/readme.md deleted file mode 100644 index b77f32c72f..0000000000 --- a/keyboards/ergodox_ez/keymaps/kou/readme.md +++ /dev/null @@ -1,28 +0,0 @@ -# ErgoDox EZ Kou Keymap Configuration - -## Changelog - -* Jun 22, 2018 - * Update keymap. - - enable prettier format of WebStorm. - - arrange key of toggle-camel-case. -* Sep 5, 2017 - * Update keymap. -* Jul 20, 2017 - * Update keymap. -* May 19, 2017 - * Update keymap. -* Jan 18, 2017 - * Update keymap. -* Jan 10, 2017 - * Update keymap. -* Jan 7, 2017: - * create kou keymap. - -## How to build - -```bash -# in project root -$ make git-submodule -$ make ergodox_ez:kou -``` diff --git a/keyboards/ergodox_ez/keymaps/lukaus/config.h b/keyboards/ergodox_ez/keymaps/lukaus/config.h deleted file mode 100644 index 95d5fc46e1..0000000000 --- a/keyboards/ergodox_ez/keymaps/lukaus/config.h +++ /dev/null @@ -1,16 +0,0 @@ -#pragma once -#define CONFIG_USER_H - -#define TAPPING_TERM 200 - -#ifdef RGBLIGHT_ENABLE -#undef RGBLIGHT_SAT_STEP -#define RGBLIGHT_SAT_STEP 12 -#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7 -#define RGBLIGHT_EFFECT_SNAKE_LENGTH 7 -#define RGBLIGHT_EFFECT_BREATHE_CENTER 1 -#endif // RGBLIGHT_ENABLE - -#define FORCE_NKRO - -#define MODS_SHIFT_MASK (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) diff --git a/keyboards/ergodox_ez/keymaps/lukaus/keymap.c b/keyboards/ergodox_ez/keymaps/lukaus/keymap.c deleted file mode 100644 index 5529abbb6b..0000000000 --- a/keyboards/ergodox_ez/keymaps/lukaus/keymap.c +++ /dev/null @@ -1,843 +0,0 @@ -#include QMK_KEYBOARD_H -#include "version.h" - -#include "keymap_german.h" - -#include "keymap_nordic.h" - -enum custom_keycodes { - PLACEHOLDER = SAFE_RANGE, // can always be here - - // Programmer's Dvorak "macros" : - // To be paired with get_mods to enable both - // Shift functionality and Programmer's Dvorak - - DVP_ESC, // Grave escape basically i think - DVP_AMPR, - DVP_LBRACKET, - DVP_LCBR, - DVP_RCBR, - DVP_LPRN, - DVP_AT, - - DVP_EQUAL, - DVP_ASTERISK, - DVP_RPRN, - DVP_PLUS, - DVP_RBRACKET, - DVP_EXLM, - DVP_HASH, - - RU_2, - RU_3, - RU_4, - RU_6, - RU_7, - RU_DOT, - - SHFT_COMMA, - SHFT_DOT, - - RGB_SLD, - RGB_FF0000, - RGB_008000, - RGB_0000FF, - RGB_FFFFFF, - RGB_800080 -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - // Programmer's Dvorak layer - [0] = LAYOUT_ergodox( - DVP_ESC, DVP_AMPR, DVP_LBRACKET, DVP_LCBR, DVP_RCBR, DVP_LPRN, DVP_AT, - KC_TAB, KC_SCLN, KC_COMMA, KC_DOT, KC_P, KC_Y, MO(4), - MO(3), KC_A, KC_O, KC_E, KC_U, KC_I, - KC_LSFT, KC_QUOTE, KC_Q, KC_J, KC_K, KC_X, KC_HYPR, - KC_LCTL, KC_LALT, KC_LGUI, LCTL(KC_C), LCTL(KC_V), - - KC_MS_BTN3, TO(1), KC_HOME, KC_SPACE, MO(4), KC_END, - - DVP_EQUAL, DVP_ASTERISK, DVP_RPRN, DVP_PLUS, DVP_RBRACKET, DVP_EXLM, DVP_HASH, - TT(4), KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLASH, - KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINUS, - KC_MEH, KC_B, KC_M, KC_W, KC_V, KC_Z, MO(3), - KC_DELETE, KC_BSLS, KC_RGUI, KC_RCTL, LCTL(KC_F), - - KC_F17, KC_F18, KC_PGUP, KC_PGDN, KC_ENTER, KC_BSPC - ), - // Gaming QWERTY layer - [1] = LAYOUT_ergodox( - KC_ESCAPE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_F14, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_F23, - MO(3), KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_F24, - KC_LCTL, KC_F8, KC_LALT, KC_F14, KC_F13, - - KC_HOME, TO(0), KC_F15, KC_SPACE, KC_LCTL, KC_LALT, - - KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS, KC_EQUAL, - KC_F24, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOTE, - KC_F17, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RSFT, - KC_DELETE, KC_F19, KC_LGUI, KC_F21, KC_F22, - - KC_F17, KC_F18, KC_PGUP, KC_PGDN, KC_ENTER, KC_BSPC - ), - [2] = LAYOUT_ergodox( - KC_ESCAPE, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_C, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, TO(0), - MO(3), KC_1, KC_2, KC_3, KC_4, KC_5, - KC_LSFT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_NO, - KC_LCTL, KC_F8, KC_LALT, KC_I, KC_S, - - KC_MS_BTN3, TO(1), KC_HOME, KC_SPACE, KC_LSFT, KC_END, - - KC_NO, KC_NUM, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS, KC_NO, KC_NO, - TO(0), KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, KC_NO, KC_NO, - KC_KP_4, KC_KP_5, KC_KP_6, KC_EQUAL, KC_NO, KC_NO, - KC_NO, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, KC_NO, KC_NO, - KC_KP_0, KC_KP_DOT, KC_NO, KC_NO, KC_NO, - - TO(0), KC_F18, KC_PGUP, KC_PGDN, KC_ENTER, KC_BSPC - ), - // Function Layer - [3] = LAYOUT_ergodox( - KC_DLR, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_MEDIA_PREV_TRACK,KC_MEDIA_PLAY_PAUSE,KC_MEDIA_NEXT_TRACK,KC_NO, TT(4), - KC_TRANSPARENT, KC_TRANSPARENT, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_AUDIO_MUTE, KC_TRANSPARENT, - KC_LSFT, LALT(KC_Z), KC_TRANSPARENT, KC_TRANSPARENT, KC_F12, KC_TRANSPARENT, ALL_T(KC_NO), - KC_LCTL, KC_LALT, KC_LGUI, KC_CAPS, LSFT(KC_F12), - - KC_PSCR, KC_PGUP, KC_PGDN, KC_SPACE, KC_LSFT, KC_INSERT, - - KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, - KC_NO, KC_HOME, KC_TRANSPARENT, KC_PSCR, KC_SCRL, KC_TRANSPARENT, KC_TRANSPARENT, - KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_TRANSPARENT, KC_TRANSPARENT, - MEH_T(KC_NO), KC_CALCULATOR, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_RSFT, - KC_DELETE, KC_INSERT, KC_TRANSPARENT, KC_F19, KC_RCTL, - - TO(2),KC_TRANSPARENT,KC_TRANSPARENT,LALT(KC_F10),KC_ENTER,KC_BSPC - ), - // Keypad, Lighting, and Mouse emulation layer - ///* - [4] = LAYOUT_ergodox( - KC_ESCAPE, KC_NO, KC_NO, KC_MS_BTN3, KC_NO, KC_NO, KC_NO, - KC_TAB, KC_NO, KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1, KC_MS_WH_UP, TO(0), - KC_NO, KC_NO, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_MS_WH_DOWN, - KC_LSFT, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, TO(5), - KC_LCTL, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, - - KC_MS_BTN3, TO(1), KC_HOME, KC_SPACE, KC_LSFT, KC_END, - - KC_NO, KC_NUM, KC_KP_SLASH, KC_KP_ASTERISK, KC_CALCULATOR, KC_NO, RGB_VAI, - TO(0), KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_MINUS, KC_NO, RGB_VAD, - KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_PLUS, KC_NO, RGB_HUI, - KC_NO, KC_KP_1, KC_KP_2, KC_KP_3, KC_EQUAL, RGB_SLD, RGB_HUD, - KC_KP_0, KC_KP_DOT, KC_KP_ENTER, RGB_MOD, RGB_TOG, - - KC_F17, KC_F18, KC_PGUP, KC_PGDN, KC_ENTER, KC_BSPC - ) - //*/ - /* - // Keypad, Lighting, and Mouse emulation layer - [4] = KEYMAP( - KC_ESCAPE, KC_NO, KC_NO, KC_MS_BTN3, KC_NO, KC_NO, KC_NO, - KC_TAB, KC_NO, KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1, KC_MS_WH_UP, TO(0), - KC_NO, KC_NO, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_MS_WH_DOWN, - KC_LSFT, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, TO(5), - KC_LCTL, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, - - KC_MS_BTN3, TO(1), KC_HOME, KC_SPACE, KC_LSFT, KC_END, - - KC_NO, KC_I, KC_NUM, KC_KP_SLASH, KC_KP_ASTERISK, KC_CALCULATOR, RGB_VAI, - TO(0), KC_G, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_MINUS, RGB_VAD, - SHFT_COMMA, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_PLUS, RGB_HUI, - KC_NO, SHFT_DOT, KC_KP_1, KC_KP_2, KC_KP_3, KC_EQUAL, RGB_HUD, - KC_NO, KC_KP_0, KC_KP_DOT, KC_KP_ENTER, RGB_TOG, - - KC_F17, KC_F18, KC_PGUP, KC_PGDN, KC_ENTER, KC_BSPC - ) - */ - -}; - -void led_set_keymap(uint8_t usb_led) { - -} - -void matrix_init_user (void) { - -} - - -bool left_shift_down = false; -bool right_shift_down = false; - -bool numlock = false; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - - switch (keycode) { - case KC_LEFT_SHIFT: - if (record->event.pressed) - { - left_shift_down = true; - return true; - } - else - { - left_shift_down = false; - return true; - } - break; - case KC_RIGHT_SHIFT: - - if (record->event.pressed) - { - right_shift_down = true; - return true; - } - else - { - right_shift_down = false; - return true; - } - break; - case KC_NUM_LOCK: - - if (record->event.pressed) - { - numlock = !numlock; - } - break; - - case DVP_ESC: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - SEND_STRING("~"); - return false; - } - else - { - if(record->event.pressed) - SEND_STRING(SS_DOWN(X_ESCAPE)); - else - SEND_STRING(SS_UP(X_ESCAPE)); - return false; - } - break; - - case DVP_AMPR: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - SEND_STRING("%"); - - } - } - else - { - if(record->event.pressed) - SEND_STRING("&"); - } - return false; - - break; - - case SHFT_DOT: - if(record->event.pressed) - SEND_STRING(">"); - break; - - case SHFT_COMMA: - if(record->event.pressed) - SEND_STRING("<"); - break; - - case DVP_LBRACKET: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_7); - unregister_code(KC_7); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("["); - } - return false; - - return false; - break; - - case DVP_LCBR: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_5); - unregister_code(KC_5); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("{"); - } - return false; - break; - - case DVP_RCBR: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_3); - unregister_code(KC_3); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("}"); - } - return false; - break; - - case DVP_LPRN: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_1); - unregister_code(KC_1); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("("); - } - return false; - break; - - case DVP_AT: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_LEFT_SHIFT); - register_code(KC_6); - unregister_code(KC_6); - unregister_code(KC_LEFT_SHIFT); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("@"); - } - return false; - break; - - - case DVP_EQUAL: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_9); - unregister_code(KC_9); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("="); - } - return false; - break; - - case DVP_ASTERISK: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_0); - unregister_code(KC_0); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("*"); - } - return false; - break; - - case DVP_RPRN: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_2); - unregister_code(KC_2); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING(")"); - } - return false; - break; - - case DVP_PLUS: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_4); - unregister_code(KC_4); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("+"); - } - return false; - break; - - case DVP_RBRACKET: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_6); - unregister_code(KC_6); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("]"); - } - return false; - break; - - case DVP_EXLM: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_8); - unregister_code(KC_8); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("!"); - } - return false; - break; - - case DVP_HASH: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; - - // Russian - case RU_2: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; -case RU_3: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; -case RU_4: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; -case RU_6: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; -case RU_7: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; - - case RU_DOT: - if (left_shift_down || right_shift_down) - { - if(record->event.pressed) - { - if(left_shift_down) - unregister_code(KC_LEFT_SHIFT); - if(right_shift_down) - unregister_code(KC_RIGHT_SHIFT); - - register_code(KC_GRAVE); - unregister_code(KC_GRAVE); - - if(left_shift_down) - register_code(KC_LEFT_SHIFT); - if(right_shift_down) - register_code(KC_RIGHT_SHIFT); - } - } - else - { - if(record->event.pressed) - SEND_STRING("#"); - } - return false; - break; - - - case RGB_SLD: - if (record->event.pressed) { - rgblight_mode(1); - } - return false; - break; - - case RGB_FF0000: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_setrgb(0xff,0x00,0x00); - #endif - } - return false; - break; - - case RGB_008000: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_setrgb(0x00,0x80,0x00); - #endif - } - return false; - break; - - case RGB_0000FF: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_setrgb(0x00,0x00,0xff); - #endif - } - return false; - break; - - case RGB_FFFFFF: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_setrgb(0xff,0xff,0xff); - #endif - } - return false; - break; - - case RGB_800080: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_setrgb(0x80,0x00,0x80); - #endif - } - return false; - break; - - } - return true; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - - uint8_t layer = get_highest_layer(state); - - // ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - switch (layer) { - case 0: - break; - case 1: - ergodox_right_led_1_on(); - break; - case 2: - ergodox_right_led_2_on(); - break; - case 3: - ergodox_right_led_3_on(); - break; - case 4: - ergodox_right_led_1_on(); - ergodox_right_led_3_on(); - break; - default: - break; - } - return state; - -}; diff --git a/keyboards/ergodox_ez/keymaps/lukaus/readme.md b/keyboards/ergodox_ez/keymaps/lukaus/readme.md deleted file mode 100644 index af091bb1b9..0000000000 --- a/keyboards/ergodox_ez/keymaps/lukaus/readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Lukaus' keymap - -Programmer's Dvorak as default layer with Qwerty gaming layer and two function layers diff --git a/keyboards/ergodox_ez/keymaps/lukaus/rules.mk b/keyboards/ergodox_ez/keymaps/lukaus/rules.mk deleted file mode 100644 index fe05f599b9..0000000000 --- a/keyboards/ergodox_ez/keymaps/lukaus/rules.mk +++ /dev/null @@ -1 +0,0 @@ -#UNICODE_ENABLE = yes diff --git a/keyboards/ergodox_ez/keymaps/nathanvercaemert/config.h b/keyboards/ergodox_ez/keymaps/nathanvercaemert/config.h deleted file mode 100644 index 232b608be9..0000000000 --- a/keyboards/ergodox_ez/keymaps/nathanvercaemert/config.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - Set any config.h overrides for your specific keymap here. - See config.h options at https://docs.qmk.fm/#/config_options?id=the-configh-file -*/ -#define ORYX_CONFIGURATOR -#undef TAPPING_TERM -#define TAPPING_TERM 175 - -#undef MOUSEKEY_DELAY -#define MOUSEKEY_DELAY 20 - -#undef MOUSEKEY_MAX_SPEED -#define MOUSEKEY_MAX_SPEED 14 - -#undef MOUSEKEY_TIME_TO_MAX -#define MOUSEKEY_TIME_TO_MAX 30 - -#undef MOUSEKEY_WHEEL_INTERVAL -#define MOUSEKEY_WHEEL_INTERVAL 50 - -#undef MK_COMBINED -#define MK_COMBINED - -// /* Temporarily defining a tapping term that is ridiculous to see if i can tell if lt is working. */ -// #undef TAPPING_TERM -// #define TAPPING_TERM 499 - -/* Turning permissive hold off in order to test the tapping term. */ -#undef PERMISSIVE_HOLD -#define PERMISSIVE_HOLD diff --git a/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c b/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c deleted file mode 100644 index 14c3a46b69..0000000000 --- a/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c +++ /dev/null @@ -1,433 +0,0 @@ -#include QMK_KEYBOARD_H -#include "version.h" -#include "keymap_german.h" -#include "keymap_nordic.h" -#include "keymap_french.h" -#include "keymap_spanish.h" -#include "keymap_hungarian.h" -#include "keymap_swedish.h" -#include "keymap_brazilian_abnt2.h" -#include "keymap_canadian_multilingual.h" -#include "keymap_swiss_de.h" -#include "keymap_japanese.h" -#include "keymap_bepo.h" - -#define KC_MAC_UNDO LGUI(KC_Z) -#define KC_MAC_CUT LGUI(KC_X) -#define KC_MAC_COPY LGUI(KC_C) -#define KC_MAC_PASTE LGUI(KC_V) -#define KC_PC_UNDO LCTL(KC_Z) -#define KC_PC_CUT LCTL(KC_X) -#define KC_PC_COPY LCTL(KC_C) -#define KC_PC_PASTE LCTL(KC_V) -#define ES_LABK_MAC KC_GRAVE -#define ES_RABK_MAC LSFT(KC_GRAVE) -#define ES_BSLS_MAC ALGR(KC_6) -#define NO_PIPE_ALT KC_GRAVE -#define NO_BSLS_ALT KC_EQUAL - -enum custom_keycodes { - RGB_SLD = SAFE_RANGE, - MS_WH_UP, - MS_WH_DOWN, - MS_WH_RIGHT, - MS_WH_LEFT, -}; - -// tapdance keycodes -enum td_keycodes { - CTRL_TO12, - SHIFT_TO13, - ALT_TO11, -}; - -// define a type containing as many tapdance states as you need -typedef enum { - SINGLE_TAP, - SINGLE_HOLD, -} td_state_t; - -// create a global instance of the tapdance state type -static td_state_t td_state; - -// declare your tapdance functions: - -// function to determine the current tapdance state -int cur_dance (tap_dance_state_t *state); - -// `finished` and `reset` functions for each tapdance keycode -void ctrlto12_finished (tap_dance_state_t *state, void *user_data); -void ctrlto12_reset (tap_dance_state_t *state, void *user_data); -void altto11_finished (tap_dance_state_t *state, void *user_data); -void altto11_reset (tap_dance_state_t *state, void *user_data); -void shiftto13_finished (tap_dance_state_t *state, void *user_data); -void shiftto13_reset (tap_dance_state_t *state, void *user_data); - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_ergodox_pretty( - KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, - KC_INSERT, KC_Q, LGUI_T(KC_W), MT(MOD_HYPR, KC_E),LT(5,KC_R), KC_T, KC_NO, KC_NO, KC_Y, LT(6,KC_U), MT(MOD_HYPR, KC_I),RGUI_T(KC_O), KC_P, KC_PSCR, - KC_ESCAPE, LSFT_T(KC_A), LCTL_T(KC_S), LALT_T(KC_D), LT(1,KC_F), KC_G, KC_H, LT(2,KC_J), RALT_T(KC_K), RCTL_T(KC_L), RSFT_T(KC_SCLN),KC_CAPS, - KC_HOME, LT(9,KC_Z), MT(MOD_LGUI | MOD_LCTL,KC_X), LT(7,KC_C), LT(3,KC_V), KC_B, KC_NO, KC_NO, KC_N, LT(4,KC_M), LT(8,KC_COMMA), MT(MOD_RGUI | MOD_RCTL, KC_DOT), KC_QUOTE, KC_END, - KC_NO, KC_NO, KC_NO, KC_NO, KC_DELETE, KC_TAB, KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, KC_NO, KC_NO, - KC_NO, KC_NO, - TO(10), KC_BSPC, KC_NO, KC_NO, KC_ENTER, KC_SPACE - ), - [1] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_HYPR, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_7, KC_8, KC_9, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LSFT, KC_LCTL, KC_LALT, KC_TRANSPARENT, KC_NO, KC_NO, KC_4, KC_5, KC_6, KC_0, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_1, KC_2, KC_3, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [2] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_HYPR, KC_RGUI, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LPRN, KC_RPRN, KC_ASTR, KC_SLASH, KC_NO, KC_NO, KC_TRANSPARENT, KC_RALT, KC_RCTL, KC_RSFT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, MT(MOD_RGUI | MOD_RCTL, KC_NO), KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [3] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_HYPR, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LSFT, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_NO, KC_F5, KC_F6, KC_F7, KC_F8, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), KC_NO, KC_TRANSPARENT, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_F1, KC_F2, KC_F3, KC_F4, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [4] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_HYPR, KC_RGUI, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LBRC, KC_RBRC, KC_QUES, KC_EXLM, KC_NO, KC_NO, KC_NO, KC_RALT, KC_RCTL, KC_RSFT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_TRANSPARENT, KC_NO, MT(MOD_RGUI | MOD_RCTL, KC_NO), KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [5] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_HYPR, KC_TRANSPARENT, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LSFT, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_NO, KC_HASH, KC_BSLS, KC_GRAVE, KC_TILD, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [6] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_TRANSPARENT, KC_HYPR, KC_RGUI, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_UNDS, KC_EQUAL, KC_MINUS, KC_PLUS, KC_NO, KC_NO, KC_NO, KC_RALT, KC_RCTL, KC_RSFT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, MT(MOD_RGUI | MOD_RCTL, KC_NO), KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [7] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_AT, KC_DLR, KC_PERC, KC_CIRC, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_TRANSPARENT, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [8] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LCBR, KC_RCBR, KC_AMPR, KC_PIPE, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_TRANSPARENT, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [9] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_AUDIO_VOL_UP,KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_MEDIA_PREV_TRACK,KC_AUDIO_VOL_DOWN,KC_MEDIA_NEXT_TRACK,KC_MEDIA_PLAY_PAUSE,KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), - [10] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_MS_BTN2, KC_ACL2, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_MS_UP, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, TD(SHIFT_TO13), TD(CTRL_TO12), TD(ALT_TO11), KC_MS_BTN1, KC_NO, KC_NO, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), KC_ACL0, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, TO(0) - ), - [11] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_HYPR, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_UP, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LSFT, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_NO, KC_LEFT, KC_DOWN, KC_RIGHT, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, TO(0) - ), - [12] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_HYPR, KC_ACL2, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_MS_WH_UP, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LSFT, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_NO, KC_MS_WH_LEFT, KC_MS_WH_DOWN, KC_MS_WH_RIGHT, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), MO(14), KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, TO(0) - ), - [13] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_LGUI, KC_HYPR, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_PGUP, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_LSFT, KC_LCTL, KC_LALT, KC_NO, KC_NO, KC_NO, KC_NO, KC_PGDN, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, MT(MOD_LGUI | MOD_LCTL,KC_NO), KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, TO(0) - ), - [14] = LAYOUT_ergodox_pretty( - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, MS_WH_UP, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, MS_WH_LEFT, MS_WH_DOWN, MS_WH_RIGHT, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_NO, KC_NO, KC_TRANSPARENT, KC_NO, KC_NO, KC_TRANSPARENT, KC_TRANSPARENT, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, - KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT, KC_TRANSPARENT - ), -}; - -layer_state_t layer_state_set_user(layer_state_t state) { - uint8_t layer = get_highest_layer(state); - ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - switch (layer) { - case 1: - ergodox_right_led_1_on(); - break; - case 2: - ergodox_right_led_2_on(); - break; - case 3: - ergodox_right_led_3_on(); - break; - case 4: - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - break; - case 5: - ergodox_right_led_1_on(); - ergodox_right_led_3_on(); - break; - case 6: - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - break; - case 7: - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - break; - default: - break; - } - return state; -}; - -// determine the tapdance state to return -int cur_dance (tap_dance_state_t *state) { - if (state->count == 1) { - if (state->interrupted && state->pressed && state->interrupting_keycode == KC_MS_BTN1) {return SINGLE_HOLD;} - if (state->interrupted && state->pressed && state->interrupting_keycode == 22273) {return SINGLE_HOLD;} - if (state->interrupted && state->pressed && state->interrupting_keycode == 22272) {return SINGLE_HOLD;} - if (state->interrupted && state->pressed && state->interrupting_keycode == KC_TAB) {return SINGLE_HOLD;} - else if (state->interrupted || !state->pressed) { - // if (state->interrupted) { - // print("interrupted\n"); - // uprintf("Shift: %u\n", KC_LSFT); - // uprintf("Control: %u\n", KC_LCTL); - // uprintf("%u\n",state->interrupting_keycode); - // } - return SINGLE_TAP; - } - else { return SINGLE_HOLD; } - } - else { return 2; } // any number higher than the maximum state value you return above -} -// /* Backup in case previous code is hard to piece together. */ -// int cur_dance (tap_dance_state_t *state) { -// if (state->count == 1) { -// if (state->interrupted || !state->pressed) { return SINGLE_TAP; } -// else { return SINGLE_HOLD; } -// } -// else { return 2; } // any number higher than the maximum state value you return above -// } - -void ctrlto12_finished (tap_dance_state_t *state, void *user_data) { - td_state = cur_dance(state); - switch (td_state) { - case SINGLE_TAP: - layer_on(12); - break; - case SINGLE_HOLD: - if (state->interrupted && (state->interrupting_keycode == 22273 || state->interrupting_keycode == 43)) { - register_mods(MOD_BIT(KC_LCTL)); - break; - } - register_mods(MOD_BIT(KC_LCTL)); // for a layer-tap key, use `layer_on(_MY_LAYER)` here - if (state->interrupted && state->interrupting_keycode == KC_MS_BTN1) { - register_code16(LCTL(KC_MS_BTN1)); - } - break; - } -} - -void ctrlto12_reset (tap_dance_state_t *state, void *user_data) { - switch (td_state) { - case SINGLE_TAP: - break; - case SINGLE_HOLD: - if (state->interrupted && (state->interrupting_keycode == 22273 || state->interrupting_keycode == 43) ) { - unregister_mods(MOD_BIT(KC_LCTL)); - break; - } - unregister_mods(MOD_BIT(KC_LCTL)); // for a layer-tap key, use `layer_off(_MY_LAYER)` here - if (state->interrupted && state->interrupting_keycode == KC_MS_BTN1) { - unregister_code16(LCTL(KC_MS_BTN1)); - } - break; - } -} - -void shiftto13_finished (tap_dance_state_t *state, void *user_data) { - td_state = cur_dance(state); - switch (td_state) { - case SINGLE_TAP: - layer_on(13); - break; - case SINGLE_HOLD: - if (state->interrupted && (state->interrupting_keycode == 22272 || state->interrupting_keycode == 43) ) { - register_mods(MOD_BIT(KC_LSFT)); - break; - } - register_mods(MOD_BIT(KC_LSFT)); // for a layer-tap key, use `layer_on(_MY_LAYER)` here - if (state->interrupted && state->interrupting_keycode == KC_MS_BTN1) { - register_code16(LSFT(KC_MS_BTN1)); - } - break; - } -} - -void shiftto13_reset (tap_dance_state_t *state, void *user_data) { - switch (td_state) { - case SINGLE_TAP: - break; - case SINGLE_HOLD: - if (state->interrupted && (state->interrupting_keycode == 22272 || state->interrupting_keycode == 43) ) { - unregister_mods(MOD_BIT(KC_LSFT)); - break; - } - unregister_mods(MOD_BIT(KC_LSFT)); // for a layer-tap key, use `layer_off(_MY_LAYER)` here - if (state->interrupted && state->interrupting_keycode == KC_MS_BTN1) { - unregister_code16(LSFT(KC_MS_BTN1)); - } - break; - } -} - -void altto11_finished (tap_dance_state_t *state, void *user_data) { - td_state = cur_dance(state); - switch (td_state) { - case SINGLE_TAP: - layer_on(11); - break; - case SINGLE_HOLD: - register_mods(MOD_BIT(KC_LALT)); // for a layer-tap key, use `layer_on(_MY_LAYER)` here - if (state->interrupted && state->interrupting_keycode == KC_MS_BTN1) { - register_code16(LALT(KC_MS_BTN1)); - } - break; - } -} - -void altto11_reset (tap_dance_state_t *state, void *user_data) { - switch (td_state) { - case SINGLE_TAP: - break; - case SINGLE_HOLD: - unregister_mods(MOD_BIT(KC_LALT)); // for a layer-tap key, use `layer_off(_MY_LAYER)` here - if (state->interrupted && state->interrupting_keycode == KC_MS_BTN1) { - unregister_code16(LALT(KC_MS_BTN1)); - } - break; - } -} - -// define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions -tap_dance_action_t tap_dance_actions[] = { - [CTRL_TO12] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctrlto12_finished, ctrlto12_reset), - [SHIFT_TO13] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftto13_finished, shiftto13_reset), - [ALT_TO11] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altto11_finished, altto11_reset), -}; - -/* Debugging functions */ - -void keyboard_post_init_user(void) { - // Customise these values to desired behaviour -// debug_enable=true; -// debug_matrix=true; -// debug_keyboard=true; -// debug_mouse=true; -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - // If console is enabled, it will print the matrix position and status of each key pressed - // #ifdef CONSOLE_ENABLE - // uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed); - // #endif - switch (keycode) { - case MS_WH_DOWN: - if (record->event.pressed) { - SEND_STRING(SS_TAP(X_MS_WH_DOWN)); - } - break; - case MS_WH_UP: - if (record->event.pressed) { - SEND_STRING(SS_TAP(X_MS_WH_UP)); - } - break; - case MS_WH_LEFT: - if (record->event.pressed) { - SEND_STRING(SS_TAP(X_MS_WH_LEFT)); - } - break; - case MS_WH_RIGHT: - if (record->event.pressed) { - SEND_STRING(SS_TAP(X_MS_WH_RIGHT)); - } - break; - } - return true; -} diff --git a/keyboards/ergodox_ez/keymaps/nathanvercaemert/readme.md b/keyboards/ergodox_ez/keymaps/nathanvercaemert/readme.md deleted file mode 100644 index ff3c8d142c..0000000000 --- a/keyboards/ergodox_ez/keymaps/nathanvercaemert/readme.md +++ /dev/null @@ -1,27 +0,0 @@ -# The nathanvercaemert ErgoDox EZ configuration - -Centered around the home row and the use of mouse keys, this configuration focuses on minimal finger movement. No key is more than one unit away from the home row. - -## Layers - -* Base Layer - * The two main thumb keys provide a loop to the mouse key layer. Pressing the left followed by the right always guarantees that you are on the base layer. - * There are a lot of dual function keys on the base layer. - * The layout of the letters is qwerty. - * Pinkys, ring fingers, and middle fingers apply dual function modifiers (along with the keys above and below the ring fingers.) -* Numbers, Symbols, and Function Keys. - * From the base layer, many keys are dual function layer switches. - * The switch on one hand changes the home row of the other hand to a row of symbols in most cases. - * The left index finger, and the key below it, change the right hand to the numbers and function keys - respectfully. -* Mouse Layer - * Clicking the main left thumb key navigates to the mouse layer (10.) Some dual function keys (technically tap dance functions) allow the left hand to apply modifiers to mouse clicks while tapping switches to - navigation layers. -* Navigation Layers - * From the Mouse Layer, taps to the left home row navigate to scroll keys, arrow keys, and page keys. -* Notes on Acceleration - * Designated as "Slow" and "Fast" on the mouse layers (movement and scroll,) these keys can be held to allow for slow/precise or fast/efficient control. - -Here is the image of my keymap: - -![Imgur Image](https://i.imgur.com/x6VgH9Z.png)
\ No newline at end of file diff --git a/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk b/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk deleted file mode 100644 index 0dadd4371f..0000000000 --- a/keyboards/ergodox_ez/keymaps/nathanvercaemert/rules.mk +++ /dev/null @@ -1,9 +0,0 @@ -# Set any rules.mk overrides for your specific keymap here. -# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file -LTO_ENABLE = yes -COMMAND_ENABLE = no -RGBLIGHT_ENABLE = no -TAP_DANCE_ENABLE=yes - -# Debugging -CONSOLE_ENABLE = yes diff --git a/keyboards/ergodox_ez/keymaps/nfriend/config.h b/keyboards/ergodox_ez/keymaps/nfriend/config.h deleted file mode 100644 index 141d7ac89a..0000000000 --- a/keyboards/ergodox_ez/keymaps/nfriend/config.h +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (C) 2020 Nathan Friend - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#pragma once - -#define NO_ACTION_MACRO -#define NO_ACTION_FUNCTION - -#undef DEBOUNCE -#define DEBOUNCE 15 - -#undef ONESHOT_TIMEOUT -#define ONESHOT_TIMEOUT 1003 - -#define PERMISSIVE_HOLD - -#define RGBLIGHT_SLEEP diff --git a/keyboards/ergodox_ez/keymaps/nfriend/keymap.c b/keyboards/ergodox_ez/keymaps/nfriend/keymap.c deleted file mode 100644 index 13a06f6065..0000000000 --- a/keyboards/ergodox_ez/keymaps/nfriend/keymap.c +++ /dev/null @@ -1,1096 +0,0 @@ -/* Copyright (C) 2020 Nathan Friend - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include QMK_KEYBOARD_H -#include "version.h" -#include "keymap_german.h" -#include "keymap_nordic.h" -#include "keymap_french.h" -#include "keymap_spanish.h" -#include "keymap_hungarian.h" - -#define KC_MAC_UNDO LGUI(KC_Z) -#define KC_MAC_CUT LGUI(KC_X) -#define KC_MAC_COPY LGUI(KC_C) -#define KC_MAC_PASTE LGUI(KC_V) -#define KC_PC_UNDO LCTL(KC_Z) -#define KC_PC_CUT LCTL(KC_X) -#define KC_PC_COPY LCTL(KC_C) -#define KC_PC_PASTE LCTL(KC_V) -#define ___ KC_TRNS - -/* Shortcut for Option+Ctrl */ -#define OC(keycode) LALT(LCTL(keycode)) - -enum layer_names { - - /* Base layers */ - _COLEMAK, - _QWERTY, - _DVORAK, - - /* Keys the base layers share */ - _COMMON, - - /* OS layers */ - _MAC, - _WINDOWS, - - /* Symbols */ - _NUMPAD, - _SYMBOLS, - - /* Window management */ - _WM_MAC, - _WM_WINDOWS, - - /* Navigation */ - _ARROWS_MAC, - _ARROWS_WINDOWS, - - _MISC -}; - -enum custom_keycodes { - RGB_SLD = SAFE_RANGE, /* Can always be here */ - HSV_0_255_255, - HSV_120_255_128, - HSV_240_255_255, - MAC_MODE, - WINDOWS_MODE, - DYNAMIC_MACRO_RANGE, /* This needs to be last! */ -}; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* clang-format off */ - - [_COLEMAK] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_Q, /**/ KC_W, /**/ KC_F, /**/ KC_P, /**/ KC_G, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_A, /**/ KC_R, /**/ KC_S, /**/ KC_T, /**/ KC_D, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_Z, /**/ KC_X, /**/ KC_C, /**/ KC_V, /**/ KC_B, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_J, /**/ KC_L, /**/ KC_U, /**/ KC_Y, /**/ KC_SCLN, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_H, /**/ KC_N, /**/ KC_E, /**/ KC_I, /**/ KC_O, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_K, /**/ KC_M, /**/ KC_COMMA, /**/ KC_DOT, /**/ KC_SLASH, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_QWERTY] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_Q, /**/ KC_W, /**/ KC_E, /**/ KC_R, /**/ KC_T, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_A, /**/ KC_S, /**/ KC_D, /**/ KC_F, /**/ KC_G, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_Z, /**/ KC_X, /**/ KC_C, /**/ KC_V, /**/ KC_B, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_Y, /**/ KC_U, /**/ KC_I, /**/ KC_O, /**/ KC_P, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_H, /**/ KC_J, /**/ KC_K, /**/ KC_L, /**/ KC_SCLN, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_N, /**/ KC_M, /**/ KC_COMMA, /**/ KC_DOT, /**/ KC_SLASH, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_DVORAK] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_QUOTE, /**/ KC_COMMA, /**/ KC_DOT, /**/ KC_P, /**/ KC_Y, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_A, /**/ KC_O, /**/ KC_E, /**/ KC_U, /**/ KC_I, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_SCLN, /**/ KC_Q, /**/ KC_J, /**/ KC_K, /**/ KC_X, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_F, /**/ KC_G, /**/ KC_C, /**/ KC_R, /**/ KC_L, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_D, /**/ KC_H, /**/ KC_T, /**/ KC_N, /**/ KC_S, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_B, /**/ KC_M, /**/ KC_W, /**/ KC_V, /**/ KC_Z, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_COMMON] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_ESCAPE,/**/ KC_1, /**/ KC_2, /**/ KC_3, /**/ KC_4, /**/ KC_5, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_TAB, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/MO(_SYMBOLS), _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/KC_LSFT, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LT(_NUMPAD,KC_TAB), - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ KC_SPACE, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ KC_AUDIO_VOL_DOWN, - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ KC_BSPC, /**/ _______, /**/ KC_ENTER, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_6, /**/ KC_7, /**/ KC_8, /**/ KC_9, /**/ KC_0, /**/ KC_F12, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_HYPR, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ KC_BSLS, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/MO(_SYMBOLS),// - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_MEH, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/KC_RSFT, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/TT(_MISC), - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ KC_CAPS, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - KC_AUDIO_VOL_UP,/**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ KC_ESCAPE,/**/ KC_ENTER, /**/ KC_SPACE /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_MAC] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LCTL(LGUI(LSFT(KC_4))), - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______ ,/**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LALT(KC_BSPC), - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - KC_LCTL, /**/ KC_LGUI, /**/ KC_LALT, /**/MO(_WM_MAC), MO(_ARROWS_MAC), - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/LCTL(LGUI(KC_Q)), - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_LGUI, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - RGUI(RSFT(KC_7)),/**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - MO(_ARROWS_MAC), MO(_WM_MAC),/**/ KC_LALT, /**/ KC_LGUI, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - LCTL(LGUI(KC_Q)),/**/ KC_CAPS, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_WINDOWS] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LGUI(LSFT(KC_S)), - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/LCTL(KC_BSPC), - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - KC_LGUI, /**/ KC_LCTL, /**/ KC_LALT, MO(_WM_WINDOWS), MO(_ARROWS_WINDOWS), - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/LGUI(KC_L),/**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_LCTL, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - LALT(KC_PSCR), /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - MO(_ARROWS_WINDOWS), MO(_WM_WINDOWS), KC_RALT, /**/ KC_RCTL, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/LGUI(KC_L),/**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_NUMPAD] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ XXXXXXX, /**/ KC_ESCAPE, LALT(KC_KP_MINUS), KC_PERC, /**/KC_KP_SLASH, _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ XXXXXXX, /**/ KC_KP_7, /**/ KC_KP_8, /**/ KC_KP_9, /**/KC_KP_ASTERISK, _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_COLN, /**/ KC_KP_4, /**/ KC_KP_5, /**/ KC_KP_6, /**/KC_KP_MINUS, _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_COMMA, /**/ KC_KP_1, /**/ KC_KP_2, /**/ KC_KP_3, /**/KC_KP_PLUS,/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_0, /**/ KC_0, /**/ KC_DOT, /**/KC_KP_ENTER, ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ KC_0 /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_SYMBOLS] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_F1, /**/ KC_F2, /**/ KC_F3, /**/ KC_F4, /**/ KC_F5, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_EXLM, /**/ KC_AT, /**/ KC_LCBR, /**/ KC_RCBR, /**/ KC_PERC, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - LGUI(KC_BSPC), /**/ KC_HASH, /**/ KC_UNDS, /**/ KC_LPRN, /**/ KC_RPRN, /**/ KC_AMPR, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_BSLS, /**/ KC_SLASH, /**/KC_LBRC, KC_RBRC, /**/ KC_TILD, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_F6, /**/ KC_F7, /**/ KC_F8, /**/ KC_F9, /**/ KC_F10, /**/ KC_F11, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_CIRC, /**/KC_KP_PLUS,/**/KC_KP_MINUS, KC_GRAVE, /**/ KC_SCLN, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_PIPE, /**/ KC_EQUAL, /**/ KC_QUOTE, /**/ KC_COLN, /**/ KC_DQUO, /**/LGUI(KC_DELETE), - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_DLR, /**/ KC_ASTR, /**/ KC_LABK, /**/ KC_RABK, /**/ KC_SLASH, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_WM_MAC] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ OC(KC_C), /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ OC(KC_U), OC(LGUI(KC_LEFT)),OC(KC_ENTER),OC(LGUI(KC_RIGHT)), OC(KC_I),/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ OC(KC_J), OC(KC_LEFT), OC(KC_BSPC), OC(KC_RIGHT), OC(KC_K), /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_UP, /**/ OC(KC_E), /**/ OC(KC_F), /**/ OC(KC_T), /**/ OC(KC_G), /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/KC_LEFT, KC_DOWN, /**/ KC_RIGHT, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ OC(KC_C), /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ OC(KC_U), OC(LGUI(KC_LEFT)),OC(KC_ENTER),OC(LGUI(KC_RIGHT)), OC(KC_I),/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ OC(KC_J), OC(KC_LEFT), OC(KC_BSPC), OC(KC_RIGHT), OC(KC_K), /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ OC(KC_D), /**/ OC(KC_E), /**/ OC(KC_F), /**/ OC(KC_T), /**/ KC_UP, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ KC_LEFT, /**/ KC_DOWN, /**/KC_RIGHT,// - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_ARROWS_MAC] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/LGUI(KC_Q),/**/LGUI(KC_W),/**/LGUI(KC_F),/**/LGUI(KC_P),/**/LGUI(KC_G),/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_LCTL, /**/ KC_LGUI, /**/ KC_LSFT, /**/ KC_LALT, /**/LGUI(KC_D),/*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/LGUI(KC_Z),/**/LGUI(KC_X),/**/LGUI(KC_C),/**/LGUI(KC_V),/**/LGUI(KC_B),/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/RGUI(KC_J),/**/ KC_BSPC, /**/ KC_UP, /**/ KC_DELETE, RGUI(KC_SCLN), _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/RGUI(KC_H),/**/ KC_LEFT, /**/ KC_DOWN, /**/ KC_RIGHT, /**/ KC_ENTER, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/RGUI(KC_K),/**/RGUI(KC_M), RGUI(KC_COMMA), RGUI(KC_DOT), RGUI(KC_SLASH), _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_ARROWS_WINDOWS] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/LCTL(KC_Q),/**/LCTL(KC_W),/**/LCTL(KC_F),/**/LCTL(KC_P),/**/LCTL(KC_G),/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_LGUI, /**/ KC_HYPR, /**/ KC_LSFT, /**/ KC_LCTL, /**/LCTL(KC_D),/*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/LCTL(KC_Z),/**/LCTL(KC_X),/**/LCTL(KC_C),/**/LCTL(KC_V),/**/LCTL(KC_B),/**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/RCTL(KC_J),/**/ KC_BSPC, /**/ KC_UP, /**/ KC_DELETE, RCTL(KC_SCLN), _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/RCTL(KC_H),/**/ KC_LEFT, /**/ KC_DOWN, /**/ KC_RIGHT, /**/ KC_ENTER, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/RCTL(KC_K),/**/RCTL(KC_M), RCTL(KC_COMMA), RCTL(KC_DOT), RCTL(KC_SLASH), _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [_MISC] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ KC_F14, /**/ KC_F15, /**/ _______, /**/ _______, /**/ _______, /**/ QK_BOOT, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ KC_MS_UP, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/KC_MS_LEFT,/**/KC_MS_DOWN,/**/KC_MS_RIGHT, _______, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ RGB_MOD, /**/HSV_0_255_255, - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/HSV_120_255_128, - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/KC_MS_BTN1,/**/KC_MS_BTN2,/**/HSV_240_255_255, - /**/ /**/ /**/ /**/ - /*=============================================*/ - - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/KC_MEDIA_EJECT, - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/DF(_DVORAK), DF(_QWERTY), DF(_COLEMAK),// - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, WINDOWS_MODE, MAC_MODE, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ RGB_TOG, /**/ RGB_SLD, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ RGB_VAI, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ RGB_VAD, /**/ RGB_HUD, /**/ RGB_HUI /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - /* clang-format on */ -}; - -bool suspended = false; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case QK_CLEAR_EEPROM: - if (record->event.pressed) { - eeconfig_init(); - } - return false; - break; - case RGB_SLD: - if (record->event.pressed) { - rgblight_mode(1); - } - return false; - break; - case HSV_0_255_255: - if (record->event.pressed) { -#ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_sethsv(0, 255, 255); -#endif - } - return false; - break; - case HSV_120_255_128: - if (record->event.pressed) { -#ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_sethsv(120, 255, 128); -#endif - } - return false; - break; - case HSV_240_255_255: - if (record->event.pressed) { -#ifdef RGBLIGHT_ENABLE - rgblight_enable(); - rgblight_mode(1); - rgblight_sethsv(240, 255, 255); -#endif - } - return false; - break; - case MAC_MODE: - if (record->event.pressed) { - layer_on(_MAC); - layer_off(_WINDOWS); - } - return false; - break; - case WINDOWS_MODE: - if (record->event.pressed) { - layer_on(_WINDOWS); - layer_off(_MAC); - } - return false; - break; - } - return true; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - uint8_t layer = get_highest_layer(state); - - ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - - if (layer == _ARROWS_MAC || layer == _ARROWS_WINDOWS) { - ergodox_right_led_1_on(); - } else if (layer == _SYMBOLS) { - ergodox_right_led_2_on(); - } else if (layer == _NUMPAD) { - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - } else if (layer == _WM_MAC || layer == _WM_WINDOWS) { - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - } else if (layer == _MISC) { - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - } else if (layer == _WINDOWS) { - ergodox_right_led_3_on(); - } else if (layer == _MAC) { - /* do nothing */ - } - - return state; -}; - -void keyboard_post_init_user(void) { - /* This layer is always on */ - layer_on(_COMMON); - - /* Default to Mac layout */ - layer_on(_MAC); -} diff --git a/keyboards/ergodox_ez/keymaps/nfriend/readme.md b/keyboards/ergodox_ez/keymaps/nfriend/readme.md deleted file mode 100644 index 0a19e2d042..0000000000 --- a/keyboards/ergodox_ez/keymaps/nfriend/readme.md +++ /dev/null @@ -1,52 +0,0 @@ -# [nfriend](https://gitlab.com/nfriend)'s ErgoDox EZ configuration - -![nfriend's ErgoDox EZ keymap](https://i.imgur.com/CMMmdBc.png) - -[View this keymap on -keyboard-layout-editor.com.](http://www.keyboard-layout-editor.com/#/gists/01283b322a647c96ef75955a9b0bac68) - -Color legend: - -- **Black:** Primary layer. -- **Blue:** Symbol layer. Accessed by holding either of the <kbd>to sym</kbd> - keys on either end of the keyboard. -- **Green:** Numpad layer. Accessed by holding the <kbd>to numpad</kbd> key. -- **Red:** Arrow layer. Accessed by holding either of the <kbd>to arrows</kbd> - thumb keys. -- **Teal:** Window management layer. Accessed by holding either of the <kbd>to - WM</kbd> thumb keys. - - Note: this layer is not pictured on this keymap since is tightly coupled - to [Magnet](https://magnet.crowdcafe.com/). -- **Yellow:** Miscellaneous layer. Includes LED control, layout toggling - (Colemak/Dvorak/QWERTY), platform toggling (Windows/Mac), and other - experimental features. - - Note: this layer is only partially pictured on this keymap - -## Caveats - -In its current state, this keymap is fairly Mac-centric. Some of the features -implemented in the Mac layers have not yet been ported to the corresponding -Windows layers. - -## Building - -To build this layout, open a command window in the root directory of this -repository and run: - -```bash -make ergodox_ez:nfriend -``` - -This will create a `.build/ergodox_ez_nfriend.hex` file which can be flashed -using the [Teensy loader](https://www.pjrc.com/teensy/loader.html). After the -`.hex` file has been loaded into Teensy, the keyboard can be reprogrammed by -pressing the bottom-right key of the right half of the keyboard and the -top-right key of the left half (the <kbd>RESET</kbd> key in the screenshot -above). - -## Developing - -Use the template in `./template.c` to help create new layers quickly. - -This layout was originally based on [this EZ Configurator -configuration](https://configure.ergodox-ez.com/ergodox-ez/layouts/x9MWL/latest/0). diff --git a/keyboards/ergodox_ez/keymaps/nfriend/rules.mk b/keyboards/ergodox_ez/keymaps/nfriend/rules.mk deleted file mode 100644 index 721d803601..0000000000 --- a/keyboards/ergodox_ez/keymaps/nfriend/rules.mk +++ /dev/null @@ -1,8 +0,0 @@ -# Set any rules.mk overrides for your specific keymap here. -# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file -DEBOUNCE_TYPE = sym_eager_pk -LTO_ENABLE = yes -COMMAND_ENABLE = no -UNICODE_ENABLE = no -UNICODEMAP_ENABLE = no -DYNAMIC_MACRO_ENABLE = yes diff --git a/keyboards/ergodox_ez/keymaps/nfriend/template.c b/keyboards/ergodox_ez/keymaps/nfriend/template.c deleted file mode 100644 index dc4294d595..0000000000 --- a/keyboards/ergodox_ez/keymaps/nfriend/template.c +++ /dev/null @@ -1,92 +0,0 @@ -/* Copyright (C) 2020 Nathan Friend - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -/* clang-format off */ - -[LAYER_NAME] = LAYOUT_ergodox( - /* Left hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - /* Right hand */ - - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______, /**/ _______, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - /*==============================*/ - /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ _______, /**/ _______, /**/ _______ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ -), diff --git a/keyboards/ergodox_ez/keymaps/saha/keymap.c b/keyboards/ergodox_ez/keymaps/saha/keymap.c deleted file mode 100644 index 4aaf326587..0000000000 --- a/keyboards/ergodox_ez/keymaps/saha/keymap.c +++ /dev/null @@ -1,254 +0,0 @@ -#include QMK_KEYBOARD_H - -#include "debug.h" -#include "action_layer.h" - -#define BASE 0 // Base layer - QWERTY -#define SPEC 1 // Special keys favoring programming in c-like languages -#define NUM 2 // Numeric layer with number row functional keys - -#define ___ KC_TRNS -#define BSLASH LSFT(KC_SLSH) - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - [BASE] = LAYOUT_ergodox( - - // Left side - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_VOLU, /**/ KC_1, /**/ KC_2, /**/ KC_3, /**/ KC_4, /**/ KC_5, /**/ KC_F11, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_VOLD, /**/ KC_Q, /**/ KC_W, /**/ KC_E, /**/ KC_R, /**/ KC_T, /**/ KC_ESC, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_MPLY, /**/ KC_A, /**/ KC_S, /**/ KC_D, /**/ KC_F, /**/ KC_G, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_MUTE, /**/ KC_Z, /**/ KC_X, /**/ KC_C, /**/ KC_V, /**/ KC_B, /**/ KC_BSPC, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ ___, /**/ KC_RALT, /**/ KC_LCTL, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - - - /*==============================*/ - /**/ /**/ /**/ - /**/ ___, /**/ KC_DEL, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ KC_LALT, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ KC_SPACE, /**/ KC_LGUI, /**/ KC_LCTL, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - // Right side - // - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_F12, /**/ KC_1, /**/ KC_2, /**/ KC_3, /**/ KC_4, /**/ KC_5, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_Y, /**/ KC_U, /**/ KC_I, /**/ KC_O, /**/ KC_P, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_H, /**/ KC_J, /**/ KC_K, /**/ KC_L, /**/ KC_SCLN, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_ENT, /**/ KC_N, /**/ KC_M, /**/ KC_COMM, /**/ KC_DOT, /**/ KC_SLSH, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ MO(NUM), /**/ ___, /**/ ___, /**/ ___, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - - /*==============================*/ - /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ ___, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_RSFT, /**/ MO(SPEC) /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - - [SPEC] = LAYOUT_ergodox( - - // Left side - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_EXLM, /**/ KC_AT, /**/ KC_HASH, /**/ KC_DLR, /**/ KC_PERC, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_GRV, /**/ KC_QUOT, /**/ KC_LCBR, /**/ KC_RCBR, /**/ KC_PLUS, /**/ KC_ESC, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_TAB, /**/ KC_ASTR, /**/ KC_LPRN, /**/ KC_RPRN, /**/ KC_EQUAL, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_HASH, /**/ KC_PERC, /**/ KC_LBRC, /**/ KC_RBRC, /**/ KC_MINUS, /**/ KC_BSPC, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ ___, /**/ KC_LALT, /**/ KC_LCTL, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - - - /*==============================*/ - /**/ /**/ /**/ - /**/ ___, /**/ KC_DEL, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ KC_LALT, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ KC_SPACE, /**/ KC_LGUI, /**/ KC_LCTL, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - // Right side - // - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_CIRC, /**/ KC_AMPR, /**/ KC_ASTR, /**/ KC_LPRN, /**/ KC_RPRN, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_AMPR, /**/ KC_HOME, /**/ KC_UP, /**/ KC_END, /**/ KC_CIRC, /**/ KC_F7, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_EXLM, /**/ KC_LEFT, /**/ KC_DOWN, /**/ KC_RIGHT, /**/ KC_COLN, /**/ KC_F8, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_ENT, /**/ KC_PIPE, /**/ KC_UNDS, /**/ KC_LT, /**/ KC_GT, /**/ KC_BSLS, /**/ KC_F9, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ ___, /**/ ___, /**/KC_F10,/**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - - /*==============================*/ - /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ ___, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_RSFT, /**/ ___ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - - [NUM] = LAYOUT_ergodox( - - // Left side - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_F1, /**/ KC_F2, /**/ KC_F3, /**/ KC_F4, /**/ KC_F5, /**/ KC_F11, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_EXLM, /**/ KC_AT, /**/ KC_HASH, /**/ KC_DLR, /**/ KC_PERC, /**/ KC_ESC, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_1, /**/ KC_2, /**/ KC_3, /**/ KC_4, /**/ KC_5, /*===============*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*==========================================================================================*/ /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_HASH, /**/ KC_PERC, /**/ KC_LBRC, /**/ KC_RBRC, /**/ KC_MINUS, /**/ KC_BSPC, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ ___, /**/ KC_LALT, /**/ KC_LCTL, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - - - /*==============================*/ - /**/ /**/ /**/ - /**/ ___, /**/ KC_DEL, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ /**/ /**/ KC_LALT, /**/ - /**/ /**/ /**/ /**/ - /**/ /**/ /*===============*/ - /**/ /**/ /**/ /**/ - /**/ KC_SPACE, /**/ KC_LGUI, /**/ KC_LCTL, /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - - // Right side - // - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_F12, /**/ KC_F6, /**/ KC_F7, /**/ KC_F8, /**/ KC_F9, /**/ KC_F10, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_CIRC, /**/ KC_AMPR, /**/ KC_ASTR, /**/ KC_LPRN, /**/ KC_RPRN, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*===============*/ KC_6, /**/ KC_7, /**/ KC_8, /**/ KC_9, /**/ KC_0, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ /*==========================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /**/ KC_ENT, /**/ KC_PIPE, /**/ KC_UNDS, /**/ KC_COMM, /**/ KC_DOT, /**/ KC_BSLS, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ - /*=========================================================================================================*/ - /**/ /**/ /**/ /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ ___, /**/ ___, /**/ ___, /**/ - /**/ /**/ /**/ /**/ /**/ /**/ - /*=======================================================================*/ - - /*==============================*/ - /**/ /**/ /**/ - /**/ ___, /**/ ___, /**/ - /**/ /**/ /**/ - /*=============================================*/ - /**/ /**/ /**/ /**/ - /**/ ___, /**/ /**/ /**/ - /**/ /**/ /**/ /**/ - /*===============*/ /**/ /**/ - /**/ /**/ /**/ /**/ - /**/ ___, /**/ KC_RSFT, /**/ ___ /**/ - /**/ /**/ /**/ /**/ - /*=============================================*/ - ), - -}; diff --git a/keyboards/ergodox_ez/keymaps/smurmann/keymap.c b/keyboards/ergodox_ez/keymaps/smurmann/keymap.c deleted file mode 100644 index 65a7a08ec7..0000000000 --- a/keyboards/ergodox_ez/keymaps/smurmann/keymap.c +++ /dev/null @@ -1,205 +0,0 @@ -#include QMK_KEYBOARD_H -#include "debug.h" -#include "action_layer.h" -#include "version.h" - -#define BASE 0 // default layer -#define MDIA 1 // media keys - -enum custom_keycodes { - PLACEHOLDER = SAFE_RANGE, // can always be here - EPRM, - VRSN, - RGB_SLD -}; - -bool capsOn = false; - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -/* Keymap 0: Basic layer - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 0 | - | = | Bksp | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | Tab | Q | W | E | R | T | { | | } | Y | U | I | O | P | \ | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * |HyperCaps| A | S | D | F | G |------| |------| H | J | K | L |; / L1| Enter | - * |--------+------+------+------+------+------| Alt | | L1 |------+------+------+------+------+--------| - * | LShift | Z/L1 | X | C | V | B | | | | N | M | , | . | ? | RShift | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * |lCrtr | [ | ] | ` | ' | | Left | Up | Down | Right| PlayWin | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * |PRTSRN| Win | | Home | End | - * ,------|------|------| |------+--------+------. - * | | | Ins | | PgUp | | | - * | Space|Backsp|------| |------| Enter |Space | - * | |ace | Del | | PgDn | | | - * `--------------------' `----------------------' - */ -// If it accepts an argument (i.e, is a function), it doesn't need KC_. -// Otherwise, it needs KC_* -[BASE] = LAYOUT_ergodox( // layer 0 : default - // left hand - KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, - KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LCBR, - ALL_T(KC_CAPS), KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT, LT(MDIA,KC_Z), KC_X, KC_C, KC_V, KC_B, KC_LALT, - KC_LCTL, KC_LBRC, KC_RBRC, KC_GRV, KC_QUOT, - KC_PSCR, KC_LGUI, - KC_INS, - KC_SPC,KC_BSPC,KC_DEL, - // right hand - KC_7, KC_8, KC_9, KC_0,KC_MINS, KC_EQL, KC_BSPC, - KC_RCBR, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN),KC_ENT, - TG(MDIA), KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, - KC_LEFT, KC_UP,KC_DOWN,KC_RGHT, GUI_T(KC_MPLY), - KC_HOME, KC_END, - KC_PGUP, - KC_PGDN,KC_ENT, KC_SPC - ), -/* Keymap 1: Media and mouse keys - * - * ,---------------------------------------------------. ,--------------------------------------------------. - * |Version | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | | - * |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------| - * |BootLoad | | Lclk | MsUp | Rclk | | | | | | | Up | | | | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | |MsLeft|MsDown|MsRght| |------| |------| | Left | Down | Right| | | - * |---------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | | |MsAcl0|MsAcl1|MsAcl2| | | | | | | Mute | Mute | | | - * `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | Prev |VolUp |VolDn | Next | | - * `-----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * | | |------| |------| | | - * | | | | | | | | - * `--------------------' `--------------------' - */ -// Functions -[MDIA] = LAYOUT_ergodox( - // left hand - VRSN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, - QK_BOOT,_______,KC_BTN1,KC_MS_U,KC_BTN2,_______,_______, - _______,_______,KC_MS_L,KC_MS_D,KC_MS_R,_______, - _______,_______,KC_ACL0,KC_ACL1,KC_ACL2,_______,_______, - _______,_______,_______,_______,_______, - _______,_______, - _______, - _______,_______,_______, - // right hand - KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,_______, - _______,_______,_______, KC_UP ,_______,_______,_______, - _______,KC_LEFT,KC_DOWN,KC_RGHT,_______,_______, - _______,_______,_______,KC_MUTE,KC_MUTE,_______,_______, - KC_MPRV,KC_VOLU,KC_VOLD,KC_MNXT,_______, - _______, _______, - _______, - _______, _______, _______ -), -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - // dynamically generate these. - case EPRM: - if (record->event.pressed) { - eeconfig_init(); - } - return false; - break; - case VRSN: - if (record->event.pressed) { - SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); - } - return false; - break; - case RGB_SLD: - if (record->event.pressed) { - #ifdef RGBLIGHT_ENABLE - rgblight_mode(1); - #endif - } - return false; - break; - } - return true; -} - -// Runs just one time when the keyboard initializes. -void matrix_init_user(void) { -#ifdef RGBLIGHT_COLOR_LAYER_0 - rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0); -#endif -}; - -// Runs constantly in the background, in a loop. -void matrix_scan_user(void) { - uint8_t layer = get_highest_layer(layer_state); - - if(layer == 1) - { - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - - ergodox_right_led_2_set (LED_BRIGHTNESS_HI); - ergodox_right_led_3_set (LED_BRIGHTNESS_HI); - } - - if(capsOn) - { - ergodox_right_led_1_set (LED_BRIGHTNESS_HI); - ergodox_right_led_1_on (); - } - - if(keyboard_report->mods & MOD_BIT(KC_LSFT)) - { - ergodox_right_led_1_set (LED_BRIGHTNESS_HI); - ergodox_right_led_1_on (); - } else { - ergodox_right_led_1_set (LED_BRIGHTNESS_LO); - - if(!capsOn) - { - ergodox_right_led_1_off (); - } - } - - if(keyboard_report->mods & MOD_BIT(KC_LALT)) - { - ergodox_right_led_2_set (LED_BRIGHTNESS_HI); - ergodox_right_led_2_on (); - } else { - ergodox_right_led_2_set (LED_BRIGHTNESS_LO); - if(layer != 1) - { - ergodox_right_led_2_off (); - } - } - - if(keyboard_report->mods & MOD_BIT(KC_LCTL)) - { - ergodox_right_led_3_set (LED_BRIGHTNESS_HI); - ergodox_right_led_3_on (); - } else { - ergodox_right_led_3_set (LED_BRIGHTNESS_LO); - if(layer != 1) - { - ergodox_right_led_3_off (); - } - } -}; - -bool led_update_user(led_t led_state){ - if (led_state.caps_lock) - { - capsOn = true; - }else { - capsOn = false; - } - return false; -} diff --git a/keyboards/ergodox_ez/keymaps/stamm/config.h b/keyboards/ergodox_ez/keymaps/stamm/config.h deleted file mode 100644 index 1262ce6559..0000000000 --- a/keyboards/ergodox_ez/keymaps/stamm/config.h +++ /dev/null @@ -1,40 +0,0 @@ -/* Copyright 2020 Rustam Zagirov - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -/* - Set any config.h overrides for your specific keymap here. - See config.h options at https://docs.qmk.fm/#/config_options?id=the-configh-file -*/ -#pragma once - -#define ORYX_CONFIGURATOR -#define LEADER_TIMEOUT 500 -#define LEADER_PER_KEY_TIMING - -#define TAPPING_TERM 200 -#define TAPPING_TERM_PER_KEY -#define PERMISSIVE_HOLD -/* #define PERMISSIVE_HOLD_PER_KEY */ - -#define HOLD_ON_OTHER_KEY_PRESS -#define HOLD_ON_OTHER_KEY_PRESS_PER_KEY - -#define QUICK_TAP_TERM 0 -#define QUICK_TAP_TERM_PER_KEY - -/* #define RETRO_TAPPING */ -#undef LED_BRIGHTNESS_DEFAULT -#define LED_BRIGHTNESS_DEFAULT (LED_BRIGHTNESS_LO) diff --git a/keyboards/ergodox_ez/keymaps/stamm/keymap.c b/keyboards/ergodox_ez/keymaps/stamm/keymap.c deleted file mode 100644 index b7be1f72c1..0000000000 --- a/keyboards/ergodox_ez/keymaps/stamm/keymap.c +++ /dev/null @@ -1,279 +0,0 @@ -/* Copyright 2020 Rustam Zagirov - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -#include QMK_KEYBOARD_H -#include "version.h" - -#define KC_MAC_UNDO LGUI(KC_Z) -#define KC_MAC_CUT LGUI(KC_X) -#define KC_MAC_COPY LGUI(KC_C) -#define KC_MAC_PASTE LGUI(KC_V) -#define KC_PC_UNDO LCTL(KC_Z) -#define KC_PC_CUT LCTL(KC_X) -#define KC_PC_COPY LCTL(KC_C) -#define KC_PC_PASTE LCTL(KC_V) -#define ES_LABK_MAC KC_GRAVE -#define ES_RABK_MAC LSFT(KC_GRAVE) -#define ES_BSLS_MAC ALGR(KC_6) -#define NO_PIPE_ALT KC_GRAVE -#define NO_BSLS_ALT KC_EQUAL -#define LSA_T(kc) MT(MOD_LSFT | MOD_LALT, kc) - -#define E_NUMBERS LT(_1_NUMBERS, KC_E) -#define R_MOUSE LT(_2_MOUSE, KC_R) - -#define ARROWS MO(_3_ARROW) - -enum custom_keycodes { - RGB_SLD = SAFE_RANGE, - ALT_TAB, -}; - -bool is_alt_tab_active = false; // ADD this near the begining of keymap.c -uint16_t alt_tab_timer = 0; // we will be using them soon. - -enum layers { - _0_BASE, - _1_NUMBERS, - _2_MOUSE, - _3_ARROW, -}; - - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[_0_BASE] = LAYOUT_ergodox( - KC_NUBS, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_AUDIO_MUTE, - QK_LEAD, KC_Q, KC_W, E_NUMBERS, R_MOUSE, KC_T, XXXXXXX, - LCTL(KC_B), LSFT_T(KC_A), LCTL_T(KC_S), LALT_T(KC_D), LGUI_T(KC_F), KC_G, - KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX, - ALT_TAB, XXXXXXX, XXXXXXX, MO(_1_NUMBERS), ARROWS, - KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, - XXXXXXX, - KC_ENTER, KC_TAB, KC_ESCAPE, - KC_CAPS, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_MINUS, - XXXXXXX, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, - KC_H, RGUI_T(KC_J), RALT_T(KC_K), RCTL_T(KC_L), RSFT_T(KC_SCLN), KC_QUOTE, - KC_RBRC, KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_EQUAL, - XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, - KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, - XXXXXXX, - KC_ESCAPE, KC_BSPC, KC_SPACE -), -[_1_NUMBERS] = LAYOUT_ergodox( - _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - QK_BOOT, _______, _______, _______, _______, - _______, _______, - _______, - _______, _______, _______, - - _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, - _______, _______, KC_7, KC_8, KC_9, KC_ASTR, KC_F12, - _______, KC_4, KC_5, KC_6, KC_PLUS, _______, - _______, _______, KC_1, KC_2, KC_3, KC_BSLS, _______, - KC_0, KC_KP_DOT, _______, KC_EQUAL, _______, - _______, _______, - _______, - _______, _______, _______ -), -[_2_MOUSE] = LAYOUT_ergodox( - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - RGB_HUI, RGB_HUD, - _______, - _______, _______, _______, - - _______, _______, _______, _______, _______, _______, _______, - RGB_MOD, RGB_TOG, KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, _______, _______, - RGB_SLD, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, _______, _______, - TOGGLE_LAYER_COLOR, _______, KC_MS_WH_UP, _______, KC_MS_WH_DOWN, _______, _______, - _______, _______, _______, _______, _______, - - RGB_VAD, RGB_VAI, - _______, - _______, _______, _______ -), -[_3_ARROW] = LAYOUT_ergodox( - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - _______, _______, _______, - - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, - _______, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, - - _______, _______, - _______, - _______, _______, _______ -), -}; - - -/* bool suspended = false; */ -void keyboard_post_init_user(void) { - rgblight_disable(); -} - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case RGB_SLD: - if (record->event.pressed) { - rgblight_mode(1); - } - return false; - case ALT_TAB: - if (record->event.pressed) { - if (!is_alt_tab_active) { - is_alt_tab_active = true; - register_code(KC_LGUI); - } - alt_tab_timer = timer_read(); - register_code(KC_TAB); - } else { - unregister_code(KC_TAB); - } - break; - } - return true; -} - -layer_state_t layer_state_set_user(layer_state_t state) { - ergodox_led_all_off(); - /* rgblight_disable(); */ - switch (get_highest_layer(state)) { - case _1_NUMBERS: - ergodox_right_led_1_on(); - /* rgblight_enable(); - rgblight_mode(1); - rgblight_sethsv(HSV_BLUE);*/ - break; - case _2_MOUSE: - ergodox_right_led_2_on(); - break; - case _3_ARROW: - ergodox_right_led_3_on(); - break; - /* case 7: */ - /* ergodox_right_led_1_on(); */ - /* ergodox_right_led_2_on(); */ - /* ergodox_right_led_3_on(); */ - /* break; */ - default: - break; - } - return state; - -}; - - -uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - /* case SFT_T(KC_SPC): */ - /* return TAPPING_TERM + 1250; */ - case E_NUMBERS: - return 200; - case LT(_2_MOUSE, KC_R): - return 200; - /* case LGUI_T(KC_F): */ - /* return 50; */ - default: - return TAPPING_TERM; - } -} -bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case E_NUMBERS: - case R_MOUSE: - case LSFT_T(KC_A): - case LCTL_T(KC_S): - case LALT_T(KC_D): - case LGUI_T(KC_F): - case RGUI_T(KC_J): - case RALT_T(KC_K): - case RCTL_T(KC_L): - case RSFT_T(KC_SEMICOLON): - case ARROWS: - return false; - default: - return false; - } -} - -uint16_t get_quick_tap_term(uint16_t keycode, keyrecord_t *record) { - switch (keycode) { - case LT(_1_NUMBERS, KC_E): - case R_MOUSE: - case LSFT_T(KC_A): - case LCTL_T(KC_S): - case LALT_T(KC_D): - case LGUI_T(KC_F): - case RGUI_T(KC_J): - case RALT_T(KC_K): - case RCTL_T(KC_L): - case RSFT_T(KC_SEMICOLON): - case ARROWS: - return QUICK_TAP_TERM; - default: - return 0; - } -} - -void leader_end_user(void) { - if (leader_sequence_one_key(KC_F)) { - SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); - } - if (leader_sequence_one_key(KC_S)) { - SEND_STRING ("sudo -i\n"); - } - if (leader_sequence_one_key(KC_H)) { - SEND_STRING ("--help\n"); - } - if (leader_sequence_two_keys(KC_D, KC_D)) { - SEND_STRING(SS_LGUI("ac")); - /* SEND_STRING(SS_LGUI("a") SS_LGUI("c")); */ - } - if (leader_sequence_three_keys(KC_D, KC_D, KC_S)) { - SEND_STRING("https://start.duckduckgo.com\n"); - } - if (leader_sequence_two_keys(KC_A, KC_S)) { - register_code(KC_LGUI); - register_code(KC_S); - unregister_code(KC_S); - unregister_code(KC_LGUI); - } -} - -void matrix_scan_user(void) { - if (is_alt_tab_active) { - if (timer_elapsed(alt_tab_timer) > 1000) { - unregister_code(KC_LGUI); - is_alt_tab_active = false; - } - } -} diff --git a/keyboards/ergodox_ez/keymaps/stamm/readme.md b/keyboards/ergodox_ez/keymaps/stamm/readme.md deleted file mode 100644 index 9ca886aa92..0000000000 --- a/keyboards/ergodox_ez/keymaps/stamm/readme.md +++ /dev/null @@ -1,97 +0,0 @@ -# Stamm layouts for ergodox_ez - -4 layers: - -* QUERTY -* Numbers -* Mouse -* Arrows - -On home row there are hold dual keys: -- shift, ctrl, alt, cmd โ on the fingers on the left hand -- cmd, alt, ctrl, shift โ mirrored on the finger on the righ hand - -Top row behaves like shifter numbers row. -Hold E switch to layer with numbers. -Hold R switch to mouse controll layer. - -``` - 0_Base -โญโโโโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโโโโฎ -โ ` โ ! โ @ โ # โ $ โ % โMute โ โCapslโ ^ โ & โ * โ ( โ ) โ - โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ Lead โ Q โ W โE|LT1โR|LT2โ T โ โ โ โ Y โ U โ I โ O โ P โ [ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โCtrl + BโA | โงโS | โโD | โฅโF | โโ G โโโโโโโค โโโโโโโค H โJ | โโK | โฅโL | โโ; | โงโ ' โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ ] โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ \ โ Z โ X โ C โ V โ B โ โ โ โ N โ M โ , โ . โ / โ = โ -โฐโโโฌโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโฌโโโฏ - โโ + Tโ โ โ โArrowโ โ โ โ โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ โญโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฎ โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ - โVol- โVol+ โ โPlay โNext โ - โญโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโฎ - โ โ โ โ โ โ โ โ - โEnterโ Tab โโโโโโโค โโโโโโโคBspacโ โต โ - โ โ โ Esc โ โ Esc โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโดโโโโโโฏ - - 1_Numbers -โญโโโโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโโโโฎ -โ โ F1 โ F2 โ F3 โ F4 โ F5 โ โ โ โ F6 โ F7 โ F8 โ F9 โ F10 โ F11 โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โ โ โ โ โ 7 โ 8 โ 9 โ * โ F12 โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โโโโโโโค โโโโโโโค โ 4 โ 5 โ 6 โ + โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โ โ โ โ โ 1 โ 2 โ 3 โ \ โ โ -โฐโโโฌโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโฌโโโฏ - โResetโ โ โ โ โ โ 0 โ . โ โ = โ โ - โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ โญโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฎ โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ - โ โ โ โ โ โ - โญโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโฎ - โ โ โ โ โ โ โ โ - โ โ โโโโโโโค โโโโโโโค โ โ - โ โ โ โ โ โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโดโโโโโโฏ - - 2_Mouse -โญโโโโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโโโโฎ -โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โ โ โRgbMoโRgbToโMsBtnโMsUp โMsBtnโ โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โโโโโโโค โโโโโโโคRgbSlโMsLefโMsDowโMsRigโ โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โTogglโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โ โ โ โ โMsWhUโ โMsWhDโ โ โ -โฐโโโฌโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโฌโโโฏ - โ โ โ โ โ โ โ โ โ โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ โญโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฎ โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ - โRgbHuโRgbHuโ โRgbVaโRgbVaโ - โญโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโฎ - โ โ โ โ โ โ โ โ - โ โ โโโโโโโค โโโโโโโค โ โ - โ โ โ โ โ โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโดโโโโโโฏ - - 3_Arrow -โญโโโโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโฌโโโโโโโโโฎ -โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โโโโโโโค โโโโโโโค โ โ โ โ โ โ โ โ โ โ -โโโโโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโค โ โ โโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโโโโค -โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ -โฐโโโฌโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโผโโโโโโฌโโโฏ - โ โ โ โ โ โ โ โ โ โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ โญโโโโโโฌโโโโโโฎ โญโโโโโโฌโโโโโโฎ โฐโโโโโโดโโโโโโดโโโโโโดโโโโโโดโโโโโโฏ - โ โ โ โ โ โ - โญโโโโโโผโโโโโโผโโโโโโค โโโโโโโผโโโโโโผโโโโโโฎ - โ โ โ โ โ โ โ โ - โ โ โโโโโโโค โโโโโโโค โ โ - โ โ โ โ โ โ โ โ - โฐโโโโโโดโโโโโโดโโโโโโฏ โฐโโโโโโดโโโโโโดโโโโโโฏ - -``` - -Copyright © 2020 Rustam Zagirov. Released under [GPL-2.0](/LICENSE). diff --git a/keyboards/ergodox_ez/keymaps/stamm/rules.mk b/keyboards/ergodox_ez/keymaps/stamm/rules.mk deleted file mode 100644 index 619224bef4..0000000000 --- a/keyboards/ergodox_ez/keymaps/stamm/rules.mk +++ /dev/null @@ -1,8 +0,0 @@ -# Set any rules.mk overrides for your specific keymap here. -# See rules at https://docs.qmk.fm/#/config_options?id=the-rulesmk-file -LTO_ENABLE = yes -COMMAND_ENABLE = no -LEADER_ENABLE = yes -RGBLIGHT_ENABLE = yes - -TAP_DANCE_ENABLE = no diff --git a/keyboards/ergodox_ez/keymaps/vim/config.h b/keyboards/ergodox_ez/keymaps/vim/config.h deleted file mode 100644 index 1292859501..0000000000 --- a/keyboards/ergodox_ez/keymaps/vim/config.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef CONFIG_USER_H -#define CONFIG_USER_H -#endif - -#define NORMAL_MODE 0 -#define INSERT_MODE 1 -#define SYMB 2 -#define MOUSE 3 - -#include "../../config.h" diff --git a/keyboards/ergodox_ez/keymaps/vim/keymap.c b/keyboards/ergodox_ez/keymaps/vim/keymap.c deleted file mode 100644 index c1c037ef23..0000000000 --- a/keyboards/ergodox_ez/keymaps/vim/keymap.c +++ /dev/null @@ -1,370 +0,0 @@ -#include QMK_KEYBOARD_H -#include "quantum_keycodes.h" -#include "action_layer.h" -#include "version.h" -#include "vim.h" - -#define VERSION_STRING QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION -#define X_____X KC_TRNS -#define KC_ATM LGUI(LSFT(KC_P)) -#define KC_ATP LGUI(LCTL(KC_P)) -#define TO_NORM TO(NORMAL_MODE) - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - - /* Normal mode - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | | | | | | | | | | | | | | | | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | TAB | | WORD | END | | | | | | YANK | UNDO | | OPEN | PUT | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | โ | | | DEL | | |------| |------| โ | โ | โ | โ | | โ | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | SHIFT | | | |VISUAL| BACK | | | | | | | | | SHIFT | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | | | | | | | | | | | | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | | | | | | - * ,------|------|------| |------+------+------. - * | | | | | | | | - * |SPACE |DELETE|------| |------|ENTER |BACKSP| - * | | | | | | | | - * `--------------------' `--------------------' - */ - [NORMAL_MODE] = LAYOUT_ergodox( - // Layer 2 Left Hand - X_____X,X_____X,X_____X,X_____X,X_____X,X_____X,X_____X, - KC_TAB ,X_____X,VIM_W, VIM_E ,X_____X,X_____X,X_____X, - X_____X,VIM_A ,VIM_S ,VIM_D ,X_____X,X_____X, - KC_LSFT,X_____X,VIM_X ,VIM_C ,VIM_V ,VIM_B ,X_____X, - KC_LCTL,KC_LALT,X_____X,X_____X,X_____X, - - KC_HOME,KC_END , - TO(SYMB), - GUI_T(KC_SPC), KC_ESC ,_______, - - - // Layer 2 Right Hand - X_____X,X_____X,X_____X,X_____X,X_____X,X_____X,X_____X, - X_____X,VIM_Y ,VIM_U ,VIM_I ,VIM_O ,VIM_P ,X_____X, - VIM_H ,VIM_J ,VIM_K ,VIM_L ,X_____X,X_____X, - X_____X,X_____X,X_____X,X_____X,X_____X,X_____X,KC_LSFT, - X_____X,X_____X,X_____X,KC_RALT,KC_RCTL, - - KC_PGUP, KC_PGDN, - TO(SYMB), - KC_DEL , KC_ENT, GUI_T(KC_BSPC) -), - - /* Insert mode - * - * ,--------------------------------------------------. ,--------------------------------------------------. - * | NORMAL | 1 | 2 | 3 | 4 | 5 | โงโP | | PROJ | 6 | 7 | 8 | 9 | 0 | - | - * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | โฅ | Q | W | E | R | T | ` | | - | Y | U | I | O | P | \ | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| - * | โ | A | S | D | F | G |------| |------| H | J | K | L | ; | ' | - * |--------+------+------+------+------+------| = | | + |------+------+------+------+------+--------| - * | Lโง | Z | X | C | V | B | | | | N | M | , | . | / | Rโง | - * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' - * | โ | โฅ | ( | [ | { | | } | ] | ) | โฅ | โ | - * `----------------------------------' `----------------------------------' - * ,-------------. ,-------------. - * | HOME | END | | PGDN | PGUP | - * ,------|------|------| |------+------+------. - * |SPACE | | | | | | BSPC | - * | |NORMAL|------| |------| ENTER| | - * | โ | | | | | | โ | - * `--------------------' `--------------------' - */ - [INSERT_MODE] = LAYOUT_ergodox( - // Left Hand - NOR_MOD,KC_1, KC_2, KC_3, KC_4, KC_5, KC_ATM, - KC_TAB ,KC_Q, KC_W, KC_E, KC_R, KC_T, KC_GRV, - KC_ESC ,KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_EQL, - KC_LCTL,KC_LALT,KC_LPRN,KC_LBRC, KC_LCBR, - - KC_HOME,KC_END , - TO(SYMB), - GUI_T(KC_SPC),KC_ESC ,TO_NORM, - - - // Right Hand - KC_ATP , KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - KC_MINS, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, - KC_PLUS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,KC_RSFT, - KC_RCBR,KC_RBRC, KC_RPRN,KC_RALT,KC_RCTL, - - KC_PGUP, KC_PGDN, - TO(SYMB), - MO(MOUSE) , KC_ENT, GUI_T(KC_BSPC) - ), - - [SYMB] = LAYOUT_ergodox( - // Left Hand - NOR_MOD,KC_1, KC_2, KC_3, KC_4, KC_5, KC_ATM, - KC_TAB ,KC_Q, KC_W, KC_E, KC_R, KC_T, KC_GRV, - _______,KC_A, KC_S, KC_D, KC_F, KC_G, - KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_EQL, - KC_LCTL,KC_LALT,KC_LPRN,KC_LBRC, KC_LCBR, - - _______,_______, - _______, - _______,_______,TO_NORM, - - // Right Hand - KC_ATP , KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, - KC_MINS, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, - KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT, - KC_PLUS, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH,KC_RSFT, - KC_RCBR,KC_RBRC, KC_RPRN,KC_RALT,KC_RCTL, - - _______,_______, - _______, - _______,_______,_______ - ), - - [MOUSE] = LAYOUT_ergodox( - // Left Hand - _______,_______,_______,_______,_______,_______,_______, - _______,_______,_______,_______,_______,_______,_______, - _______,_______,_______,_______,_______,_______, - _______,_______,_______,_______,_______,_______,_______, - _______,_______,_______,_______,_______, - - _______,_______, - _______, - _______,_______,_______, - - // Right Hand - _______,_______,_______,_______,_______,_______,_______, - _______,_______,KC_BTN1,KC_BTN3,KC_BTN2,_______,_______, - KC_MS_L,KC_MS_D,KC_MS_U,KC_MS_R,_______,_______, - _______,_______,_______,_______,_______,_______,_______, - _______,_______,_______,_______,_______, - - _______,_______, - _______, - _______,_______,_______ - ), -}; - -bool process_record_user(uint16_t keycode, keyrecord_t *record) { - bool SHIFTED = (keyboard_report->mods & MOD_BIT(KC_LSFT)) | - (keyboard_report->mods & MOD_BIT(KC_RSFT)); - - switch (keycode) { - - case VIM_A: - if (record->event.pressed) { SHIFTED ? VIM_APPEND_LINE() : VIM_APPEND(); } - return false; - - case VIM_B: - if (record->event.pressed) { - switch(VIM_QUEUE) { - case KC_NO: VIM_BACK(); break; - case VIM_C: VIM_CHANGE_BACK(); break; - case VIM_D: VIM_DELETE_BACK(); break; - case VIM_V: VIM_VISUAL_BACK(); break; - } - } - return false; - - case VIM_C: - if (record->event.pressed) { - switch(VIM_QUEUE) { - case KC_NO: SHIFTED ? VIM_CHANGE_LINE() : VIM_LEADER(VIM_C); break; - case VIM_C: VIM_CHANGE_WHOLE_LINE(); break; - } - } - return false; - - case VIM_D: - if (record->event.pressed) { - switch(VIM_QUEUE) { - case KC_NO: SHIFTED ? VIM_DELETE_LINE() : VIM_LEADER(VIM_D); break; - case VIM_D: VIM_DELETE_WHOLE_LINE(); break; - } - } - return false; - - case VIM_E: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: VIM_END(); break; - case VIM_C: VIM_CHANGE_END(); break; - case VIM_D: VIM_DELETE_END(); break; - case VIM_V: VIM_VISUAL_END(); break; - } - } - return false; - - case VIM_H: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: VIM_LEFT(); break; - case VIM_C: VIM_CHANGE_LEFT(); break; - case VIM_D: VIM_DELETE_LEFT(); break; - case VIM_V: VIM_VISUAL_LEFT(); break; - } - } - return false; - - case VIM_I: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: layer_on(INSERT_MODE); break; - case VIM_C: VIM_LEADER(VIM_CI); break; - case VIM_D: VIM_LEADER(VIM_DI); break; - case VIM_V: VIM_LEADER(VIM_VI); break; - } - } - return false; - - case VIM_J: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: SHIFTED ? VIM_JOIN() : VIM_DOWN(); break; - case VIM_C: VIM_CHANGE_DOWN(); break; - case VIM_D: VIM_DELETE_DOWN(); break; - case VIM_V: VIM_VISUAL_DOWN(); break; - } - } - return false; - - case VIM_K: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: VIM_UP(); break; - case VIM_C: VIM_CHANGE_UP(); break; - case VIM_D: VIM_DELETE_UP(); break; - case VIM_V: VIM_VISUAL_UP(); break; - } - } - return false; - - case VIM_L: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: VIM_RIGHT(); break; - case VIM_C: VIM_CHANGE_RIGHT(); break; - case VIM_D: VIM_DELETE_RIGHT(); break; - case VIM_V: VIM_VISUAL_RIGHT(); break; - } - } - return false; - - case VIM_O: - if (record->event.pressed) { SHIFTED ? VIM_OPEN_ABOVE() : VIM_OPEN(); } - return false; - - case VIM_P: - if (record->event.pressed) { SHIFTED ? VIM_PUT_BEFORE() : VIM_PUT(); } - return false; - - case VIM_S: - if (record->event.pressed) { SHIFTED ? VIM_CHANGE_WHOLE_LINE() : VIM_SUBSTITUTE(); } - return false; - - case VIM_U: - if (record->event.pressed) { VIM_UNDO(); } - return false; - - case VIM_V: - if (record->event.pressed) { VIM_LEADER(VIM_V); } - return false; - - case VIM_W: - if (record->event.pressed) { - switch (VIM_QUEUE) { - case KC_NO: VIM_WORD(); break; - case VIM_C: VIM_CHANGE_WORD(); break; - case VIM_CI: VIM_CHANGE_INNER_WORD(); break; - case VIM_D: VIM_DELETE_WORD(); break; - case VIM_DI: VIM_DELETE_INNER_WORD(); break; - case VIM_V: VIM_VISUAL_WORD(); break; - case VIM_VI: VIM_VISUAL_INNER_WORD(); break; - } - } - return false; - - case VIM_X: - if (record->event.pressed) { VIM_CUT(); } - return false; - - case VIM_Y: - if (record->event.pressed) { SHIFTED ? VIM_YANK_LINE() : VIM_YANK(); } - return false; - - // dynamically generate these. - case EPRM: - if (record->event.pressed) { eeconfig_init(); } - return false; - case VRSN: - if (record->event.pressed) { SEND_STRING(VERSION_STRING); } - return false; - case RGB_SLD: - if (record->event.pressed) { rgblight_mode(1); } - return false; - } - - // End by clearing the queue unless keycode is a - // if ((record->event.pressed) && - // (keycode != VIM_I || - // keycode != VIM_C || - // keycode != VIM_D || - // keycode != VIM_V)) { - // VIM_LEADER(KC_NO); - // } - - return true; -}; - -void matrix_init_user(void) { - debug_enable = true; - VIM_LEADER(KC_NO); -}; - -void matrix_scan_user(void) { - uint8_t layer = get_highest_layer(layer_state); - - ergodox_board_led_off(); - ergodox_right_led_1_off(); - ergodox_right_led_2_off(); - ergodox_right_led_3_off(); - switch (layer) { - case 1: - ergodox_right_led_1_on(); - break; - case 2: - ergodox_right_led_2_on(); - break; - case 3: - ergodox_right_led_3_on(); - break; - case 4: - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - break; - case 5: - ergodox_right_led_1_on(); - ergodox_right_led_3_on(); - break; - case 6: - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - break; - case 7: - ergodox_right_led_1_on(); - ergodox_right_led_2_on(); - ergodox_right_led_3_on(); - break; - default: - break; - } - -}; diff --git a/keyboards/ergodox_ez/keymaps/vim/readme.md b/keyboards/ergodox_ez/keymaps/vim/readme.md deleted file mode 100644 index 8f7c685244..0000000000 --- a/keyboards/ergodox_ez/keymaps/vim/readme.md +++ /dev/null @@ -1,5 +0,0 @@ -# Vim-like keymap for macOS - -This keymap adds vim emulation to the keyboard firmware. Layer 0 is 'normal mode', providing a number of commands like `w`, `e`, `a`, `dw`, etc. - -The keymap works by using macOS text-editing shortcuts, so currently it only chooches on macOS. diff --git a/keyboards/ergodox_ez/keymaps/vim/rules.mk b/keyboards/ergodox_ez/keymaps/vim/rules.mk deleted file mode 100644 index 6c605daecf..0000000000 --- a/keyboards/ergodox_ez/keymaps/vim/rules.mk +++ /dev/null @@ -1 +0,0 @@ -MOUSEKEY_ENABLE = yes diff --git a/keyboards/ergodox_ez/keymaps/vim/vim.h b/keyboards/ergodox_ez/keymaps/vim/vim.h deleted file mode 100644 index 2f3b859943..0000000000 --- a/keyboards/ergodox_ez/keymaps/vim/vim.h +++ /dev/null @@ -1,755 +0,0 @@ -#include "config.h" -#include "print.h" -#include "keycode.h" -#include "quantum.h" -#include "quantum_keycodes.h" - -#define NOR_MOD TO(NORMAL_MODE) -#define INS_MOD TO(INSERT_MODE) - -#define PRESS(keycode) register_code16(keycode) -#define RELEASE(keycode) unregister_code16(keycode) - -uint16_t VIM_QUEUE = KC_NO; - -enum custom_keycodes { - PLACEHOLDER = SAFE_RANGE, // can always be here - VIM_A, - VIM_B, - VIM_C, - VIM_CI, - VIM_D, - VIM_DI, - VIM_E, - VIM_H, - VIM_I, - VIM_J, - VIM_K, - VIM_L, - VIM_O, - VIM_P, - VIM_S, - VIM_U, - VIM_V, - VIM_VI, - VIM_W, - VIM_X, - VIM_Y, - EPRM, - VRSN, - RGB_SLD, -}; - -void VIM_APPEND(void); -void VIM_APPEND_LINE(void); -void VIM_BACK(void); -void VIM_CHANGE_BACK(void); -void VIM_CHANGE_DOWN(void); -void VIM_CHANGE_END(void); -void VIM_CHANGE_INNER_WORD(void); -void VIM_CHANGE_LEFT(void); -void VIM_CHANGE_LINE(void); -void VIM_CHANGE_RIGHT(void); -void VIM_CHANGE_UP(void); -void VIM_CHANGE_WHOLE_LINE(void); -void VIM_CHANGE_WORD(void); -void VIM_CUT(void); -void VIM_DELETE_BACK(void); -void VIM_DELETE_DOWN(void); -void VIM_DELETE_END(void); -void VIM_DELETE_INNER_WORD(void); -void VIM_DELETE_LEFT(void); -void VIM_DELETE_LINE(void); -void VIM_DELETE_RIGHT(void); -void VIM_DELETE_UP(void); -void VIM_DELETE_WHOLE_LINE(void); -void VIM_DELETE_WORD(void); -void VIM_END(void); -void VIM_JOIN(void); -void VIM_OPEN(void); -void VIM_OPEN_ABOVE(void); -void VIM_PUT(void); -void VIM_SUBSTITUTE(void); -void VIM_UNDO(void); -void VIM_VISUAL_BACK(void); -void VIM_VISUAL_DOWN(void); -void VIM_VISUAL_END(void); -void VIM_VISUAL_INNER_WORD(void); -void VIM_VISUAL_LEFT(void); -void VIM_VISUAL_RIGHT(void); -void VIM_VISUAL_UP(void); -void VIM_VISUAL_WORD(void); -void VIM_WORD(void); -void VIM_YANK(void); - -void TAP(uint16_t keycode) { - PRESS(keycode); - RELEASE(keycode); -} - -void CMD(uint16_t keycode) { - PRESS(KC_LGUI); - TAP(keycode); - RELEASE(KC_LGUI); -} - -void CTRL(uint16_t keycode) { - PRESS(KC_LCTL); - TAP(keycode); - RELEASE(KC_LCTL); -} - -void SHIFT(uint16_t keycode) { - PRESS(KC_LSFT); - TAP(keycode); - RELEASE(KC_LSFT); -} - -void ALT(uint16_t keycode) { - PRESS(KC_LALT); - TAP(keycode); - RELEASE(KC_LALT); -} - -/** - * Sets the `VIM_QUEUE` variable to the incoming keycode. - * Pass `KC_NO` to cancel the operation. - * @param keycode - */ -void VIM_LEADER(uint16_t keycode) { - VIM_QUEUE = keycode; - switch(keycode) { - case VIM_C: print("\e[32mc\e[0m"); break; - case VIM_CI: print("\e[32mi\e[0m"); break; - case VIM_D: print("\e[32md\e[0m"); break; - case VIM_DI: print("\e[32mi\e[0m"); break; - case VIM_V: print("\e[32mv\e[0m"); break; - case VIM_VI: print("\e[32mi\e[0m"); break; - case KC_NO: print("โ"); break; - } -} - -/*** - * ####### # # ####### ##### # # ####### ####### - * # # ## # # # # # # # # # - * # # # # # # # # # # # # - * # # # # # ##### ##### ####### # # # - * # # # # # # # # # # # # - * # # # ## # # # # # # # # - * ####### # # ####### ##### # # ####### # - * - */ - -/** - * Vim-like `append` command. - * Works by sending โ. - */ -void VIM_APPEND(void) { - print("\e[31ma\e[0m"); - TAP(KC_RIGHT); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `back` command - * Simulates vim's `b` command by sending โฅโ - */ -void VIM_BACK(void) { - print("\e[31mb\e[0m"); - ALT(KC_LEFT); -} - -/** - * Vim-like `cut` command - * Simulates vim's `x` command by sending โงโ then โX. - */ -void VIM_CUT(void) { - print("\e[31mx\e[0m"); - SHIFT(KC_RIGHT); - CMD(KC_X); -} - -/** - * Vim-like `down` command - * Sends โ - */ -void VIM_DOWN(void) { - print("\e[31mj\e[0m"); - TAP(KC_DOWN); -} - -/** - * Vim-like `end` command - * Simulates vim's `e` command by sending โฅโ - */ -void VIM_END(void) { - print("\e[31me\e[0m"); - ALT(KC_RIGHT); -} - -/** - * Vim-like `left` command - * Sends โ - */ -void VIM_LEFT(void) { - print("\e[31mh\e[0m"); - VIM_LEADER(KC_NO); - TAP(KC_LEFT); -} - -/** - * Vim-like `open` command. - * Works by sending โโ to move to the end of the line, `enter` to open a new line, - * then switching to insert mode. - */ -void VIM_OPEN(void) { - print("\e[31mo\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_RIGHT); - TAP(KC_ENTER); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `put` command - * Simulates vim's `p` command by sending โV - */ -void VIM_PUT(void) { - print("\e[31mp\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_V); -} - -/** - * Vim-like `put before` command - * Simulates vim's `P` command by sending โ, โโ, then โV - */ -void VIM_PUT_BEFORE(void) { - print("\e[31mP\e[0m"); - VIM_LEADER(KC_NO); - TAP(KC_UP); - CMD(KC_LEFT); - CMD(KC_V); -} - -/** - * Vim-like `right` command - * Sends โ - */ -void VIM_RIGHT(void) { - print("\e[31ml\e[0m"); - VIM_LEADER(KC_NO); - TAP(KC_RIGHT); -} - -/** - * Vim-like `substitute` command - * Simulates vim's `s` command by sending โงโ to select the next character, then - * โX to cut it, then entering insert mode. - */ -void VIM_SUBSTITUTE(void) { - print("\e[31ms\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_RIGHT); - CMD(KC_X); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `undo` command - * Simulates vim's `u` command by sending โZ - */ -void VIM_UNDO(void) { - print("\e[31mu\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_Z); -} - -/** - * Vim-like `up` command - * Sends โ - */ -void VIM_UP(void) { - print("\e[31mk\e[0m"); - VIM_LEADER(KC_NO); - TAP(KC_UP); -} - -/** - * Vim-like `word` command - * Simulates vim's `w` command by moving the cursor first to the - * end of the current word, then to the end of the next word, - * then to the beginning of that word. - */ -void VIM_WORD(void) { - print("\e[31mw\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - TAP(KC_RIGHT); - TAP(KC_RIGHT); - TAP(KC_LEFT); - RELEASE(KC_LALT); -} - -/** - * Vim-like `yank` command - * Simulates vim's `y` command by sending โC - */ -void VIM_YANK(void) { - print("\e[31my\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_C); -} - -/** - * Vim-like `yank line` command - * Simulates vim's `y` command by sending โโ then โงโโ then โC - */ -void VIM_YANK_LINE(void) { - print("\e[31mY\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_LEFT); - PRESS(KC_LSFT); - CMD(KC_RIGHT); - RELEASE(KC_LSFT); - CMD(KC_C); -} - -/*** - * ##### # # ### ####### ####### ####### ###### - * # # # # # # # # # # - * # # # # # # # # # - * ##### ####### # ##### # ##### # # - * # # # # # # # # # - * # # # # # # # # # # - * ##### # # ### # # ####### ###### - * - */ - -/** - * Vim-like `append to line` command - * Simulates vim's `A` command by sending โโ then switching to insert mode. - */ -void VIM_APPEND_LINE(void) { - print("\e[31mA\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_RIGHT); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change line` command - * Simulates vim's `C` command by sending โK then switching to insert mode. - */ -void VIM_CHANGE_LINE(void) { - print("\e[31mC\e[0m"); - VIM_LEADER(KC_NO); - VIM_DELETE_LINE(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like 'delete line' command - * Simulates vim's `D` command by sending โK to kill the line - */ -void VIM_DELETE_LINE(void) { - print("\e[31mD\e[0m"); - VIM_LEADER(KC_NO); - CTRL(KC_K); -} - -/** - * Vim-like 'join lines' command - * Simulates vim's `J` command by sending โโ to go to the end of the line, then - * DELETE to join the lines - */ -void VIM_JOIN(void) { - print("\e[31mJ\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_RIGHT); - TAP(KC_DELETE); - VIM_LEADER(KC_NO); -} - -/** - * Vim-like 'open above' command - * Simulates vim's `O` command by sending โโ to go to the start of the line, - * enter to move the line down, โ to move up to the new line, then switching to - * insert mode. - */ -void VIM_OPEN_ABOVE(void) { - print("\e[31mO\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_LEFT); - TAP(KC_ENTER); - TAP(KC_UP); - layer_on(INSERT_MODE); -} - -/** - * Vim-like 'change whole line' command - * Simulates vim's `S` `cc` or `c$` commands by sending โโ to go to the start of the line, - * โK to kill the line, then switching to insert mode. - */ -void VIM_CHANGE_WHOLE_LINE(void) { - print("\e[31mS\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_LEFT); - VIM_CHANGE_LINE(); -} - -/*** - * ###### ###### ###### ####### ####### ### # # ####### ###### - * # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # - * # # ###### ###### ##### ##### # # ##### # # - * # # # # # # # # # # # # # - * # # # # # # # # # # # # # - * ###### # # # ####### # ### # # ####### ###### - * - */ - -/** - * Vim-like `delete to end` command - * Simulates vim's `de` command by sending โฅโงโ then โX. - */ -void VIM_DELETE_END(void) { - print("\e[31me\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - SHIFT(KC_RIGHT); // select to end of this word - RELEASE(KC_LALT); - CMD(KC_X); -} - -/** - * Vim-like `delete whole line` command - * Simulates vim's `dd` command by sending โโ to move to start of line, - * selecting the whole line, then sending โX to cut the line. - * alternate method: โโซ, โK - */ -void VIM_DELETE_WHOLE_LINE(void) { - print("\e[31md\e[0m"); - VIM_LEADER(KC_NO); - CMD(KC_LEFT); - PRESS(KC_LSFT); - CMD(KC_RIGHT); - RELEASE(KC_LSFT); - CMD(KC_X); -} - -/** - * Vim-like `delete word` command - * Simulates vim's `dw` command by sending โฅโงโโโ then โX to select to the start - * of the next word then cut. - */ -void VIM_DELETE_WORD(void) { - print("\e[31mw\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - SHIFT(KC_RIGHT); // select to end of this word - SHIFT(KC_RIGHT); // select to end of next word - SHIFT(KC_LEFT); // select to start of next word - RELEASE(KC_LALT); - CMD(KC_X); // delete selection -} - -/** - * Vim-like `delete back` command - * Simulates vim's `db` command by selecting to the end of the word then deleting. - */ -void VIM_DELETE_BACK(void) { - print("\e[31mb\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - SHIFT(KC_LEFT); // select to start of word - SHIFT(KC_DEL); // delete selection - RELEASE(KC_LSFT); -} - -/** - * Vim-like `delete left` command - * Simulates vim's `dh` command by sending โงโ then โX. - */ -void VIM_DELETE_LEFT(void) { - print("\e[31mh\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_LEFT); - CMD(KC_X); -} - -/** - * Vim-like `delete right` command - * Simulates vim's `dl` command by sending โงโ then โX. - */ -void VIM_DELETE_RIGHT(void) { - print("\e[31ml\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_RIGHT); - CMD(KC_X); -} - -/** - * Vim-like `delete up` command - * Simulates vim's `dk` command by sending โ then deleting the line. - */ -void VIM_DELETE_UP(void) { - print("\e[31mk\e[0m"); - VIM_LEADER(KC_NO); - TAP(KC_UP); - VIM_DELETE_LINE(); -} - -/** - * Vim-like `delete down` command - * Simulates vim's `dj` command by sending โ then deleting the line. - */ -void VIM_DELETE_DOWN(void) { - print("\e[31mj\e[0m"); - VIM_LEADER(KC_NO); - TAP(KC_DOWN); - VIM_DELETE_LINE(); -} - -/*** - * ###### ### ###### ###### ####### ####### ### # # ####### ###### - * # # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # # - * # # # ###### ###### ##### ##### # # ##### # # - * # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # - * ###### ### # # # ####### # ### # # ####### ###### - * - */ - -/** - * Vim-like `delete inner word` command - * Simulates vim's `diw` command by moving back then cutting to the end of the word. - */ -void VIM_DELETE_INNER_WORD(void) { - print("\e[31mw\e[0m"); - VIM_LEADER(KC_NO); - VIM_BACK(); - VIM_DELETE_END(); -} - -/*** - * ##### ###### ###### ####### ####### ### # # ####### ###### - * # # # # # # # # # # # # # # - * # # # # # # # # # # # # # - * # ###### ###### ##### ##### # # ##### # # - * # # # # # # # # # # # # - * # # # # # # # # # # # # # - * ##### # # # ####### # ### # # ####### ###### - * - */ - -/** - * Vim-like `change back` command - * Simulates vim's `cb` command by first deleting to the start of the word, - * then switching to insert mode. - */ -void VIM_CHANGE_BACK(void) { - print("\e[31mb\e[0m"); - VIM_LEADER(KC_NO); - VIM_DELETE_BACK(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change down` command - * Simulates vim's `cj` command by sending โ then changing the line. - */ -void VIM_CHANGE_DOWN(void) { - print("\e[31mj\e[0m"); - VIM_LEADER(KC_NO); - VIM_DELETE_DOWN(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change to end` command - * Simulates vim's `ce` command by first deleting to the end of the word, - * then switching to insert mode. - */ -void VIM_CHANGE_END(void) { - print("\e[31mce\e[0m"); - VIM_LEADER(KC_NO); - VIM_DELETE_END(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change left` command - * Simulates vim's `ch` command by deleting left then switching to insert mode. - */ -void VIM_CHANGE_LEFT(void) { - print("\e[31mch\e[0m"); - VIM_LEADER(KC_NO); - VIM_DELETE_LEFT(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change right` command - * Simulates vim's `cl` command by deleting right then switching to insert mode. - */ -void VIM_CHANGE_RIGHT(void) { - print("\e[31mcl\e[0m"); - VIM_DELETE_RIGHT(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change up` command - * Simulates vim's `ck` command by deleting up then switching to insert mode. - */ -void VIM_CHANGE_UP(void) { - print("\e[31mck\e[0m"); - VIM_DELETE_UP(); - layer_on(INSERT_MODE); -} - -/** - * Vim-like `change word` command - * Simulates vim's `cw` command by first deleting to the end of the word, - * then switching to insert mode. - */ -void VIM_CHANGE_WORD(void) { - print("\e[31mcw\e[0m"); - VIM_LEADER(KC_NO); - VIM_DELETE_WORD(); - layer_on(INSERT_MODE); -} - -/*** - * ##### ### ###### ###### ####### ####### ### # # ####### ###### - * # # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # - * # # ###### ###### ##### ##### # # ##### # # - * # # # # # # # # # # # # # - * # # # # # # # # # # # # # # - * ##### ### # # # ####### # ### # # ####### ###### - * - */ - -/** - * Vim-like `change inner word` command - * Simulates vim's `ciw` command by deleting the inner word then switching to insert mode. - */ -void VIM_CHANGE_INNER_WORD(void) { - print("\e[31mciw\e[0m"); - VIM_DELETE_INNER_WORD(); - layer_on(INSERT_MODE); -} - -/*** - * # # ###### ###### ####### ####### ### # # ####### ###### - * # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # - * # # ###### ###### ##### ##### # # ##### # # - * # # # # # # # # # # # # # - * # # # # # # # # # # # # # - * # # # # ####### # ### # # ####### ###### - * - */ - -/** - * Vim-like `visual select back` command - * Simulates vim's `vb` command by selecting to the enc of the word. - */ -void VIM_VISUAL_BACK(void) { - print("\e[31mvb\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - SHIFT(KC_LEFT); // select to start of word - RELEASE(KC_LALT); -} - -/** - * Vim-like `visual select to end` command - * Simulates vim's `ve` command by selecting to the end of the word. - */ -void VIM_VISUAL_END(void) { - print("\e[31mve\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - SHIFT(KC_RIGHT); // select to end of this word - RELEASE(KC_LALT); -} - -/** - * Vim-like `visual select word` command - * Simulates vim's `vw` command by selecting to the end of the word. - */ -void VIM_VISUAL_WORD(void) { - print("\e[31mvw\e[0m"); - VIM_LEADER(KC_NO); - PRESS(KC_LALT); - SHIFT(KC_RIGHT); // select to end of this word - SHIFT(KC_RIGHT); // select to end of next word - SHIFT(KC_LEFT); // select to start of next word - RELEASE(KC_LALT); -} - -/** - * Vim-like `visual left` command - * Simulates vim's `vh` command by sending โงโ. - */ -void VIM_VISUAL_LEFT(void) { - print("\e[31mvh\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_LEFT); -} - -/** - * Vim-like `visual right` command - * Simulates vim's `vl` command by sending โงโ. - */ -void VIM_VISUAL_RIGHT(void) { - print("\e[31mvl\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_RIGHT); -} - -/** - * Vim-like `visual up` command - * Simulates vim's `vk` command by sending โงโ. - */ -void VIM_VISUAL_UP(void) { - print("\e[31mvk\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_UP); -} - -/** - * Vim-like `visual down` command - * Simulates vim's `vj` command by sending โงโ. - */ -void VIM_VISUAL_DOWN(void) { - print("\e[31mdj\e[0m"); - VIM_LEADER(KC_NO); - SHIFT(KC_DOWN); -} - -/*** - * # # ### ###### ###### ####### ####### ### # # ####### ###### - * # # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # # - * # # # ###### ###### ##### ##### # # ##### # # - * # # # # # # # # # # # # # # - * # # # # # # # # # # # # # # - * # ### # # # ####### # ### # # ####### ###### - * - */ - -/** - * Vim-like `visual inner word` command - * Simulates vim's `viw` command by moving back then selecting to the end of the word. - */ -void VIM_VISUAL_INNER_WORD(void) { - print("\e[31mviw\e[0m"); - VIM_LEADER(KC_NO); - VIM_BACK(); - VIM_VISUAL_END(); -} |