1
0
Fork 0

Added macro and readme

macros to for often used eclipse shortcuts
This commit is contained in:
Josh Colbeck 2016-07-04 15:22:13 -05:00
parent 1650adf29a
commit 497b92c3bd
2 changed files with 40 additions and 18 deletions

View file

@ -7,21 +7,23 @@
#define MDIA 2 // media keys #define MDIA 2 // media keys
//macros //macros
#define CRT_SFT_T 100 #define CTL_SFT_T 100
#define CTL_SFT_G 101
#define CTL_ALT_T 102
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Keymap 0: Basic layer /* Keymap 0: Basic layer
* *
* ,--------------------------------------------------. ,--------------------------------------------------. * ,--------------------------------------------------. ,--------------------------------------------------.
* | = | 1 | 2 | 3 | 4 | 5 | ESC | | RIGHT| 6 | 7 | 8 | 9 | 0 | - | * | = | 1 | 2 | 3 | 4 | 5 | ESC | | M 100| 6 | 7 | 8 | 9 | 0 | - |
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
* | TAB | Q | W | E | R | T | Meh | | Meh | Y | U | I | O | P | \ | * |TAB /Alt| Q | W | E | R | T | Meh | | Meh | Y | U | I | O | P |\ / ALT |
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
* | LCTL | A | S | D | F | G |------| |------| H | J | K | L |; / L2|' / CTL | * | LCTL | A | S | D | F | G |------| |------| H | J | K | L |; / L2|' / CTL |
* |--------+------+------+------+------+------| ~L1 | | ~L1 |------+------+------+------+------+--------| * |--------+------+------+------+------+------| ~L1 | | ~L1 |------+------+------+------+------+--------|
* | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift | * | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift |
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------' * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
* | WIN | ` | LALT | LCTL |AltShf| |AltShf| Left | Down | Up | Right | * | WIN | ` | M 102| M 101|AltShf| |AltShf| Left | Down | Up | Right |
* `----------------------------------' `----------------------------------' * `----------------------------------' `----------------------------------'
* ,-------------. ,-------------. * ,-------------. ,-------------.
* | App | LALT | | Alt | CAPS | * | App | LALT | | Alt | CAPS |
@ -39,12 +41,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
ALT_T(KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, ALL_T(KC_NO), ALT_T(KC_TAB), KC_Q, KC_W, KC_E, KC_R, KC_T, ALL_T(KC_NO),
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G,
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_FN1, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_FN1,
KC_LGUI, KC_GRV, KC_LALT,KC_LCTL,LALT(KC_LSFT), KC_LGUI, KC_GRV, M(CTL_ALT_T),M(CTL_SFT_G),LALT(KC_LSFT),
CTL_T(KC_APP), KC_LALT, CTL_T(KC_APP), KC_LALT,
KC_HOME, KC_HOME,
KC_SPC,KC_BSPC,KC_END, KC_SPC,KC_BSPC,KC_END,
// right hand // right hand
M(CRT_SFT_T), KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, M(CTL_SFT_T),KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
MEH_T(KC_NO),KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, MEH_T(KC_NO),KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN),CTL_T(KC_QUOT), KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN),CTL_T(KC_QUOT),
KC_FN1, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT, KC_FN1, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH, KC_RSFT,
@ -151,12 +153,24 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION); SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
} }
break; break;
case CRT_SFT_T: case CTL_SFT_T:
if (record->event.pressed) { if (record->event.pressed) {
return MACRO(D(LCTL), D(LSFT), T(T), END); return MACRO(D(LCTL), D(LSFT), T(T), END);
} }
return MACRO(U(LCTL), U(LSFT), END); return MACRO(U(LCTL), U(LSFT), END);
break; break;
case CTL_SFT_G:
if (record->event.pressed) {
return MACRO(D(LCTL), D(LSFT), T(G), END);
}
return MACRO(U(LCTL), U(LSFT), END);
break;
case CTL_ALT_T:
if (record->event.pressed) {
return MACRO(D(LCTL), D(LALT), T(T), END);
}
return MACRO(U(LCTL), U(LALT), END);
break;
} }
return MACRO_NONE; return MACRO_NONE;
}; };

View file

@ -0,0 +1,8 @@
Layout is based on the default layout that comes on the ergodox infinity. Focused mostly on making ctl and alt easy to reach. I spend most my day working in Eclipse which has just so many 3 key shortcuts.
* Removed numpad keys from symbol layer (I don't use them)
* Added arrow keys under h, j, k, l on symbol layer. vi movement keys!
* Added a few macros for eclipse hotkeys that I used all the time
* Added calc button on symbol layer
* tap vs hold on tab and \. Gives alt, ctl and shift on both sides of the keyboard