diff options
author | lucwastiaux <luc.wastiaux@xsmail.com> | 2018-02-23 19:16:40 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-02-23 19:16:40 +0100 |
commit | 27d32378b5afb2a9fb46e47ca687c3be394079a6 (patch) | |
tree | c0f40952bed9120d9a95c4fd7b3ec9b34a57c5c9 /keyboards/atreus/keymaps | |
parent | 3f3d0551cd5f2ca0b72fc4b24d1d7955ffa8cb78 (diff) | |
download | qmk_firmware-27d32378b5afb2a9fb46e47ca687c3be394079a6.tar.gz qmk_firmware-27d32378b5afb2a9fb46e47ca687c3be394079a6.tar.xz |
Update Dvorak 42 key layouts (#2420)
* add SCREEN_NAV layer for copy/pasting within screen
* working readreg/paste macros
* working read reg / paste macros
* write log and tran patterns, and expand
* add ls -la shortcut, add tab on combined layer
* put delete word on the right pinky key on shell_nav layer
* add TAB on the right side, add reset key
* added Cloud9 macros
* add cloud9 shortcuts to atreus layout
* added BROWSER_CONTROL layer
* finalized browser control layer
* adding comment
Diffstat (limited to 'keyboards/atreus/keymaps')
-rw-r--r-- | keyboards/atreus/keymaps/dvorak_42_key/keymap.c | 55 |
1 files changed, 51 insertions, 4 deletions
diff --git a/keyboards/atreus/keymaps/dvorak_42_key/keymap.c b/keyboards/atreus/keymaps/dvorak_42_key/keymap.c index 457db372a..1617f1baf 100644 --- a/keyboards/atreus/keymaps/dvorak_42_key/keymap.c +++ b/keyboards/atreus/keymaps/dvorak_42_key/keymap.c @@ -14,6 +14,19 @@ static bool mouse_lock = false; +enum custom_keycodes { + PLACEHOLDER = SAFE_RANGE, // can always be here + + // Cloud9 macros + CLOUD9_TAB_LEFT, + CLOUD9_TAB_RIGHT, + CLOUD9_TAB_CLOSE, + CLOUD9_GOTO_SYMBOL, + CLOUD9_GOTO_LINE, + CLOUD9_NAVIGATE, + +}; + // building instructions: // make atreus:dvorak_42_key @@ -30,10 +43,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }, [KEYNAV] = { - {KC_ESC, MEH(KC_F9), RCTL(KC_Z), RCTL(KC_S), MEH(KC_F10), KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, }, - {MEH(KC_F11), MEH(KC_F12), RSFT(KC_TAB), KC_TAB, MEH(KC_A), KC_TRNS, LCTL(KC_LEFT), KC_LEFT, KC_DOWN, KC_RIGHT, LCTL(KC_RIGHT), }, - {MEH(KC_B), MEH(KC_C), MEH(KC_D), MEH(KC_E), MEH(KC_F), KC_TRNS, KC_TRNS, RCTL(KC_C), RCTL(KC_X), RCTL(KC_V), KC_PGDOWN, }, - {KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENTER, KC_SPACE, KC_BSPC, RCTL(KC_BSPC), KC_DELETE, LCTL(KC_DELETE), } + {KC_ESC, CLOUD9_GOTO_LINE, RCTL(KC_Z), RCTL(KC_S), MEH(KC_F10), KC_TRNS, KC_TRNS, KC_HOME, KC_UP, KC_END, KC_PGUP, }, + {MEH(KC_F11), CLOUD9_GOTO_SYMBOL, RSFT(KC_TAB), KC_TAB, MEH(KC_A), KC_TRNS, LCTL(KC_LEFT), KC_LEFT, KC_DOWN, KC_RIGHT, LCTL(KC_RIGHT), }, + {MEH(KC_B), CLOUD9_NAVIGATE, CLOUD9_TAB_LEFT, CLOUD9_TAB_RIGHT, CLOUD9_TAB_CLOSE, KC_TRNS, KC_TRNS, RCTL(KC_C), RCTL(KC_X), RCTL(KC_V), KC_PGDOWN, }, + {KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENTER, KC_SPACE, KC_BSPC, RCTL(KC_BSPC), KC_DELETE, LCTL(KC_DELETE), } }, [KEYSEL] = { @@ -64,6 +77,40 @@ const uint16_t PROGMEM fn_actions[] = { }; +bool process_record_user(uint16_t keycode, keyrecord_t *record) { + if(record->event.pressed) { + switch (keycode) { + // Cloud9 macros + case CLOUD9_TAB_LEFT: + SEND_STRING(SS_LCTRL("[")); + return true; + break; + case CLOUD9_TAB_RIGHT: + SEND_STRING(SS_LCTRL("]")); + return true; + break; + case CLOUD9_TAB_CLOSE: + SEND_STRING(SS_LALT("w")); + return true; + break; + case CLOUD9_GOTO_SYMBOL: + SEND_STRING(SS_LSFT(SS_LCTRL("e"))); + return true; + break; + case CLOUD9_GOTO_LINE: + SEND_STRING(SS_LCTRL("g")); + return true; + break; + case CLOUD9_NAVIGATE: + SEND_STRING(SS_LCTRL("e")); + return true; + break; + } + } + + return true; +} + const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) { // MACRODOWN only works in this function |