2017-09-16 04:00:26 +02:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
#include "debug.h"
|
|
|
|
#include "action_layer.h"
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
|
|
|
|
// to build this keymap
|
2017-10-14 23:32:19 +02:00
|
|
|
// make ergodox_ez:dvorak_42_key:teensy
|
2021-02-21 05:09:49 +01:00
|
|
|
// or:
|
|
|
|
// qmk compile -kb ergodox_ez -km dvorak_42_key
|
2018-03-16 21:21:00 +01:00
|
|
|
// flashing from rpi:
|
|
|
|
// sudo teensy_loader_cli -v -w .build/ergodox_ez_dvorak_42_key.hex --mcu atmega32u4
|
2017-09-16 04:00:26 +02:00
|
|
|
|
2018-02-23 19:16:40 +01:00
|
|
|
// keeping fork up to date:
|
|
|
|
// https://help.github.com/articles/configuring-a-remote-for-a-fork/
|
|
|
|
// https://help.github.com/articles/syncing-a-fork/
|
|
|
|
// pushing dev branch
|
|
|
|
// git push origin dev:dev
|
|
|
|
|
2019-10-08 17:43:54 +02:00
|
|
|
// debounce settings
|
|
|
|
// remove these after getting a new keyboard
|
|
|
|
// #define DEBOUNCE 50
|
|
|
|
// #define QMK_KEYS_PER_SCAN 4
|
|
|
|
|
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
enum custom_keycodes {
|
|
|
|
PLACEHOLDER = SAFE_RANGE, // can always be here
|
|
|
|
EPRM,
|
|
|
|
VRSN,
|
|
|
|
RGB_SLD,
|
2017-11-06 18:07:21 +01:00
|
|
|
// shell nav macros
|
|
|
|
SHELL_LS,
|
|
|
|
SHELL_LSLTR,
|
2018-06-13 06:55:08 +02:00
|
|
|
SHELL_LSLA,
|
2017-11-06 18:07:21 +01:00
|
|
|
SHELL_CDPRE,
|
|
|
|
SHELL_LESS,
|
|
|
|
SHELL_PLESS,
|
|
|
|
SHELL_PGREP,
|
2018-06-13 06:55:08 +02:00
|
|
|
SHELL_TAILF,
|
|
|
|
|
2017-11-06 18:07:21 +01:00
|
|
|
SHELL_PWD,
|
|
|
|
SHELL_H3,
|
|
|
|
SHELL_AMMCOLO,
|
|
|
|
SHELL_SCREENRD,
|
|
|
|
SHELL_SCREEN_NEW,
|
|
|
|
SHELL_SCREEN_LIST,
|
|
|
|
SHELL_MKE,
|
2017-11-14 00:50:39 +01:00
|
|
|
SHELL_HTCSTATUS,
|
2018-07-26 23:21:55 +02:00
|
|
|
SHELL_HTCBOUNCE,
|
|
|
|
SHELL_DUMPTLOG,
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2018-07-26 23:21:55 +02:00
|
|
|
SHELL_EXPAND_OE_LOGPATTERN,
|
|
|
|
SHELL_EXPAND_OE_TRANPATTERN,
|
2019-10-08 17:43:54 +02:00
|
|
|
|
2021-02-21 05:09:49 +01:00
|
|
|
SCREEN_TAB_LEFT,
|
|
|
|
SCREEN_TAB_RIGHT,
|
|
|
|
|
|
|
|
SCREEN_NEW_TAB,
|
|
|
|
SCREEN_DETACH,
|
|
|
|
SCREEN_RENAME,
|
|
|
|
SCREEN_NUMBER,
|
|
|
|
|
|
|
|
SCREEN_0,
|
|
|
|
SCREEN_1,
|
|
|
|
SCREEN_2,
|
|
|
|
SCREEN_3,
|
|
|
|
SCREEN_4,
|
|
|
|
SCREEN_5,
|
|
|
|
SCREEN_6,
|
|
|
|
SCREEN_7,
|
|
|
|
SCREEN_8,
|
|
|
|
SCREEN_9,
|
|
|
|
|
|
|
|
SCREEN_COPY_MODE,
|
|
|
|
SCREEN_PASTE,
|
|
|
|
|
|
|
|
SCREEN_UP_JUMP,
|
|
|
|
SCREEN_DOWN_JUMP,
|
|
|
|
|
|
|
|
SCREEN_READREG_1,
|
|
|
|
SCREEN_READREG_2,
|
|
|
|
SCREEN_READREG_3,
|
|
|
|
SCREEN_PASTEREG_1,
|
|
|
|
SCREEN_PASTEREG_2,
|
|
|
|
SCREEN_PASTEREG_3,
|
|
|
|
|
2019-10-08 17:43:54 +02:00
|
|
|
// Windows 10 macros,
|
|
|
|
WINDOWS10_WORKSPACE_LEFT,
|
|
|
|
WINDOWS10_WORKSPACE_RIGHT,
|
2020-06-22 10:45:47 +02:00
|
|
|
WINDOWS10_TASK_VIEW
|
2017-09-16 04:00:26 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2019-03-18 19:10:18 +01:00
|
|
|
#define BASE 0 // base dvorak layer
|
2020-06-22 10:45:47 +02:00
|
|
|
#define KEYNAV 1 // arrow navigation (right hand)
|
|
|
|
#define KEYSEL 2 // arrow navigation + shift (allow text selection)
|
|
|
|
#define SHELL_NAV 3 // bash shortcuts
|
|
|
|
#define SHELL_SCREEN 4 // linux screen shortcuts
|
|
|
|
#define SCREEN_NAV 5 // navigate between linux screen tabs
|
|
|
|
#define BROWSER_CONTROL 6 // control browser and mouse
|
|
|
|
#define COMBINED 7 // combined numbers and symbols layer
|
|
|
|
#define ANDROID_STUDIO 8 // android studio specific layer
|
|
|
|
#define VSCODE 9 // visual studio code specific layer
|
2018-02-23 19:16:40 +01:00
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
|
2018-07-26 23:21:55 +02:00
|
|
|
|
2019-03-18 19:10:18 +01:00
|
|
|
// Android Studio shortcuts
|
|
|
|
#define AS_TABLEFT LALT(KC_LEFT)
|
|
|
|
#define AS_TABRIGHT LALT(KC_RIGHT)
|
|
|
|
#define AS_SYMBOL LCTL(LALT(KC_N))
|
|
|
|
#define AS_CLASS LCTL(KC_N)
|
|
|
|
#define AS_FINDUSAGE LALT(KC_F7)
|
|
|
|
#define AS_BACK LCTL(LALT(KC_LEFT))
|
2022-01-11 01:52:54 +01:00
|
|
|
#define AS_BRACKET LCTL(LSFT(KC_M))
|
2019-03-18 19:10:18 +01:00
|
|
|
#define AS_GO_DECLARATION LCTL(KC_B)
|
|
|
|
#define AS_GO_IMPLEMENTATION LCTL(LALT(KC_B))
|
|
|
|
#define AS_CLOSETAB LCTL(KC_F4)
|
|
|
|
#define AS_CLOSETOOLWINDOW LCTL(LSFT(KC_F4))
|
2020-08-20 03:38:52 +02:00
|
|
|
#define AS_COPYLINEDOWN LCTL(KC_D)
|
|
|
|
#define AS_DEL_LINE LCTL(KC_Y)
|
|
|
|
#define AS_LINE LCTL(KC_G)
|
2022-01-11 01:52:54 +01:00
|
|
|
#define AS_CMT_BLOCK LCTL(LSFT(KC_SLSH))
|
|
|
|
#define AS_CMT_LINE LCTL(KC_SLSH)
|
|
|
|
#define AS_BM_PREV LALT(KC_P)
|
|
|
|
#define AS_BM_NEXT LALT(KC_N)
|
|
|
|
#define AS_BM_TOGGLE KC_F11
|
|
|
|
#define AS_BM_LIST LSFT(KC_F11)
|
2017-09-16 04:00:26 +02:00
|
|
|
|
2020-06-22 10:45:47 +02:00
|
|
|
// visual studio code shortcuts
|
|
|
|
#define VS_FILE LCTL(KC_P)
|
2021-02-21 05:09:49 +01:00
|
|
|
#define VS_OPEN_FILE LCTL(KC_O)
|
2020-06-22 10:45:47 +02:00
|
|
|
#define VS_LINE LCTL(KC_G)
|
|
|
|
#define VS_SYMBOLEDITOR LCTL(LSFT(KC_O))
|
|
|
|
#define VS_DEFINITION KC_F12
|
|
|
|
#define VS_IMPLEMENTATION LCTL(KC_F12)
|
|
|
|
#define VS_REFERENCES LSFT(KC_F12)
|
|
|
|
#define VS_BACK LALT(KC_LEFT)
|
|
|
|
#define VS_BRACKET LCTL(LSFT(KC_BSLS))
|
|
|
|
#define VS_TABLEFT LCTL(KC_PGUP)
|
|
|
|
#define VS_TABRIGHT LCTL(KC_PGDN)
|
|
|
|
#define VS_CLOSETAB LCTL(KC_W)
|
|
|
|
#define VS_CLOSEPANEL LCTL(LSFT(KC_W))
|
2021-02-21 05:09:49 +01:00
|
|
|
#define VS_GROUP_1 LCTL(KC_1)
|
|
|
|
#define VS_GROUP_2 LCTL(KC_2)
|
2020-06-22 10:45:47 +02:00
|
|
|
#define VS_TERMINAL LCTL(KC_GRAVE)
|
|
|
|
#define VS_BUILD LCTL(LSFT(KC_B))
|
|
|
|
#define VS_COMMANDS LCTL(LSFT(KC_P))
|
|
|
|
#define VS_CMT_BLOCK LSFT(LALT(KC_A))
|
|
|
|
#define VS_CMT_LINE LCTL(KC_SLSH)
|
|
|
|
#define VS_DEL_LINE LCTL(LSFT(KC_K))
|
|
|
|
#define VS_COPYLINEDOWN LSFT(LALT(KC_DOWN))
|
|
|
|
// visual studio bookmark commands
|
|
|
|
#define VS_BM_LIST LCTL(LALT(KC_L))
|
|
|
|
#define VS_BM_LISTALL LCTL(LALT(KC_A))
|
|
|
|
#define VS_BM_PREV LCTL(LALT(KC_P))
|
|
|
|
#define VS_BM_NEXT LCTL(LALT(KC_N))
|
|
|
|
#define VS_BM_TOGGLE LCTL(LALT(KC_K))
|
2022-01-11 01:52:54 +01:00
|
|
|
#define VS_BM_CLEARALL LCTL(LALT(KC_C))
|
2020-06-22 10:45:47 +02:00
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
|
2017-11-06 18:07:21 +01:00
|
|
|
#define MACRO_SCREEN_NUM(MACRO_NAME,NUM) \
|
|
|
|
case MACRO_NAME:\
|
|
|
|
if (record->event.pressed) {\
|
|
|
|
return MACRO( D(LCTL), T(A), U(LCTL), T(NUM), END);\
|
|
|
|
}\
|
|
|
|
break;\
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2018-02-23 19:16:40 +01:00
|
|
|
#define MACRO_SCREEN_REG(MACRO_NAME,NUM) \
|
|
|
|
case MACRO_NAME:\
|
|
|
|
if (record->event.pressed) {\
|
|
|
|
return MACRO( D(LCTL), T(A), U(LCTL), D(LSFT), T(SCOLON), U(LSFT),\
|
|
|
|
T(R),\
|
|
|
|
T(E),\
|
|
|
|
T(A),\
|
|
|
|
T(D),\
|
|
|
|
T(R),\
|
|
|
|
T(E),\
|
|
|
|
T(G),\
|
|
|
|
T(SPC),\
|
|
|
|
T(NUM),\
|
|
|
|
T(ENTER),\
|
|
|
|
END);\
|
|
|
|
}\
|
|
|
|
break;\
|
|
|
|
|
|
|
|
#define MACRO_SCREEN_PASTE(MACRO_NAME,NUM)\
|
|
|
|
case MACRO_NAME:\
|
|
|
|
if (record->event.pressed) {\
|
|
|
|
return MACRO( D(LCTL), T(A), U(LCTL), D(LSFT), T(SCOLON), U(LSFT),\
|
|
|
|
T(P),\
|
|
|
|
T(A),\
|
|
|
|
T(S),\
|
|
|
|
T(T),\
|
|
|
|
T(E),\
|
|
|
|
T(SPC),\
|
|
|
|
T(NUM),\
|
|
|
|
T(ENTER),\
|
|
|
|
END);\
|
|
|
|
}\
|
|
|
|
break;\
|
2017-11-06 18:07:21 +01:00
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
2018-06-13 06:55:08 +02:00
|
|
|
[BASE] = LAYOUT_ergodox(
|
2017-11-14 00:50:39 +01:00
|
|
|
// left hand
|
|
|
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6,
|
2020-08-20 03:38:52 +02:00
|
|
|
OSL(SCREEN_NAV), KC_QUOTE, KC_COMMA, KC_DOT, KC_P, KC_Y, MO(ANDROID_STUDIO),
|
2017-11-14 00:50:39 +01:00
|
|
|
OSL(SHELL_NAV), KC_A, KC_O, KC_E, KC_U, KC_I,
|
2020-06-22 10:45:47 +02:00
|
|
|
OSL(SHELL_SCREEN), KC_SCOLON, KC_Q, KC_J, KC_K, KC_X, MO(VSCODE),
|
2018-02-23 19:16:40 +01:00
|
|
|
MEH(KC_1), OSM(MOD_LSFT), OSM(MOD_LCTL), MO(KEYSEL), MO(BROWSER_CONTROL),
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// left thumb cluster
|
2019-10-08 17:43:54 +02:00
|
|
|
WINDOWS10_WORKSPACE_LEFT, WINDOWS10_WORKSPACE_RIGHT,
|
2020-06-22 10:45:47 +02:00
|
|
|
WINDOWS10_TASK_VIEW,
|
2017-11-14 00:50:39 +01:00
|
|
|
MO(COMBINED),MO(KEYNAV), OSM(MOD_LALT),
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// right hand
|
|
|
|
KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, MEH(KC_9),
|
2018-02-23 19:16:40 +01:00
|
|
|
MEH(KC_7), KC_F, KC_G, KC_C, KC_R, KC_L, KC_TAB,
|
|
|
|
KC_D, KC_H, KC_T, KC_N, KC_S, RCTL(KC_BSPC),
|
2017-11-14 00:50:39 +01:00
|
|
|
MEH(KC_8), KC_B, KC_M, KC_W, KC_V, KC_Z, MEH(KC_F3),
|
|
|
|
KC_BSPC, RCTL(KC_BSPC), KC_CAPSLOCK, OSM(MOD_LSFT),MEH(KC_F4),
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// right thumb cluster
|
|
|
|
MEH(KC_F5),MEH(KC_F6),MEH(KC_F7),MEH(KC_F8),KC_ENTER,KC_SPACE
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
),
|
2019-10-08 17:43:54 +02:00
|
|
|
|
2018-06-13 06:55:08 +02:00
|
|
|
[KEYNAV] = LAYOUT_ergodox(
|
2017-11-14 00:50:39 +01:00
|
|
|
// left hand
|
2020-06-22 10:45:47 +02:00
|
|
|
KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,KC_ESC, KC_TRNS, RCTL(KC_Z), RCTL(KC_S), KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,KC_LSFT, KC_TRNS, RSFT(KC_TAB), KC_TAB, 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,
|
2017-11-14 00:50:39 +01:00
|
|
|
// left thumb cluster
|
2018-07-26 23:21:55 +02:00
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// right hand
|
|
|
|
KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MEH(KC_G),
|
|
|
|
KC_TRNS,KC_NO, KC_HOME, KC_UP, KC_END, KC_PGUP, MEH(KC_H),
|
|
|
|
LCTL(KC_LEFT), KC_LEFT, KC_DOWN, KC_RIGHT, LCTL(KC_RIGHT), MEH(KC_I),
|
2021-02-21 05:09:49 +01:00
|
|
|
KC_TRNS,KC_TRNS, RCTL(KC_C), RCTL(KC_X), RCTL(KC_V), KC_PGDOWN, MEH(KC_J),
|
2017-11-14 00:50:39 +01:00
|
|
|
KC_BSPC, RCTL(KC_BSPC), KC_DELETE, LCTL(KC_DELETE), MEH(KC_K),
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// right thumb cluster
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS
|
2018-06-13 06:55:08 +02:00
|
|
|
),
|
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// key selection layer
|
2018-06-13 06:55:08 +02:00
|
|
|
[KEYSEL] = LAYOUT_ergodox(
|
2017-11-14 00:50:39 +01:00
|
|
|
// left hand
|
|
|
|
KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,MEH(KC_G), MEH(KC_H),MEH(KC_I), MEH(KC_J), MEH(KC_K), KC_TRNS,
|
|
|
|
KC_TRNS,MEH(KC_L), MEH(KC_M),MEH(KC_N), MEH(KC_O), MEH(KC_P),
|
|
|
|
KC_TRNS,MEH(KC_Q), MEH(KC_R),MEH(KC_S), MEH(KC_T), MEH(KC_U), KC_TRNS,
|
|
|
|
// bottom row
|
2020-06-22 10:45:47 +02:00
|
|
|
RESET,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
2017-11-14 00:50:39 +01:00
|
|
|
// thumb cluster
|
|
|
|
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, MEH(KC_Q),
|
|
|
|
RSFT(KC_PGUP), KC_TRNS, RSFT(KC_HOME), RSFT(KC_UP), RSFT(KC_END), RSFT(KC_PGUP), MEH(KC_R),
|
|
|
|
RSFT(RCTL(KC_LEFT)), RSFT(KC_LEFT), RSFT(KC_DOWN), RSFT(KC_RIGHT), RSFT(RCTL(KC_RIGHT)), MEH(KC_S),
|
|
|
|
RSFT(KC_PGDN), KC_TRNS, RCTL(KC_C), RCTL(KC_X), RCTL(KC_V), RSFT(KC_PGDN), MEH(KC_T),
|
|
|
|
// bottom row
|
|
|
|
KC_BSPC, RCTL(KC_BSPC), KC_DELETE, LCTL(KC_DELETE), MEH(KC_U),
|
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
2018-06-13 06:55:08 +02:00
|
|
|
),
|
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
// shell navigation layer
|
2018-06-13 06:55:08 +02:00
|
|
|
[SHELL_NAV] = LAYOUT_ergodox(
|
2017-09-16 04:00:26 +02:00
|
|
|
// left hand
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
2018-07-26 23:21:55 +02:00
|
|
|
KC_TRNS,KC_TRNS, SHELL_PGREP, SHELL_PLESS, SHELL_LESS, SHELL_HTCBOUNCE, SHELL_H3,
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_TRNS,SHELL_MKE, SHELL_CDPRE, SHELL_LSLTR, SHELL_LS, SHELL_LSLA,
|
2017-11-14 00:50:39 +01:00
|
|
|
KC_TRNS,SHELL_SCREEN_LIST, SHELL_SCREENRD, SHELL_SCREEN_NEW, SHELL_TAILF, SHELL_HTCSTATUS, SHELL_AMMCOLO,
|
2017-09-16 04:00:26 +02:00
|
|
|
// bottom row
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS,KC_TRNS,
|
2017-11-06 18:07:21 +01:00
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,
|
2017-09-16 04:00:26 +02:00
|
|
|
// right hand
|
2018-07-26 23:21:55 +02:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, SHELL_EXPAND_OE_TRANPATTERN,
|
|
|
|
RCTL(KC_L), RCTL(KC_W), KC_HOME, KC_UP, KC_END, KC_TRNS, SHELL_EXPAND_OE_LOGPATTERN,
|
2018-02-23 19:16:40 +01:00
|
|
|
LALT(KC_B), KC_LEFT, KC_DOWN, KC_RIGHT, LALT(KC_F), RCTL(KC_W),
|
2018-09-13 18:12:03 +02:00
|
|
|
RCTL(KC_C), RCTL(KC_U), LALT(KC_DOT), RCTL(KC_R), KC_BTN2, RCTL(KC_K), SHELL_DUMPTLOG,
|
2017-11-06 18:07:21 +01:00
|
|
|
// bottom row (match functionality of base layer)
|
2017-11-14 00:50:39 +01:00
|
|
|
KC_BSPC, RCTL(KC_W), KC_DELETE, LALT(KC_D), RCTL(KC_U),
|
2017-09-16 04:00:26 +02:00
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
),
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
|
2017-11-06 18:07:21 +01:00
|
|
|
// linux screen layer
|
2018-06-13 06:55:08 +02:00
|
|
|
[SHELL_SCREEN] = LAYOUT_ergodox(
|
2017-11-06 18:07:21 +01:00
|
|
|
// left hand
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
2017-11-06 18:07:21 +01:00
|
|
|
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,
|
|
|
|
// bottom row
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// thumb cluster
|
|
|
|
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,
|
2021-02-21 05:09:49 +01:00
|
|
|
KC_TRNS, SCREEN_NEW_TAB, SCREEN_7, SCREEN_8, SCREEN_9, SCREEN_RENAME, KC_TRNS,
|
|
|
|
SCREEN_TAB_LEFT, SCREEN_4, SCREEN_5, SCREEN_6, SCREEN_TAB_RIGHT, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, SCREEN_1, SCREEN_2, SCREEN_3, SCREEN_NUMBER, KC_TRNS,
|
2017-11-06 18:07:21 +01:00
|
|
|
// bottom row
|
2021-02-21 05:09:49 +01:00
|
|
|
SCREEN_0, KC_TRNS, KC_TRNS, KC_TRNS, SCREEN_DETACH,
|
2017-11-06 18:07:21 +01:00
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
),
|
|
|
|
|
2018-02-23 19:16:40 +01:00
|
|
|
// navigation within screen (for copy/paste)
|
2018-06-13 06:55:08 +02:00
|
|
|
[SCREEN_NAV] = LAYOUT_ergodox(
|
2018-02-23 19:16:40 +01:00
|
|
|
// left hand
|
|
|
|
// left hand
|
|
|
|
KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
2021-02-21 05:09:49 +01:00
|
|
|
KC_TRNS,KC_TRNS, SCREEN_READREG_3, SCREEN_READREG_2, SCREEN_READREG_1, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,KC_TRNS, SCREEN_PASTEREG_3, SCREEN_PASTEREG_2, SCREEN_PASTEREG_1, KC_TRNS,
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_TRNS,KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
// bottom row
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS,KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// right hand
|
2021-02-21 05:09:49 +01:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_0, KC_UP, KC_DLR, SCREEN_UP_JUMP, KC_TRNS,
|
|
|
|
KC_B, KC_LEFT, KC_DOWN, KC_RIGHT, KC_W, SCREEN_COPY_MODE,
|
|
|
|
KC_TRNS, KC_TRNS, S(KC_W), S(KC_Y), SCREEN_PASTE, SCREEN_DOWN_JUMP, MEH(KC_V),
|
2018-02-23 19:16:40 +01:00
|
|
|
// bottom row (match functionality of base layer)
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
),
|
|
|
|
|
|
|
|
|
2019-03-18 19:10:18 +01:00
|
|
|
// android studio shortcuts
|
|
|
|
[ANDROID_STUDIO] = LAYOUT_ergodox(
|
|
|
|
// left hand
|
|
|
|
KC_NO, 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,
|
|
|
|
// bottom row
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS,KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// right hand
|
2022-01-11 01:52:54 +01:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
AS_CMT_LINE, AS_COPYLINEDOWN, AS_FINDUSAGE, AS_GO_DECLARATION, AS_GO_IMPLEMENTATION, AS_LINE, AS_BRACKET,
|
|
|
|
AS_CLOSETAB, AS_TABLEFT, AS_TABRIGHT, AS_SYMBOL, AS_CLASS, AS_BACK,
|
|
|
|
AS_CMT_BLOCK, KC_TRNS, AS_BM_PREV, AS_BM_NEXT, KC_TRNS, AS_CLOSETOOLWINDOW, AS_BM_TOGGLE,
|
2019-03-18 19:10:18 +01:00
|
|
|
// bottom row
|
2022-01-11 01:52:54 +01:00
|
|
|
KC_TRNS, AS_BM_LIST, KC_TRNS, KC_TRNS, KC_TRNS,
|
2019-03-18 19:10:18 +01:00
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
2020-08-20 03:38:52 +02:00
|
|
|
KC_TRNS, AS_DEL_LINE, KC_TRNS
|
2019-03-18 19:10:18 +01:00
|
|
|
),
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2020-06-22 10:45:47 +02:00
|
|
|
// vscode shortcuts shortcuts
|
|
|
|
[VSCODE] = LAYOUT_ergodox(
|
|
|
|
// left hand
|
|
|
|
KC_NO, 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,
|
|
|
|
// bottom row
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
|
|
|
// thumb cluster
|
|
|
|
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,
|
|
|
|
VS_CMT_LINE, VS_COPYLINEDOWN, VS_REFERENCES, VS_DEFINITION, VS_IMPLEMENTATION, VS_LINE, VS_BRACKET,
|
|
|
|
VS_CLOSETAB, VS_TABLEFT, VS_TABRIGHT, VS_SYMBOLEDITOR, VS_FILE, VS_BACK,
|
2021-02-21 05:09:49 +01:00
|
|
|
VS_CMT_BLOCK, KC_TRNS, VS_BM_PREV, VS_BM_NEXT, VS_GROUP_1, VS_GROUP_2, VS_BM_TOGGLE,
|
2020-06-22 10:45:47 +02:00
|
|
|
// bottom row
|
2022-01-11 01:52:54 +01:00
|
|
|
VS_COMMANDS, VS_BM_LIST, VS_BM_LISTALL, VS_CLOSEPANEL, VS_BM_CLEARALL,
|
2020-06-22 10:45:47 +02:00
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, VS_DEL_LINE, KC_TRNS
|
|
|
|
),
|
|
|
|
|
2018-06-13 06:55:08 +02:00
|
|
|
[COMBINED] = LAYOUT_ergodox(
|
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// left hand
|
|
|
|
KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_TRNS,
|
|
|
|
KC_TRNS,KC_LPRN, KC_RPRN, KC_LBRACKET, KC_RBRACKET, KC_UNDS,
|
|
|
|
KC_TRNS,KC_COLN, KC_DQUO, KC_LCBR, KC_RCBR, KC_AMPR, KC_TRNS,
|
|
|
|
// bottom row
|
|
|
|
KC_TRNS,KC_TRNS, KC_TILD, KC_GRAVE, KC_CIRC,
|
|
|
|
// thumb cluster
|
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-14 00:50:39 +01:00
|
|
|
// right hand
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, MEH(KC_L),
|
|
|
|
KC_TRNS, KC_PLUS, KC_7, KC_8, KC_9, KC_ASTR, MEH(KC_M),
|
|
|
|
KC_MINS, KC_4, KC_5, KC_6, KC_SLSH, MEH(KC_N),
|
|
|
|
KC_TRNS, KC_EQUAL, KC_1, KC_2, KC_3, KC_QUES, MEH(KC_O),
|
2018-06-13 06:55:08 +02:00
|
|
|
// bottom row
|
2017-11-14 00:50:39 +01:00
|
|
|
KC_0, KC_DOT, KC_PIPE, KC_BSLS, MEH(KC_P),
|
|
|
|
// thumb cluster
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_TRNS,KC_TRNS,
|
|
|
|
KC_TRNS,
|
2018-03-16 21:21:00 +01:00
|
|
|
KC_TRNS,KC_TRNS,KC_TRNS),
|
2019-10-08 17:43:54 +02:00
|
|
|
|
|
|
|
|
2018-06-13 06:55:08 +02:00
|
|
|
[BROWSER_CONTROL] = LAYOUT_ergodox(
|
2018-02-23 19:16:40 +01:00
|
|
|
// left hand
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_BTN3, KC_MS_U, KC_BTN1, KC_BTN2, 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,
|
|
|
|
// bottom row
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2018-02-23 19:16:40 +01:00
|
|
|
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_UP, KC_PGUP, KC_PGDN, KC_MS_WH_UP, KC_TRNS, KC_TRNS,
|
2020-06-22 10:45:47 +02:00
|
|
|
KC_DOWN, RCTL(KC_PGUP), RCTL(KC_PGDN),KC_MS_WH_DOWN, LALT(KC_LEFT), KC_TRNS,
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_TRNS, KC_TRNS, RCTL(KC_1), RCTL(KC_9), KC_F6, KC_F5, KC_TRNS,
|
|
|
|
// bottom row
|
2020-06-22 10:45:47 +02:00
|
|
|
RCTL(LSFT(KC_TAB)), RCTL(KC_TAB), KC_TRNS, KC_TRNS, KC_TRNS,
|
2018-02-23 19:16:40 +01:00
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, RCTL(KC_W), RCTL(KC_T)
|
2018-06-13 06:55:08 +02:00
|
|
|
),
|
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
2021-02-21 05:09:49 +01:00
|
|
|
// rgblight_mode(1);
|
2017-09-16 04:00:26 +02:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
break;
|
|
|
|
}
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-11-06 18:07:21 +01:00
|
|
|
// shell macros
|
|
|
|
if(record->event.pressed) {
|
2017-11-14 00:50:39 +01:00
|
|
|
switch (keycode) {
|
|
|
|
case SHELL_LS:
|
|
|
|
SEND_STRING("ls\n");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case SHELL_LSLTR:
|
|
|
|
SEND_STRING("ls -ltr\n");
|
|
|
|
return true;
|
|
|
|
break;
|
2018-02-23 19:16:40 +01:00
|
|
|
case SHELL_LSLA:
|
|
|
|
SEND_STRING("ls -la\n");
|
|
|
|
return true;
|
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_CDPRE:
|
|
|
|
SEND_STRING("cd ..\n");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case SHELL_LESS:
|
|
|
|
SEND_STRING("less ");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case SHELL_PLESS:
|
|
|
|
SEND_STRING(" | less");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case SHELL_PGREP:
|
|
|
|
SEND_STRING(" | grep ");
|
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_TAILF:
|
|
|
|
SEND_STRING("tail -f ");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case SHELL_PWD:
|
|
|
|
SEND_STRING("echo `pwd`/");
|
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_H3:
|
|
|
|
SEND_STRING("h3\n");
|
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_AMMCOLO:
|
|
|
|
SEND_STRING("ammcolo\n");
|
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_SCREENRD:
|
|
|
|
SEND_STRING("screen -r -d ");
|
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_SCREEN_NEW:
|
|
|
|
SEND_STRING("screen -S ");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case SHELL_SCREEN_LIST:
|
|
|
|
SEND_STRING("screen -list\n");
|
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_MKE:
|
2018-07-26 23:21:55 +02:00
|
|
|
SEND_STRING("mki -j8\n");
|
2017-11-14 00:50:39 +01:00
|
|
|
return true;
|
2018-06-13 06:55:08 +02:00
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_HTCSTATUS:
|
|
|
|
SEND_STRING("htcStatus -j ");
|
|
|
|
return true;
|
2019-10-08 17:43:54 +02:00
|
|
|
break;
|
2018-07-26 23:21:55 +02:00
|
|
|
case SHELL_HTCBOUNCE:
|
|
|
|
SEND_STRING("htcBounce -j ");
|
|
|
|
return true;
|
2019-10-08 17:43:54 +02:00
|
|
|
break;
|
2021-02-21 05:09:49 +01:00
|
|
|
case SHELL_EXPAND_OE_LOGPATTERN:
|
|
|
|
SEND_STRING(SS_TAP(X_LEFT)"*CQW_HKEX"SS_TAP(X_END)"*.log"SS_LCTRL("x")SS_LSFT("8"));
|
2019-10-08 17:43:54 +02:00
|
|
|
break;
|
2021-02-21 05:09:49 +01:00
|
|
|
case SHELL_EXPAND_OE_TRANPATTERN:
|
|
|
|
SEND_STRING(SS_TAP(X_LEFT)"*CQW_HKEX"SS_TAP(X_END)"*.tran"SS_LCTRL("x")SS_LSFT("8"));
|
|
|
|
break;
|
|
|
|
case SHELL_DUMPTLOG:
|
|
|
|
SEND_STRING(" | dumptlog - ");
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case WINDOWS10_WORKSPACE_LEFT:
|
|
|
|
SEND_STRING(SS_LGUI(SS_LCTRL(SS_TAP(X_LEFT))));
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case WINDOWS10_WORKSPACE_RIGHT:
|
|
|
|
SEND_STRING(SS_LGUI(SS_LCTRL(SS_TAP(X_RIGHT))));
|
|
|
|
break;
|
|
|
|
case WINDOWS10_TASK_VIEW:
|
|
|
|
SEND_STRING(SS_LGUI(SS_TAP(X_TAB)));
|
|
|
|
break;
|
|
|
|
// linux screen shortcuts
|
|
|
|
case SCREEN_TAB_LEFT:
|
|
|
|
SEND_STRING(SS_LCTL("a") "p");
|
|
|
|
break;
|
|
|
|
case SCREEN_TAB_RIGHT:
|
|
|
|
SEND_STRING(SS_LCTL("a") "n");
|
|
|
|
break;
|
|
|
|
case SCREEN_NEW_TAB:
|
|
|
|
SEND_STRING(SS_LCTL("a") "c");
|
|
|
|
break;
|
|
|
|
case SCREEN_DETACH:
|
|
|
|
SEND_STRING(SS_LCTL("a") "d");
|
|
|
|
break;
|
|
|
|
case SCREEN_RENAME:
|
|
|
|
SEND_STRING(SS_LCTL("a") SS_LSFT("a"));
|
|
|
|
break;
|
|
|
|
case SCREEN_NUMBER:
|
|
|
|
SEND_STRING(SS_LCTL("a") ":number ");
|
|
|
|
break;
|
|
|
|
case SCREEN_0:
|
|
|
|
SEND_STRING(SS_LCTL("a") "0");
|
|
|
|
break;
|
|
|
|
case SCREEN_1:
|
|
|
|
SEND_STRING(SS_LCTL("a") "1");
|
2019-10-08 17:43:54 +02:00
|
|
|
break;
|
2021-02-21 05:09:49 +01:00
|
|
|
case SCREEN_2:
|
|
|
|
SEND_STRING(SS_LCTL("a") "2");
|
2019-10-08 17:43:54 +02:00
|
|
|
break;
|
2021-02-21 05:09:49 +01:00
|
|
|
case SCREEN_3:
|
|
|
|
SEND_STRING(SS_LCTL("a") "3");
|
|
|
|
break;
|
|
|
|
case SCREEN_4:
|
|
|
|
SEND_STRING(SS_LCTL("a") "4");
|
|
|
|
break;
|
|
|
|
case SCREEN_5:
|
|
|
|
SEND_STRING(SS_LCTL("a") "5");
|
|
|
|
break;
|
|
|
|
case SCREEN_6:
|
|
|
|
SEND_STRING(SS_LCTL("a") "6");
|
|
|
|
break;
|
|
|
|
case SCREEN_7:
|
|
|
|
SEND_STRING(SS_LCTL("a") "7");
|
|
|
|
break;
|
|
|
|
case SCREEN_8:
|
|
|
|
SEND_STRING(SS_LCTL("a") "8");
|
|
|
|
break;
|
|
|
|
case SCREEN_9:
|
|
|
|
SEND_STRING(SS_LCTL("a") "9");
|
|
|
|
break;
|
|
|
|
case SCREEN_COPY_MODE:
|
|
|
|
SEND_STRING(SS_LCTL("a") "[");
|
|
|
|
break;
|
|
|
|
case SCREEN_PASTE:
|
|
|
|
SEND_STRING(SS_LCTL("a") "]");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SCREEN_UP_JUMP:
|
|
|
|
tap_code(KC_5);
|
|
|
|
tap_code(KC_UP);
|
|
|
|
break;
|
|
|
|
case SCREEN_DOWN_JUMP:
|
|
|
|
tap_code(KC_5);
|
|
|
|
tap_code(KC_DOWN);
|
2020-06-22 10:45:47 +02:00
|
|
|
break;
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2021-02-21 05:09:49 +01:00
|
|
|
case SCREEN_READREG_1:
|
|
|
|
tap_code16(C(KC_A));
|
|
|
|
tap_code16(S(KC_SCOLON));
|
|
|
|
SEND_STRING("readreg 1\n");
|
|
|
|
break;
|
|
|
|
case SCREEN_READREG_2:
|
|
|
|
tap_code16(C(KC_A));
|
|
|
|
tap_code16(S(KC_SCOLON));
|
|
|
|
SEND_STRING("readreg 2\n");
|
|
|
|
break;
|
|
|
|
case SCREEN_READREG_3:
|
|
|
|
tap_code16(C(KC_A));
|
|
|
|
tap_code16(S(KC_SCOLON));
|
|
|
|
SEND_STRING("readreg 3\n");
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SCREEN_PASTEREG_1:
|
|
|
|
tap_code16(C(KC_A));
|
|
|
|
tap_code16(S(KC_SCOLON));
|
|
|
|
SEND_STRING("paste 1\n");
|
|
|
|
break;
|
|
|
|
case SCREEN_PASTEREG_2:
|
|
|
|
tap_code16(C(KC_A));
|
|
|
|
tap_code16(S(KC_SCOLON));
|
|
|
|
SEND_STRING("paste 2\n");
|
|
|
|
break;
|
|
|
|
case SCREEN_PASTEREG_3:
|
|
|
|
tap_code16(C(KC_A));
|
|
|
|
tap_code16(S(KC_SCOLON));
|
|
|
|
SEND_STRING("paste 3\n");
|
|
|
|
break;
|
2017-11-14 00:50:39 +01:00
|
|
|
}
|
2017-11-06 18:07:21 +01:00
|
|
|
}
|
2018-06-13 06:55:08 +02:00
|
|
|
|
2017-09-16 04:00:26 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void led_set_user(uint8_t usb_led) {
|
|
|
|
if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
} else {
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void matrix_scan_user(void) {
|
|
|
|
|
|
|
|
uint8_t layer = biton32(layer_state);
|
|
|
|
|
|
|
|
ergodox_board_led_off();
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
switch (layer) {
|
2017-11-14 00:50:39 +01:00
|
|
|
case COMBINED:
|
2018-06-13 06:55:08 +02:00
|
|
|
ergodox_right_led_2_on();
|
2017-11-14 00:50:39 +01:00
|
|
|
break;
|
2018-06-13 06:55:08 +02:00
|
|
|
case SHELL_NAV:
|
2017-11-14 00:50:39 +01:00
|
|
|
case SHELL_SCREEN:
|
|
|
|
case KEYNAV:
|
|
|
|
case KEYSEL:
|
2018-02-23 19:16:40 +01:00
|
|
|
case SCREEN_NAV:
|
2020-06-22 10:45:47 +02:00
|
|
|
case VSCODE:
|
2017-11-14 00:50:39 +01:00
|
|
|
ergodox_right_led_3_on();
|
|
|
|
break;
|
2018-07-26 23:21:55 +02:00
|
|
|
case BROWSER_CONTROL:
|
2017-09-16 04:00:26 +02:00
|
|
|
ergodox_right_led_2_on();
|
|
|
|
ergodox_right_led_3_on();
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|