introduce shell_layer
This commit is contained in:
parent
1ac15e6b3a
commit
072237bce8
@ -6,7 +6,8 @@
|
||||
#include "action_code.h"
|
||||
|
||||
#define BASE 0 // default layer
|
||||
#define SHELL_NAV 1
|
||||
#define SHELL_LAYER 1
|
||||
#define SHELL_NAV 2
|
||||
#define KEY_NAV 3 // key navigation layer
|
||||
#define KEY_SEL 4 // key selection layer
|
||||
#define NUMBER 5 // number layer
|
||||
@ -80,6 +81,32 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
),
|
||||
|
||||
|
||||
// permanent shell layer - meant to be used while in a terminal
|
||||
[SHELL_LAYER] = KEYMAP(
|
||||
// left hand
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,M(SCREEN_COPY_MODE), M(SCREEN_PASTE),M(SHELL_RECALL_LAST_ARG_REMOVE_FIRST_COMMAND),
|
||||
KC_TAB, KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,RCTL(KC_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,LALT(KC_DOT),
|
||||
// bottom row
|
||||
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
||||
// thumb cluster
|
||||
LALT(KC_B),LALT(KC_F),
|
||||
LALT(KC_D),
|
||||
KC_TRNS,RCTL(KC_W),KC_TRNS,
|
||||
// right hand
|
||||
RCTL(KC_C), KC_LEFT, KC_RIGHT, RCTL(KC_U), RCTL(KC_K), KC_TRNS, KC_TRNS,
|
||||
KC_UP, 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_DOWN, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
// bottom row
|
||||
M(SCREEN_TAB_LEFT), M(SCREEN_TAB_RIGHT), M(SCREEN_NEW_TAB), KC_TRNS, KC_TRNS,
|
||||
// thumb cluster
|
||||
KC_TRNS, KC_TRNS,
|
||||
KC_TRNS,
|
||||
MEH(KC_V), KC_TRNS, KC_TRNS
|
||||
),
|
||||
|
||||
// shell navigation layer
|
||||
[SHELL_NAV] = KEYMAP(
|
||||
// left hand
|
||||
@ -246,7 +273,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
MEH(KC_S), MEH(KC_T), MEH(KC_U), MEH(KC_V), MEH(KC_X),
|
||||
MEH(KC_6), MEH(KC_7),
|
||||
MEH(KC_8),
|
||||
MEH(KC_9), MEH(KC_Y), MEH(KC_Z)
|
||||
MEH(KC_9), TO(BASE), TO(SHELL_LAYER)
|
||||
),
|
||||
|
||||
|
||||
@ -407,6 +434,7 @@ void matrix_scan_user(void) {
|
||||
case NUMBER:
|
||||
case SYMBOL:
|
||||
case BRACKETS:
|
||||
//case SHELL_LAYER:
|
||||
ergodox_right_led_2_on();
|
||||
break;
|
||||
case KEY_NAV:
|
||||
|
Loading…
Reference in New Issue
Block a user