Updates to gordon keymaps (#3082)
Added rules.mk for the infinity * Moved tap dance enums to gordon.h * Moved tap dance aliases to gordon.h Moved TD to user space * Added config file with preventing mods sticking * Added a few keys to keymap
This commit is contained in:
parent
805b42275b
commit
a75bd221f2
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
Copyright 2018 Daniel Gordon <Dgordon8765@gmail.com>
|
||||||
|
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define PREVENT_STUCK_MODIFIERS
|
||||||
|
|
||||||
|
#undef IGNORE_MOD_TAP_INTERRUPT
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT
|
||||||
|
|
||||||
|
#undef PERMISSIVE_HOLD
|
||||||
|
// #define PERMISSIVE_HOLD
|
||||||
|
|
||||||
|
#define ONESHOT_TAP_TOGGLE 2
|
||||||
|
|
||||||
|
#undef TAPPING_TERM
|
||||||
|
#define TAPPING_TERM 200
|
||||||
|
|
||||||
|
#define FORCE_NKRO
|
|
@ -10,16 +10,6 @@
|
||||||
#include "keymap_nordic.h"
|
#include "keymap_nordic.h"
|
||||||
|
|
||||||
|
|
||||||
#define TLSLSH M(TIL_SLASH)
|
|
||||||
#define F1_F13 TD(F1F13)
|
|
||||||
#define F2_F14 TD(F2F14)
|
|
||||||
#define F5_F15 TD(F5F15)
|
|
||||||
#define F4_ALTF4 TD(ALTF4)
|
|
||||||
#define END_ESC TD(ENDESC)
|
|
||||||
#define SHF6_AF7 TD(F6F7)
|
|
||||||
#define F12_RUN TD(F12ETAPS)
|
|
||||||
#define COMMA_TD TD(COMMA)
|
|
||||||
|
|
||||||
enum custom_keycodes {
|
enum custom_keycodes {
|
||||||
PLACEHOLDER = SAFE_RANGE, // can always be here
|
PLACEHOLDER = SAFE_RANGE, // can always be here
|
||||||
EPRM,
|
EPRM,
|
||||||
|
@ -27,59 +17,24 @@ enum custom_keycodes {
|
||||||
RGB_SLD,
|
RGB_SLD,
|
||||||
};
|
};
|
||||||
|
|
||||||
//Tap dance enums
|
|
||||||
enum {
|
|
||||||
F12TAP = 0,
|
|
||||||
F12ETAPS,
|
|
||||||
CALCCOMP,
|
|
||||||
REFRESH, //send R, or Control+R if double tapped.
|
|
||||||
ENDESC,
|
|
||||||
XESC, //'quad function'. x, control, escape, alt
|
|
||||||
ALY2, //'quad function': a, Hyper, ctrl+a, layer 2
|
|
||||||
PRLOCK,
|
|
||||||
F6F7, // Shift F6 or Alt F7
|
|
||||||
TABCOMBO,
|
|
||||||
FCTRL,
|
|
||||||
F3D,
|
|
||||||
ALTF4,
|
|
||||||
COMMA,
|
|
||||||
AT,
|
|
||||||
HTAB,
|
|
||||||
F1F13,
|
|
||||||
F2F14,
|
|
||||||
F5F15
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Custom tapping terms for each key.
|
// Custom tapping terms for each key.
|
||||||
// Requires changes to action_taping.c
|
// Requires changes to action_taping.c
|
||||||
/* uint16_t get_tapping_term(keyevent_t* event) {
|
// uint16_t get_tapping_term(keyevent_t* event) {
|
||||||
uint16_t keycode = keymap_key_to_keycode(layer_switch_get_layer(event->key), event->key);
|
// uint16_t keycode = keymap_key_to_keycode(layer_switch_get_layer(event->key), event->key);
|
||||||
if (keycode == LT(3,KC_E) ) {
|
// if (keycode == NAV_E ) {
|
||||||
return TAPPING_TERM + 50;
|
// return TAPPING_TERM + 50;
|
||||||
}
|
// }
|
||||||
return TAPPING_TERM;
|
// return TAPPING_TERM;
|
||||||
} */
|
// }
|
||||||
|
|
||||||
|
|
||||||
// Tap Dance Definitions
|
// _XXXXXX_ is a symbol that means, "DO NOT ASSIGN THIS KEY TO ANTYING", because the key
|
||||||
qk_tap_dance_action_t tap_dance_actions[] = {
|
// underneath this layer is the key that sends you to/from this layer.
|
||||||
// simple tap dance
|
// Meaning, if you were to put something here - then you will be stuck in this layer.
|
||||||
[F12ETAPS] = ACTION_TAP_DANCE_DOUBLE(KC_F12,LSFT(LCTL(KC_F10))),
|
// It is simply a visual reminder not to use that key for this layer.
|
||||||
[REFRESH] = ACTION_TAP_DANCE_DOUBLE(KC_R,LCTL(KC_R)),
|
// Example: On the numpad layer, under the letter `D` is `_XXXXXXX_`, because pressing and holding
|
||||||
[ENDESC] = ACTION_TAP_DANCE_DOUBLE(KC_END, KC_ESC),
|
// `D` sends you to the numpad layer
|
||||||
[CALCCOMP] = ACTION_TAP_DANCE_DOUBLE(KC_CALCULATOR, KC_MY_COMPUTER),
|
|
||||||
[ALTF4] = ACTION_TAP_DANCE_DOUBLE(KC_F4,LALT(KC_F4)),
|
|
||||||
[F6F7] = ACTION_TAP_DANCE_DOUBLE(LSFT(KC_F6), LALT(KC_F7)),
|
|
||||||
[F1F13] = ACTION_TAP_DANCE_DOUBLE(KC_F1, KC_F13),
|
|
||||||
[F2F14] = ACTION_TAP_DANCE_DOUBLE(KC_F2, KC_F14),
|
|
||||||
[F5F15] = ACTION_TAP_DANCE_DOUBLE(KC_F5, KC_F15),
|
|
||||||
[TABCOMBO] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tab_finished, tab_reset),
|
|
||||||
[F3D] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, bt_finished, bt_reset),
|
|
||||||
[COMMA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, comma_finished, comma_reset),
|
|
||||||
[HTAB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL,h_finished, h_reset)
|
|
||||||
};
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
@ -87,54 +42,54 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
//**************************FIRST LAYER - LAYER ZERO **************************************
|
//**************************FIRST LAYER - LAYER ZERO **************************************
|
||||||
[_QWERTY] = KEYMAP(
|
[_QWERTY] = KEYMAP(
|
||||||
|
|
||||||
SHF6_AF7, F1_F13, F2_F14, TD(F3D), F4_ALTF4, F5_F15, KC_F11,
|
SHF6_AF7, F1_F13 , F2_F14, TD(F3D), F4_ALTF4, F5_F15, KC_F11,
|
||||||
________, KC_Q, CTR_SH_W, NAV_E, CTR_AL_R, KC_T, PRINTSCR,
|
SPRK_TCK , Q_ESC , CTR_SH_W, NAV_E, ALT_SH_R, KC_T, PRINTSCR,
|
||||||
KC_TAB, KC_A, MEH_S, NUMPAD_D, CTRL_F, WIN_G,
|
KC_TAB , KC_A , MEH_S, NUMPAD_D, CTRL_F, WIN_G,
|
||||||
ALT_SHFT, CTRL_Z, HYPER_X, MOUSE_C, ALT_V, KC_B, TT(_MOUSE),
|
OSL(_ONESHOT), CTRL_Z , HYPER_X, MOUSE_C, ALT_V, KC_B, OSL(_MOUSE),
|
||||||
KC_MINUS, KC_GRAVE, KC_DELETE, KC_LEFT, KC_RIGHT,
|
KC_MINUS, KC_GRAVE, KC_DELETE, KC_LEFT, KC_RIGHT,
|
||||||
|
|
||||||
KC_INSERT, KC_DELETE,
|
LSFT(KC_INSERT), TT(_QWERTY_KIDS),
|
||||||
ALT_HOME,
|
________ ,
|
||||||
KC_LSHIFT, SYMB_BSP, END_ESC,
|
KC_LSHIFT, SYMB_BSP, KC_INSERT ,
|
||||||
|
|
||||||
F12_RUN, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, TD(CALCCOMP),
|
F12_RUN, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, TD(CALCCOMP),
|
||||||
________, KC_Y, KC_U, KC_I, KC_O, KC_P, ________,
|
CALTDEL , KC_Y, KC_U, KC_I, KC_O, KC_P, MODRESET,
|
||||||
WIN_H, CTRL_J, KC_K, MEH_L, COL_MOUS, ________,
|
WIN_H, CTRL_J, APP_SW_K, MEH_L, COL_MOUS, END_HOME,
|
||||||
KC_LEAD, KC_N, ALT_M, COMMA_TD, HYPE_DOT, KC_SLASH, TD(TABCOMBO),
|
OSL(_ONESHOT), KC_N, ALT_M, COMMA_TD, HYPE_DOT, KC_SLASH, ID_MAN_IP,
|
||||||
KC_UP, KC_DOWN, KC_ESC, KC_TILD, KC_UNDS,
|
KC_UP, KC_DOWN,KC_DELETE, KC_TILD, KC_UNDS,
|
||||||
|
|
||||||
KC_ESCAPE, KC_DELETE,
|
TT(_STREET_FIGHTER), ________,
|
||||||
ALT_T(KC_PGUP),
|
KC_PGUP,
|
||||||
RCTL_T(KC_PGDOWN), LT(_NAV,KC_ENTER), SPAC_SYM),
|
KC_PGDOWN, LT(_NAV,KC_ENTER), SPAC_TXT),
|
||||||
|
|
||||||
|
|
||||||
//**************************SYMBOLS LAYER**************************
|
//**************************SYMBOLS LAYER**************************
|
||||||
[_SYMBOLS] = KEYMAP(
|
[_SYMBOLS] = KEYMAP(
|
||||||
________, ________, ________, ________, ________, ________, ________,
|
________, ________, ________, ________, ________, ________, ________,
|
||||||
________, TLSLSH, KC_AT, KC_LCBR, KC_RCBR, KC_CIRC, ________,
|
________, DEREF , KC_AT, KC_LCBR, KC_RCBR, KC_CIRC, ________,
|
||||||
________, KC_EXLM, KC_PIPE, KC_LPRN, KC_RPRN, M(DEREF),
|
________, KC_EXLM, KC_HASH, KC_LPRN, KC_RPRN, ________,
|
||||||
________,KC_DOLLAR, KC_PERC, LSQUIGLY, RSQUIGLY, ________, ________,
|
________,KC_DOLLAR, KC_PERC, LSQUIGLY, RSQUIGLY, ________, ________,
|
||||||
________, M(TICK3), ________, ________, ________,
|
________,TICK3 , ________, ________, ________,
|
||||||
|
|
||||||
________,________,
|
________,________,
|
||||||
________,
|
________,
|
||||||
________,________,________,
|
________,_XXXXXX_,________,
|
||||||
|
|
||||||
|
|
||||||
________, ________, ________, ________, ________, ________, NUMLOCK,
|
________, ________, ________, ________, ________, ________, NUMLOCK,
|
||||||
________, TLSLSH, KC_PIPE, KC_PLUS, KC_AMPR, ________, CAPLOCK,
|
________,TIL_SLASH, KC_PIPE, KC_PLUS, KC_AMPR, ________, CAPLOCK,
|
||||||
M(EQRIGHT), KC_DQUO, KC_EQUAL, KC_QUOTE,KC_SCOLON, ________,
|
EQRIGHT, KC_DQUO, KC_EQUAL, KC_QUOTE,KC_SCOLON, ________,
|
||||||
________, KC_PIPE, BK_SLASH, ASTERSK, KC_DOT, KC_SLASH, ________,
|
________, KC_M, BK_SLASH, ASTERSK, KC_DOT, KC_SLASH, ________,
|
||||||
________,________,________,M(TILD3),________,
|
________,________ ,________,TILD3,________,
|
||||||
________,________,
|
________,________,
|
||||||
________,
|
________,
|
||||||
________,________,________),
|
________,________,_XXXXXX_),
|
||||||
|
|
||||||
//**************************MOUSE MOVEMENT LAYER**************************
|
//**************************MOUSE MOVEMENT LAYER**************************
|
||||||
[_MOUSE] = KEYMAP(RESET,________,________,________,________,________,________,
|
[_MOUSE] = KEYMAP(UP_ENTER_RESET,________,________,________,________,________,MODRESET,
|
||||||
RESET,________,________,KC_MS_UP,________,KC_MS_WH_UP,CALTDEL,
|
RESET,KC_SECRET_5,________,KC_MS_UP,KC_SECRET_4,KC_MS_WH_UP,________,
|
||||||
________,________,KC_MS_LEFT,KC_MS_DOWN,KC_MS_RIGHT,KC_MS_WH_DOWN,
|
________,________,KC_MS_LEFT,KC_MS_DOWN,KC_MS_RIGHT,KC_MS_WH_DOWN,
|
||||||
KC_SECRET_1,________,HYPR(KC_F13),________,HYPR(KC_F14),KC_SECRET_2,________,
|
KC_SECRET_5,KC_SECRET_4,KC_SECRET_3,_XXXXXX_,KC_SECRET_2,KC_SECRET_1,_XXXXXX_,
|
||||||
________,________,HYPR(KC_F15),KC_MS_WH_LEFT,KC_MS_WH_RIGHT,
|
________,________,HYPR(KC_F15),KC_MS_WH_LEFT,KC_MS_WH_RIGHT,
|
||||||
|
|
||||||
________,________,
|
________,________,
|
||||||
|
@ -143,13 +98,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
|
||||||
________,________,________,________,________,________,________,
|
________,________,________,________,________,________,________,
|
||||||
KC_MS_WH_UP,________,________,KC_UP,________,________,________,
|
________,________,________,KC_UP,________,KC_MEDIA_PLAY_PAUSE,________,
|
||||||
________,KC_LEFT,KC_DOWN,KC_RIGHT,________,________,
|
________,KC_LEFT,KC_DOWN,KC_RIGHT,_XXXXXX_,________,
|
||||||
KC_MS_WH_DOWN,________,KC_PGUP,KC_PGDOWN,KC_MEDIA_NEXT_TRACK,________,________,
|
________,KC_MEDIA_NEXT_TRACK,KC_AUDIO_VOL_UP,KC_AUDIO_VOL_DOWN,KC_MUTE,________,________,
|
||||||
KC_AUDIO_VOL_UP,KC_AUDIO_VOL_DOWN,KC_AUDIO_MUTE,KC_MEDIA_PLAY_PAUSE,________,
|
KC_MS_WH_UP,KC_MS_WH_DOWN,________,________,________,
|
||||||
________,________,
|
________,________,
|
||||||
________,
|
________,
|
||||||
________,________,KC_WWW_BACK),
|
________,KC_WWW_BACK,KC_WWW_FORWARD),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -157,9 +112,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
//**************************WINDOWS NAVIGATION LAYER**************************
|
//**************************WINDOWS NAVIGATION LAYER**************************
|
||||||
|
|
||||||
[_NAV] = KEYMAP(________,________,________,________,________,________,________,
|
[_NAV] = KEYMAP(________,________,________,________,________,________,________,
|
||||||
________,________,SNAPLEFT,________,SNAPRGHT,LALT(KC_LEFT),________,
|
________,________,SNAPLEFT,_XXXXXX_,SNAPRGHT,________,________,
|
||||||
________,LCTL(KC_W),PREVTAB,LGUI(KC_D),NEXTTAB,________,
|
________,KC_WWW_BACK,PREVTAB,________,NEXTTAB,SNAPUP,
|
||||||
________,________,WORKLEFT,________,WORKRIGHT,________,________,
|
________,________,WORKLEFT,________,WORKRIGHT,SNAPDOWN,________,
|
||||||
________,________,________,________,________,
|
________,________,________,________,________,
|
||||||
|
|
||||||
________,________,
|
________,________,
|
||||||
|
@ -180,6 +135,178 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
//****************************NUMPAD LAYER****************************
|
//****************************NUMPAD LAYER****************************
|
||||||
[_NUMPAD] = KEYMAP(________,________,________,________,________,________,________,
|
[_NUMPAD] = KEYMAP(________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,KC_DOT ,KC_SPACE,_XXXXXX_, KC_ESC ,________,
|
||||||
|
________,DBMS_OUT,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
KC_PLUS,KC_MINUS,________,
|
||||||
|
|
||||||
|
BL_TOGG ,BL_STEP ,________,________,________,________,________,
|
||||||
|
________,________,KC_7 ,KC_8 ,KC_9 ,________,________,
|
||||||
|
________,KC_4 ,KC_5 ,KC_6 ,________,________,
|
||||||
|
________,KC_DOT, KC_1 ,KC_2 ,KC_3 ,________,________,
|
||||||
|
KC_0 ,KC_DOT , KC_DOT ,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,KC_0),
|
||||||
|
|
||||||
|
//****************************APP SWITCH LAYER****************************
|
||||||
|
[_APPSWITCH] = KEYMAP(________,________,________,________,________,________,________,
|
||||||
|
________,________ , ________ , ________ ,________ ,________,________,
|
||||||
|
________,APP_5,APP_6,APP_7,APP_8,________,
|
||||||
|
________,DBMS_OUT,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
KC_PLUS,________,________,
|
||||||
|
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,APP_3 ,________,APP_4 ,________,________,
|
||||||
|
________,APP_1 ,_XXXXXX_,APP_2 ,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________),
|
||||||
|
|
||||||
|
|
||||||
|
[_ONESHOT] = KEYMAP( UP_ENTER_RESET , ________, ________, ________, ________, ________, ________,
|
||||||
|
________, ________, ________, KC_UP , ________, ________, ________,
|
||||||
|
________, ________, KC_LEFT , KC_DOWN , KC_RIGHT, ________,
|
||||||
|
MAGIC_TOGGLE_NKRO, ________, ________, ________, ________, ________, ________,
|
||||||
|
________, ________, ________, ________, ________,
|
||||||
|
|
||||||
|
________, ________,
|
||||||
|
________,
|
||||||
|
________, ________, ________,
|
||||||
|
|
||||||
|
________, ________, ________, ________, ________, ________, ________,
|
||||||
|
________, ________, KC_7, KC_8, KC_9, KC_PLUS, ________,
|
||||||
|
________, KC_4, KC_5, KC_6, KC_EQUAL, ________,
|
||||||
|
________, ________, KC_1, KC_2, KC_3, KC_ASTR, ________,
|
||||||
|
________, ________, KC_0, ________, ________,
|
||||||
|
|
||||||
|
________, ________,
|
||||||
|
________,
|
||||||
|
________, ________, ________),
|
||||||
|
//****************************TEXT/INTELLIJ NAVIGATION LAYER****************************
|
||||||
|
[_TEXTNAV] = KEYMAP(________,________,________,________,________,________,________,
|
||||||
|
________,MEH(KC_Q),LSFT(KC_ESCAPE),MEH(KC_D),MEH(KC_2),LALT(LSFT(KC_UP)),________,
|
||||||
|
________,________,LCTL(KC_LEFT),LCTL(KC_B),LCTL(KC_RIGHT),LALT(LSFT(KC_DOWN)),
|
||||||
|
________,________,________,LCTL(LSFT(KC_COMMA)),MEH(KC_DOT),LALT(KC_MS_WH_UP),________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,________,________,________,________,
|
||||||
|
|
||||||
|
LALT(LSFT(KC_F9)),________,________,________,________,________,________,________,MEH(KC_5),LALT(LSFT(KC_Z)),
|
||||||
|
________,LALT(KC_Z),________,________,________,LCTL(LSFT(KC_LEFT)),LALT(LCTL(KC_S)),LCTL(LSFT(KC_RIGHT)),
|
||||||
|
LCTL(LSFT(KC_COMMA)),________,________,________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,________,________,_XXXXXX_),
|
||||||
|
[_QWERTY_KIDS] = KEYMAP(
|
||||||
|
|
||||||
|
KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO ,
|
||||||
|
KC_NO , KC_Q , KC_W, KC_E, KC_R, KC_T, KC_NO ,
|
||||||
|
KC_NO , KC_A , KC_S, KC_D, KC_F, KC_G ,
|
||||||
|
KC_NO , KC_Z , KC_X, KC_C, KC_V, KC_B, KC_NO ,
|
||||||
|
KC_MINUS, KC_GRAVE, KC_DELETE, KC_LEFT, KC_RIGHT,
|
||||||
|
|
||||||
|
KC_NO , TT(_QWERTY_KIDS) ,
|
||||||
|
KC_NO ,
|
||||||
|
KC_LSHIFT, KC_BSPACE, KC_NO ,
|
||||||
|
|
||||||
|
KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO ,
|
||||||
|
KC_NO , KC_Y, KC_U, KC_I, KC_O, KC_P, KC_NO ,
|
||||||
|
KC_H, KC_J, KC_K, KC_L, KC_SCOLON , KC_NO,
|
||||||
|
KC_NO , KC_N, KC_M, KC_COMMA , KC_DOT , KC_SLASH, KC_NO ,
|
||||||
|
KC_UP, KC_DOWN, KC_DELETE, KC_TILD, KC_UNDS,
|
||||||
|
|
||||||
|
KC_NO , KC_NO ,
|
||||||
|
KC_NO,
|
||||||
|
KC_NO, KC_ENTER, KC_SPACE),
|
||||||
|
|
||||||
|
[_STREET_FIGHTER] = KEYMAP(
|
||||||
|
|
||||||
|
KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO ,
|
||||||
|
KC_NO , KC_NO , DIE_1000X_LEFT, KC_UP, DIE_1000X_RIGHT, KC_NO, KC_NO ,
|
||||||
|
KC_NO , KC_NO , KC_LEFT, KC_DOWN, KC_RIGHT, 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_NO , KC_NO , KC_NO , KC_NO , KC_NO , KC_NO ,
|
||||||
|
KC_NO , KC_NO, KC_G, KC_H, KC_J, KC_NO, KC_NO ,
|
||||||
|
KC_NO, KC_B, KC_N, KC_M, KC_K , 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,
|
||||||
|
|
||||||
|
TT(_STREET_FIGHTER) , ________ ,
|
||||||
|
________,
|
||||||
|
________, ________, ________),
|
||||||
|
|
||||||
|
|
||||||
|
//************************Windows navigation to directories*************************
|
||||||
|
[_DIRNAV] = KEYMAP(
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,KC_A,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________,
|
||||||
|
|
||||||
|
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,_______,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________),
|
||||||
|
|
||||||
|
|
||||||
|
[_TEXT_MACROS] = KEYMAP(
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,KC_A,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________,
|
||||||
|
|
||||||
|
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,_______,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________)
|
||||||
|
|
||||||
|
|
||||||
|
/* FOR FORMATTING FUTURE LAYERS
|
||||||
|
NO KEY CODES SHOULD BE MORE THAN 8 CHARACTERS
|
||||||
|
GOES LEFT HAND THEN RIGHT HAND
|
||||||
|
[_DIRNAV] = KEYMAP(
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
________,________,________,________,________,________,________,
|
________,________,________,________,________,________,________,
|
||||||
________,________,________,________,________,________,
|
________,________,________,________,________,________,
|
||||||
________,________,________,________,________,________,________,
|
________,________,________,________,________,________,________,
|
||||||
|
@ -189,87 +316,27 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
________,
|
________,
|
||||||
________,________,________,
|
________,________,________,
|
||||||
|
|
||||||
BL_TOGG ,BL_STEP ,________,________,________,________,________,
|
|
||||||
________,________,KC_7 ,KC_8 ,KC_9 ,________,________,
|
________,________,________,________,________,________,________,
|
||||||
________,KC_4 ,KC_5 ,KC_6 ,________,________,
|
________,________,________,________,________,________,________,
|
||||||
________,________,KC_1 ,KC_2 ,KC_3 ,________,________,
|
________,________,________,________,________,________,
|
||||||
KC_0 ,KC_0 , KC_DOT ,________,________,
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
|
||||||
________,________,
|
________,________,
|
||||||
________,
|
________,
|
||||||
________,________,KC_0),
|
________,________,________), */
|
||||||
//****************************TEXT/INTELLIJ NAVIGATION LAYER****************************
|
|
||||||
[_TEXTNAV] = KEYMAP(________,________,________,________,________,________,________,
|
|
||||||
________,MEH(KC_Q),LSFT(KC_ESCAPE),MEH(KC_D),MEH(KC_2),LALT(LSFT(KC_UP)),________,
|
|
||||||
________,LALT(KC_F7),LCTL(KC_LEFT),LCTL(KC_B),LCTL(KC_RIGHT),LALT(LSFT(KC_DOWN)),
|
|
||||||
________,________,________,LCTL(LSFT(KC_COMMA)),MEH(KC_DOT),LALT(KC_MS_WH_UP),________,________,________,________,________,________,________,________,________,________,LCTL(KC_DELETE),________,LALT(LSFT(KC_F9)),________,________,________,________,________,________,________,MEH(KC_5),LALT(LSFT(KC_Z)),________,LALT(KC_Z),________,________,________,LCTL(LSFT(KC_LEFT)),LALT(LCTL(KC_S)),LCTL(LSFT(KC_RIGHT)),LCTL(LSFT(KC_COMMA)),________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const uint16_t PROGMEM fn_actions[] = {
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
[1] = ACTION_LAYER_TAP_TOGGLE(1)
|
[1] = ACTION_LAYER_TAP_TOGGLE(1)
|
||||||
};
|
};
|
||||||
|
|
||||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
||||||
{
|
|
||||||
switch(id) {
|
|
||||||
case INFOQM: {
|
|
||||||
if (record->event.pressed) {
|
|
||||||
SEND_STRING (QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case TIL_SLASH: {
|
|
||||||
if (record->event.pressed) {
|
|
||||||
SEND_STRING ("~/.");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case DEREF: {
|
|
||||||
if (record->event.pressed) {
|
|
||||||
SEND_STRING ("->");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case EQRIGHT: {
|
|
||||||
if (record->event.pressed) {
|
|
||||||
SEND_STRING ("=>");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case TICK3: {
|
|
||||||
if (record->event.pressed) {
|
|
||||||
SEND_STRING ("```");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case TILD3: {
|
|
||||||
if (record->event.pressed) {
|
|
||||||
SEND_STRING ("~~~");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case ALTTAB_START: {
|
|
||||||
register_code(KC_LALT);
|
|
||||||
layer_on(8);
|
|
||||||
}
|
|
||||||
|
|
||||||
case ALTTAB_END: {
|
|
||||||
unregister_code(KC_LALT);
|
|
||||||
layer_off(8);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
return MACRO_NONE;
|
|
||||||
};
|
|
||||||
|
|
||||||
void matrix_scan_user(void) {
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
uint8_t layer = biton32(layer_state);
|
uint8_t layer = biton32(layer_state);
|
||||||
|
@ -281,7 +348,10 @@ void matrix_scan_user(void) {
|
||||||
ergodox_right_led_1_off();
|
ergodox_right_led_1_off();
|
||||||
ergodox_right_led_2_off();
|
ergodox_right_led_2_off();
|
||||||
ergodox_right_led_3_off();
|
ergodox_right_led_3_off();
|
||||||
switch (layer) {
|
// _delay_ms(45);
|
||||||
|
|
||||||
|
switch (layer)
|
||||||
|
{
|
||||||
case _SYMBOLS:
|
case _SYMBOLS:
|
||||||
ergodox_right_led_1_on();
|
ergodox_right_led_1_on();
|
||||||
break;
|
break;
|
||||||
|
@ -295,21 +365,34 @@ void matrix_scan_user(void) {
|
||||||
ergodox_right_led_1_on();
|
ergodox_right_led_1_on();
|
||||||
ergodox_right_led_2_on();
|
ergodox_right_led_2_on();
|
||||||
break;
|
break;
|
||||||
case 5:
|
case _MACROS:
|
||||||
ergodox_right_led_1_on();
|
//layer unused right now
|
||||||
ergodox_right_led_3_on();
|
|
||||||
break;
|
break;
|
||||||
case 6:
|
case _FUNCTION:
|
||||||
|
//layer unused right nowex
|
||||||
|
break;
|
||||||
|
case _APPSWITCH:
|
||||||
ergodox_right_led_2_on();
|
ergodox_right_led_2_on();
|
||||||
ergodox_right_led_3_on();
|
ergodox_right_led_3_on();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case _ONESHOT:
|
||||||
ergodox_right_led_1_on();
|
ergodox_right_led_1_on();
|
||||||
ergodox_right_led_2_on();
|
ergodox_right_led_2_on();
|
||||||
ergodox_right_led_3_on();
|
ergodox_right_led_3_on();
|
||||||
break;
|
break;
|
||||||
|
case _TEXTNAV:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
break;
|
||||||
|
case _QWERTY_KIDS:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
break;
|
||||||
|
case _STREET_FIGHTER:
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
ergodox_right_led_3_on();
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
TAP_DANCE_ENABLE = yes
|
||||||
|
|
|
@ -15,9 +15,6 @@ const char secret[][64] = {
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void register_hyper (void) { //Helper function to invoke Hyper
|
void register_hyper (void) { //Helper function to invoke Hyper
|
||||||
register_code (KC_LSFT);
|
register_code (KC_LSFT);
|
||||||
register_code (KC_LCTL);
|
register_code (KC_LCTL);
|
||||||
|
@ -244,17 +241,17 @@ void bt_finished (qk_tap_dance_state_t *state, void *user_data) {
|
||||||
S1_state.state = cur_dance(state);
|
S1_state.state = cur_dance(state);
|
||||||
switch (S1_state.state) {
|
switch (S1_state.state) {
|
||||||
case SINGLE_TAP: register_code(KC_F3); break;
|
case SINGLE_TAP: register_code(KC_F3); break;
|
||||||
case SINGLE_HOLD: layer_on(4); break;
|
case SINGLE_HOLD: layer_on(_MACROS); break;
|
||||||
case DOUBLE_TAP: layer_invert(4); break;
|
case DOUBLE_TAP: layer_invert(_MACROS); break;
|
||||||
case DOUBLE_HOLD: layer_on(5); break;
|
case DOUBLE_HOLD: layer_on(5); break;
|
||||||
case DOUBLE_SINGLE_TAP: layer_invert(4); break;
|
case DOUBLE_SINGLE_TAP: layer_invert(_MACROS); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void bt_reset (qk_tap_dance_state_t *state, void *user_data) {
|
void bt_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||||
switch (S1_state.state) {
|
switch (S1_state.state) {
|
||||||
case SINGLE_TAP: unregister_code(KC_F3); break;
|
case SINGLE_TAP: unregister_code(KC_F3); break;
|
||||||
case SINGLE_HOLD: layer_off(4); break;
|
case SINGLE_HOLD: layer_off(_MACROS); break;
|
||||||
case DOUBLE_TAP: break; //already inverted. Don't do anything.
|
case DOUBLE_TAP: break; //already inverted. Don't do anything.
|
||||||
case DOUBLE_HOLD: layer_off(5); break;
|
case DOUBLE_HOLD: layer_off(5); break;
|
||||||
case DOUBLE_SINGLE_TAP: break;
|
case DOUBLE_SINGLE_TAP: break;
|
||||||
|
@ -262,14 +259,152 @@ void bt_reset (qk_tap_dance_state_t *state, void *user_data) {
|
||||||
S1_state.state = 0;
|
S1_state.state = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tap Dance Definitions
|
||||||
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
|
// simple tap dance
|
||||||
|
[F12ETAPS] = ACTION_TAP_DANCE_DOUBLE(KC_F12,LSFT(LCTL(KC_F10))),
|
||||||
|
[REFRESH] = ACTION_TAP_DANCE_DOUBLE(KC_R,LCTL(KC_R)),
|
||||||
|
[ENDESC] = ACTION_TAP_DANCE_DOUBLE(KC_END, KC_ESC),
|
||||||
|
[Q_ESCAPE] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC),
|
||||||
|
[ENDHOME] = ACTION_TAP_DANCE_DOUBLE(KC_END, KC_HOME),
|
||||||
|
[CALCCOMP] = ACTION_TAP_DANCE_DOUBLE(KC_CALCULATOR, KC_MY_COMPUTER),
|
||||||
|
[ALTF4] = ACTION_TAP_DANCE_DOUBLE(KC_F4,LALT(KC_F4)),
|
||||||
|
[F6F7] = ACTION_TAP_DANCE_DOUBLE(LSFT(KC_F6), LALT(KC_F7)),
|
||||||
|
[F1F13] = ACTION_TAP_DANCE_DOUBLE(KC_F1, KC_F13),
|
||||||
|
[F2F14] = ACTION_TAP_DANCE_DOUBLE(KC_F2, KC_F14),
|
||||||
|
[F5F15] = ACTION_TAP_DANCE_DOUBLE(KC_F5, KC_F15),
|
||||||
|
[TABCOMBO] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tab_finished, tab_reset),
|
||||||
|
[F3D] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, bt_finished, bt_reset),
|
||||||
|
[COMMA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, comma_finished, comma_reset),
|
||||||
|
[HTAB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL,h_finished, h_reset)
|
||||||
|
};
|
||||||
|
|
||||||
|
// bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
// if (!record->event.pressed) {
|
||||||
|
// switch (keycode) {
|
||||||
|
|
||||||
|
// case KC_SECRET_1 ... KC_SECRET_5:
|
||||||
|
// send_string(secret[keycode - KC_SECRET_1]);
|
||||||
|
// // clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED);
|
||||||
|
// return true; break;
|
||||||
|
|
||||||
|
// case UP_ENTER_RESET:
|
||||||
|
// register_code(KC_UP);
|
||||||
|
// unregister_code(KC_UP);
|
||||||
|
// register_code(KC_ENTER);
|
||||||
|
// unregister_code(KC_ENTER);
|
||||||
|
// reset_keyboard();
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case TIL_SLASH:
|
||||||
|
// SEND_STRING ("~/.");
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case DBMS_OUT:
|
||||||
|
// SEND_STRING ("dbms_output.put_line('');");
|
||||||
|
// SEND_STRING (SS_TAP(X_LEFT) SS_TAP(X_LEFT) SS_TAP(X_LEFT));
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case ID_MAN_IP:
|
||||||
|
// SEND_STRING ("http://dev-1967110238.us-east-1.elb.amazonaws.com");
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case MODRESET:
|
||||||
|
// clear_mods();
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case DEREF:
|
||||||
|
// SEND_STRING ("->");
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case EQRIGHT:
|
||||||
|
// SEND_STRING ("=>");
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case TICK3:
|
||||||
|
// SEND_STRING ("```");
|
||||||
|
// return false; break;
|
||||||
|
|
||||||
|
// case TILD3:
|
||||||
|
// SEND_STRING ("~~~");
|
||||||
|
// return false; break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return true;
|
||||||
|
// };
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
if (!record->event.pressed) {
|
||||||
switch (keycode) {
|
switch (keycode) {
|
||||||
case KC_SECRET_1 ... KC_SECRET_5:
|
case KC_SECRET_1 ... KC_SECRET_5:
|
||||||
if (!record->event.pressed) {
|
|
||||||
send_string(secret[keycode - KC_SECRET_1]);
|
send_string(secret[keycode - KC_SECRET_1]);
|
||||||
|
// clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED);
|
||||||
|
return true; break;
|
||||||
|
case UP_ENTER_RESET:
|
||||||
|
SEND_STRING("make ergodox_infinity:gordon:dfu-util");
|
||||||
|
register_code(KC_ENTER);
|
||||||
|
unregister_code(KC_ENTER);
|
||||||
|
reset_keyboard();
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case TIL_SLASH:
|
||||||
|
SEND_STRING ("~/.");
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case DBMS_OUT:
|
||||||
|
SEND_STRING ("dbms_output.put_line('');");
|
||||||
|
SEND_STRING (SS_TAP(X_LEFT) SS_TAP(X_LEFT) SS_TAP(X_LEFT));
|
||||||
|
return false; break;
|
||||||
|
case DIE_1000X_RIGHT:
|
||||||
|
SEND_STRING (SS_TAP(X_G) SS_TAP(X_G) SS_TAP(X_RIGHT) SS_TAP(X_B) SS_TAP(X_J));
|
||||||
|
return false; break;
|
||||||
|
case DIE_1000X_LEFT:
|
||||||
|
SEND_STRING (SS_TAP(X_GRAVE) SS_TAP(X_G) SS_TAP(X_LEFT) SS_TAP(X_B) SS_TAP(X_J));
|
||||||
|
return false; break;
|
||||||
|
case ID_MAN_IP:
|
||||||
|
SEND_STRING ("http://dev-1967110238.us-east-1.elb.amazonaws.com");
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case MODRESET:
|
||||||
|
clear_mods();
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case DEREF:
|
||||||
|
SEND_STRING ("->");
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case EQRIGHT:
|
||||||
|
SEND_STRING ("=>");
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case TICK3:
|
||||||
|
SEND_STRING ("```");
|
||||||
|
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case SPRK_TCK:
|
||||||
|
SEND_STRING ("```");
|
||||||
|
SEND_STRING (SS_DOWN(X_LSHIFT) SS_TAP(X_ENTER) SS_UP(X_LSHIFT));
|
||||||
|
SEND_STRING (SS_DOWN(X_LSHIFT) SS_TAP(X_ENTER) SS_UP(X_LSHIFT));
|
||||||
|
SEND_STRING ("```");
|
||||||
|
SEND_STRING (SS_TAP(X_UP));
|
||||||
|
return false; break;
|
||||||
|
|
||||||
|
case TILD3:
|
||||||
|
SEND_STRING ("~~~");
|
||||||
|
return false; break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else { //On key being pressed
|
||||||
|
switch (keycode) {
|
||||||
|
case KC_SECRET_1 ... KC_SECRET_5:
|
||||||
|
clear_oneshot_layer_state(ONESHOT_OTHER_KEY_PRESSED);
|
||||||
|
return false; break;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#define _______ KC_TRNS
|
#define _______ KC_TRNS
|
||||||
#define ________ KC_TRNS
|
#define ________ KC_TRNS
|
||||||
#define _________ KC_TRNS
|
#define _________ KC_TRNS
|
||||||
|
#define _XXXXXX_ KC_TRNS
|
||||||
#define XXXXXXX KC_NO
|
#define XXXXXXX KC_NO
|
||||||
|
|
||||||
// KC codes that are too long
|
// KC codes that are too long
|
||||||
|
@ -30,6 +31,15 @@
|
||||||
#define WORKRIGHT LCTL(LGUI(KC_RIGHT))
|
#define WORKRIGHT LCTL(LGUI(KC_RIGHT))
|
||||||
#define WORKLEFT LCTL(LGUI(KC_LEFT))
|
#define WORKLEFT LCTL(LGUI(KC_LEFT))
|
||||||
|
|
||||||
|
#define APP_1 LCTL(LGUI(KC_1))
|
||||||
|
#define APP_2 LCTL(LGUI(KC_2))
|
||||||
|
#define APP_3 LCTL(LGUI(KC_3))
|
||||||
|
#define APP_4 LCTL(LGUI(KC_4))
|
||||||
|
#define APP_5 LCTL(LGUI(KC_5))
|
||||||
|
#define APP_6 LCTL(LGUI(KC_6))
|
||||||
|
#define APP_7 LCTL(LGUI(KC_7))
|
||||||
|
#define APP_8 LCTL(LGUI(KC_8))
|
||||||
|
|
||||||
// KC/modifier hold
|
// KC/modifier hold
|
||||||
#define CTRL_F CTL_T(KC_F)
|
#define CTRL_F CTL_T(KC_F)
|
||||||
#define CTRL_J CTL_T(KC_J)
|
#define CTRL_J CTL_T(KC_J)
|
||||||
|
@ -52,6 +62,15 @@
|
||||||
#define SYMB_BSP LT(_SYMBOLS,KC_BSPACE)
|
#define SYMB_BSP LT(_SYMBOLS,KC_BSPACE)
|
||||||
#define COL_MOUS LT(_MOUSE,KC_SCOLON)
|
#define COL_MOUS LT(_MOUSE,KC_SCOLON)
|
||||||
#define SPAC_SYM LT(_SYMBOLS,KC_SPACE)
|
#define SPAC_SYM LT(_SYMBOLS,KC_SPACE)
|
||||||
|
#define SPAC_TXT LT(_TEXTNAV,KC_SPACE)
|
||||||
|
|
||||||
|
#define APP_SW_I LT(_APPSWITCH,KC_I)
|
||||||
|
#define APP_SW_K LT(_APPSWITCH,KC_K)
|
||||||
|
|
||||||
|
// #define TLSLSH TIL_SLASH
|
||||||
|
// #define TILDA_3x TILD3
|
||||||
|
// #define _RESET_ UP_ENTER_RESET
|
||||||
|
|
||||||
|
|
||||||
// Double Modifier ONLY hold
|
// Double Modifier ONLY hold
|
||||||
#define ALT_SHFT LSFT(KC_LALT)
|
#define ALT_SHFT LSFT(KC_LALT)
|
||||||
|
@ -60,6 +79,7 @@
|
||||||
// KC/Double modifier Hold
|
// KC/Double modifier Hold
|
||||||
#define CTR_SH_W MT(MOD_LCTL|MOD_LSFT,KC_W)
|
#define CTR_SH_W MT(MOD_LCTL|MOD_LSFT,KC_W)
|
||||||
#define CTR_AL_R MT(MOD_LCTL|MOD_LALT,KC_R)
|
#define CTR_AL_R MT(MOD_LCTL|MOD_LALT,KC_R)
|
||||||
|
#define ALT_SH_R MT(MOD_LSFT|MOD_LALT,KC_R)
|
||||||
|
|
||||||
//MISC
|
//MISC
|
||||||
#define PRINTSCR KC_PSCREEN
|
#define PRINTSCR KC_PSCREEN
|
||||||
|
@ -82,16 +102,77 @@ enum {
|
||||||
TRIPLE_HOLD = 7
|
TRIPLE_HOLD = 7
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//Tap dance enums
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
F12TAP = 0,
|
||||||
|
F12ETAPS,
|
||||||
|
CALCCOMP,
|
||||||
|
REFRESH, //send R, or Control+R if double tapped.
|
||||||
|
ENDESC,
|
||||||
|
XESC, //'quad function'. x, control, escape, alt
|
||||||
|
ALY2, //'quad function': a, Hyper, ctrl+a, layer 2
|
||||||
|
PRLOCK,
|
||||||
|
F6F7, // Shift F6 or Alt F7
|
||||||
|
TABCOMBO,
|
||||||
|
FCTRL,
|
||||||
|
F3D,
|
||||||
|
ALTF4,
|
||||||
|
COMMA,
|
||||||
|
AT,
|
||||||
|
HTAB,
|
||||||
|
F1F13,
|
||||||
|
F2F14,
|
||||||
|
F5F15,
|
||||||
|
ENDHOME,
|
||||||
|
Q_ESCAPE
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifdef TAP_DANCE_ENABLE
|
||||||
|
#define F1_F13 TD(F1F13)
|
||||||
|
#define F2_F14 TD(F2F14)
|
||||||
|
#define F5_F15 TD(F5F15)
|
||||||
|
#define F4_ALTF4 TD(ALTF4)
|
||||||
|
#define END_ESC TD(ENDESC)
|
||||||
|
#define Q_ESC TD(Q_ESCAPE)
|
||||||
|
#define END_HOME TD(ENDHOME)
|
||||||
|
#define SHF6_AF7 TD(F6F7)
|
||||||
|
#define F12_RUN TD(F12ETAPS)
|
||||||
|
#define COMMA_TD TD(COMMA)
|
||||||
|
#define CALC_COM TD(CALCCOMP)
|
||||||
|
#else //just to make things compile
|
||||||
|
#define F1_F13 KC_1
|
||||||
|
#define F2_F14 KC_1
|
||||||
|
#define F5_F15 KC_1
|
||||||
|
#define F4_ALTF4 KC_1
|
||||||
|
#define END_ESC KC_1
|
||||||
|
#define END_HOME KC_1
|
||||||
|
#define SHF6_AF7 KC_1
|
||||||
|
#define F12_RUN KC_1
|
||||||
|
#define COMMA_TD KC_1
|
||||||
|
#define CALC_COM KC_1
|
||||||
|
#endif
|
||||||
|
|
||||||
enum gordon_layers
|
enum gordon_layers
|
||||||
{
|
{
|
||||||
_QWERTY = 0,
|
_QWERTY = 0,
|
||||||
_SYMBOLS,
|
_SYMBOLS, // Programming and all other commonlye used symbols
|
||||||
_MOUSE,
|
_MOUSE, // Mouse movement and also a few macros
|
||||||
_NUMPAD,
|
_NUMPAD, // For getting a numpad under the right hand, and a few helpful things under the left
|
||||||
_NAV,
|
_NAV, // Windows navigation. Windows snapping, changing workspaces, and ARROWS
|
||||||
_MACROS,
|
_MACROS, // Non-text related Macros.
|
||||||
_FUNCTION,
|
_FUNCTION, // Not sure what I had in mind for this one
|
||||||
_TEXTNAV
|
_APPSWITCH, // For switching between apps using the `ctrl + Win + [num]` shortcut.
|
||||||
|
// This allows for toggling windows of the same app with one button.
|
||||||
|
// Example: Press and hold `I`, then tap `j` multiple times to cycle through all
|
||||||
|
// Intellij windows (and only Intellij). This requires the app to be pinned to the Windows bar
|
||||||
|
_ONESHOT, // A layer I use for shortcuts that require multiple modifiers and a button not on my home layer
|
||||||
|
// Example: If I need to hit `alt + shift + 5`
|
||||||
|
_TEXTNAV, // Navigate through text
|
||||||
|
_QWERTY_KIDS, // So my kids can do nothing but type. Could also be a `speed typing` layer with no LT or MTs
|
||||||
|
_STREET_FIGHTER, // For Street Fighter 5. Die 1000x Deaths!!!!
|
||||||
|
_DIRNAV, // For navigating to different directories.
|
||||||
|
_TEXT_MACROS // For text-manipulation macros. Passwords, saved strings, pre-formatting
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,26 +213,37 @@ void comma_reset (qk_tap_dance_state_t *state, void *user_data);
|
||||||
void bt_finished (qk_tap_dance_state_t *state, void *user_data);
|
void bt_finished (qk_tap_dance_state_t *state, void *user_data);
|
||||||
void bt_reset (qk_tap_dance_state_t *state, void *user_data);
|
void bt_reset (qk_tap_dance_state_t *state, void *user_data);
|
||||||
|
|
||||||
// Macro Declarations
|
|
||||||
enum {
|
|
||||||
INFOQM,
|
|
||||||
TIL_SLASH,
|
|
||||||
DEREF,
|
|
||||||
EQRIGHT,
|
|
||||||
TILD3,
|
|
||||||
TICK3,
|
|
||||||
ALTTAB_START,
|
|
||||||
ALTTAB_END
|
|
||||||
};
|
|
||||||
|
|
||||||
enum secret_strings {
|
enum secret_strings {
|
||||||
KC_SECRET_1 = SAFE_RANGE,
|
KC_SECRET_1 = SAFE_RANGE,
|
||||||
KC_SECRET_2,
|
KC_SECRET_2,
|
||||||
KC_SECRET_3,
|
KC_SECRET_3,
|
||||||
KC_SECRET_4,
|
KC_SECRET_4,
|
||||||
KC_SECRET_5,
|
KC_SECRET_5,
|
||||||
|
END_SECRET_SAFE_RANGE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
// Macro Declarations
|
||||||
|
enum {
|
||||||
|
INFOQM = END_SECRET_SAFE_RANGE,
|
||||||
|
MODRESET,
|
||||||
|
TIL_SLASH,
|
||||||
|
DEREF,
|
||||||
|
EQRIGHT,
|
||||||
|
TILD3,
|
||||||
|
TICK3,
|
||||||
|
SPRK_TCK,
|
||||||
|
ALTTAB_START,
|
||||||
|
ALTTAB_END,
|
||||||
|
UP_ENTER_RESET,
|
||||||
|
DBMS_OUT,
|
||||||
|
DIE_1000X_RIGHT,
|
||||||
|
DIE_1000X_LEFT,
|
||||||
|
ID_MAN_IP
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt);
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt);
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -1,2 +1,4 @@
|
||||||
TAP_DANCE_ENABLE = yes
|
TAP_DANCE_ENABLE = yes
|
||||||
SRC += gordon.c
|
SRC += gordon.c
|
||||||
|
|
||||||
|
# BOOTMAGIC_ENABLE = yes
|
||||||
|
|
Loading…
Reference in New Issue