Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
258954dc3e | ||
|
|
835431330c | ||
|
|
a75bd221f2 | ||
|
|
805b42275b | ||
|
|
7f5361aedb | ||
|
|
434a450be1 | ||
|
|
4bd64227fd | ||
|
|
8a9c19ee93 |
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
# DudeOfAwesome's Big Series 1-key layout
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Tap dancing taps:
|
||||||
|
1. Media Play / Pause
|
||||||
|
1. Media Next
|
||||||
|
1. RGB Mode Next
|
||||||
|
1. RGB Mode Previous
|
||||||
|
|
||||||
|
## Building and flashing
|
||||||
|
|
||||||
|
1. Put your board in DFU mode with the button on the bottom
|
||||||
|
1. Flash:
|
||||||
|
```bash
|
||||||
|
$ make bigseries:dudeofawesome:dfu
|
||||||
|
```
|
||||||
|
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 Cole Markham
|
||||||
|
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#define TAPPING_TERM 1000
|
||||||
|
|
||||||
|
#endif
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 Cole Markham
|
||||||
|
|
||||||
|
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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
enum TAP_DANCE {
|
||||||
|
TD_PLAY = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
LAYOUT(TD(TD_PLAY)),
|
||||||
|
};
|
||||||
|
|
||||||
|
void tap_dance (qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
switch (state->count) {
|
||||||
|
case 0 ... 1:
|
||||||
|
register_code(KC_MEDIA_PLAY_PAUSE);
|
||||||
|
unregister_code(KC_MEDIA_PLAY_PAUSE);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
register_code(KC_MEDIA_NEXT_TRACK);
|
||||||
|
unregister_code(KC_MEDIA_NEXT_TRACK);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
rgblight_step();
|
||||||
|
break;
|
||||||
|
case 4: default:
|
||||||
|
rgblight_step_reverse();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//Tap Dance Definitions
|
||||||
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
|
[TD_PLAY] = ACTION_TAP_DANCE_FN(tap_dance),
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
TAP_DANCE_ENABLE = yes
|
||||||
@@ -26,8 +26,8 @@ void matrix_init_user(void) {
|
|||||||
void matrix_scan_user(void) {
|
void matrix_scan_user(void) {
|
||||||
if (runonce && timer_elapsed(my_timer) > 1000) {
|
if (runonce && timer_elapsed(my_timer) > 1000) {
|
||||||
runonce = false;
|
runonce = false;
|
||||||
rgblight_sethsv(0x0, 0xff, 0x80);
|
rgblight_sethsv_noeeprom(0x0, 0xff, 0x80);
|
||||||
rgblight_mode(9);
|
rgblight_mode_noeeprom(9);
|
||||||
rgblight_enable();
|
rgblight_enable_noeeprom();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
#define KEYMAP( \
|
#define LAYOUT( \
|
||||||
K05, K25, K35, K45, K55, K06, KA6, KA7, K07, KB5, KC5, KD5, KE5, KD1, KE1, KE2, \
|
K05, K25, K35, K45, K55, K06, KA6, KA7, K07, KB5, KC5, KD5, KE5, KD1, KE1, KE2, \
|
||||||
K04, K14, K24, K34, K44, K54, K16, KB6, KB7, K17, KA4, KB4, KC4, KE4, KD0, \
|
K04, K14, K24, K34, K44, K54, K16, KB6, KB7, K17, KA4, KB4, KC4, KE4, KD0, \
|
||||||
K03, K13, K23, K33, K43, K53, K26, KC6, KC7, K27, KA3, KB3, KC3, KD3, K67, \
|
K03, K13, K23, K33, K43, K53, K26, KC6, KC7, K27, KA3, KB3, KC3, KD3, K67, \
|
||||||
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{ K07, K17, K27, K37, K47, K57, K67, K77, KC_NO, KC_NO, KA7, KB7, KC7, KD7, KE7 } \
|
{ K07, K17, K27, K37, K47, K57, K67, K77, KC_NO, KC_NO, KA7, KB7, KC7, KD7, KE7 } \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define KC_KEYMAP( \
|
#define LAYOUT_kc( \
|
||||||
K05, K25, K35, K45, K55, K06, KA6, KA7, K07, KB5, KC5, KD5, KE5, KD1, KE1, KE2, \
|
K05, K25, K35, K45, K55, K06, KA6, KA7, K07, KB5, KC5, KD5, KE5, KD1, KE1, KE2, \
|
||||||
K04, K14, K24, K34, K44, K54, K16, KB6, KB7, K17, KA4, KB4, KC4, KE4, KD0, \
|
K04, K14, K24, K34, K44, K54, K16, KB6, KB7, K17, KA4, KB4, KC4, KE4, KD0, \
|
||||||
K03, K13, K23, K33, K43, K53, K26, KC6, KC7, K27, KA3, KB3, KC3, KD3, K67, \
|
K03, K13, K23, K33, K43, K53, K26, KC6, KC7, K27, KA3, KB3, KC3, KD3, K67, \
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"keyboard_name": "B.mini",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 16,
|
||||||
|
"height": 6,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"key_count": 84,
|
||||||
|
"layout": [{"label":"K05", "x":0, "y":0}, {"label":"K25", "x":1, "y":0}, {"label":"K35", "x":2, "y":0}, {"label":"K45", "x":3, "y":0}, {"label":"K55", "x":4, "y":0}, {"label":"K06", "x":5, "y":0}, {"label":"KA6", "x":6, "y":0}, {"label":"KA7", "x":7, "y":0}, {"label":"K07", "x":8, "y":0}, {"label":"KB5", "x":9, "y":0}, {"label":"KC5", "x":10, "y":0}, {"label":"KD5", "x":11, "y":0}, {"label":"KE5", "x":12, "y":0}, {"label":"KD1", "x":13, "y":0}, {"label":"KE1", "x":14, "y":0}, {"label":"KE2", "x":15, "y":0}, {"label":"K04", "x":0, "y":1}, {"label":"K14", "x":1, "y":1}, {"label":"K24", "x":2, "y":1}, {"label":"K34", "x":3, "y":1}, {"label":"K44", "x":4, "y":1}, {"label":"K54", "x":5, "y":1}, {"label":"K16", "x":6, "y":1}, {"label":"KB6", "x":7, "y":1}, {"label":"KB7", "x":8, "y":1}, {"label":"K17", "x":9, "y":1}, {"label":"KA4", "x":10, "y":1}, {"label":"KB4", "x":11, "y":1}, {"label":"KC4", "x":12, "y":1}, {"label":"KE4", "x":13, "y":1, "w":2}, {"label":"KD0", "x":15, "y":1}, {"label":"K03", "x":0, "y":2, "w":1.5}, {"label":"K13", "x":1.5, "y":2}, {"label":"K23", "x":2.5, "y":2}, {"label":"K33", "x":3.5, "y":2}, {"label":"K43", "x":4.5, "y":2}, {"label":"K53", "x":5.5, "y":2}, {"label":"K26", "x":6.5, "y":2}, {"label":"KC6", "x":7.5, "y":2}, {"label":"KC7", "x":8.5, "y":2}, {"label":"K27", "x":9.5, "y":2}, {"label":"KA3", "x":10.5, "y":2}, {"label":"KB3", "x":11.5, "y":2}, {"label":"KC3", "x":12.5, "y":2}, {"label":"KD3", "x":13.5, "y":2, "w":1.5}, {"label":"K67", "x":15, "y":2}, {"label":"K02", "x":0, "y":3, "w":1.75}, {"label":"K12", "x":1.75, "y":3}, {"label":"K22", "x":2.75, "y":3}, {"label":"K32", "x":3.75, "y":3}, {"label":"K42", "x":4.75, "y":3}, {"label":"K52", "x":5.75, "y":3}, {"label":"K36", "x":6.75, "y":3}, {"label":"KD6", "x":7.75, "y":3}, {"label":"KD7", "x":8.75, "y":3}, {"label":"K37", "x":9.75, "y":3}, {"label":"KA2", "x":10.75, "y":3}, {"label":"KB2", "x":11.75, "y":3}, {"label":"KD2", "x":12.75, "y":3, "w":2.25}, {"label":"KE0", "x":15, "y":3}, {"label":"K01", "x":0, "y":4, "w":2.25}, {"label":"K11", "x":2.25, "y":4}, {"label":"K21", "x":3.25, "y":4}, {"label":"K31", "x":4.25, "y":4}, {"label":"K41", "x":5.25, "y":4}, {"label":"K51", "x":6.25, "y":4}, {"label":"K46", "x":7.25, "y":4}, {"label":"KE6", "x":8.25, "y":4}, {"label":"KE7", "x":9.25, "y":4}, {"label":"K47", "x":10.25, "y":4}, {"label":"KA1", "x":11.25, "y":4}, {"label":"KB1", "x":12.25, "y":4, "w":1.75}, {"label":"K86", "x":14, "y":4}, {"label":"K77", "x":15, "y":4}, {"label":"K00", "x":0, "y":5, "w":1.25}, {"label":"K10", "x":1.25, "y":5, "w":1.25}, {"label":"K20", "x":2.5, "y":5, "w":1.25}, {"label":"K56", "x":3.75, "y":5, "w":6.25}, {"label":"K57", "x":10, "y":5}, {"label":"KB0", "x":11, "y":5}, {"label":"KC0", "x":12, "y":5}, {"label":"K66", "x":13, "y":5}, {"label":"K76", "x":14, "y":5}, {"label":"K96", "x":15, "y":5}]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -15,10 +15,10 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "bmini.h"
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = KEYMAP(
|
[0] = LAYOUT(
|
||||||
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_HOME,KC_END,
|
KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR,KC_HOME,KC_END,
|
||||||
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, KC_DEL,
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,KC_EQL, KC_BSPC, KC_DEL,
|
||||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSLS, KC_INS,
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC,KC_RBRC,KC_BSLS, KC_INS,
|
||||||
@@ -26,7 +26,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT, KC_UP, KC_PGDN,
|
KC_LSFT,KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM,KC_DOT, KC_SLSH,KC_RSFT, KC_UP, KC_PGDN,
|
||||||
KC_LCTL,KC_LALT,KC_LGUI, KC_SPC, KC_RGUI,KC_RALT,KC_RCTL,KC_LEFT,KC_DOWN,KC_RGHT
|
KC_LCTL,KC_LALT,KC_LGUI, KC_SPC, KC_RGUI,KC_RALT,KC_RCTL,KC_LEFT,KC_DOWN,KC_RGHT
|
||||||
),
|
),
|
||||||
[1] = KEYMAP(
|
[1] = LAYOUT(
|
||||||
KC_TRNS,RGB_TOG,RGB_MOD,RGB_HUI,RGB_SAI,RGB_VAI,RGB_HUD,RGB_SAD,RGB_VAD,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_END,
|
KC_TRNS,RGB_TOG,RGB_MOD,RGB_HUI,RGB_SAI,RGB_VAI,RGB_HUD,RGB_SAD,RGB_VAD,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_END,
|
||||||
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_DEL,
|
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_DEL,
|
||||||
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_INS,
|
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_INS,
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
// Sets good default for the speed of the mouse.
|
||||||
|
#undef MOUSEKEY_INTERVAL
|
||||||
|
#undef MOUSEKEY_DELAY
|
||||||
|
#undef MOUSEKEY_TIME_TO_MAX
|
||||||
|
#undef MOUSEKEY_MAX_SPEED
|
||||||
|
|
||||||
|
#define MOUSEKEY_INTERVAL 20
|
||||||
|
#define MOUSEKEY_DELAY 100
|
||||||
|
#define MOUSEKEY_TIME_TO_MAX 60
|
||||||
|
#define MOUSEKEY_MAX_SPEED 7
|
||||||
|
|
||||||
|
#undef MOUSEKEY_WHEEL_MAX_SPEED
|
||||||
|
#undef MOUSEKEY_WHEEL_TIME_TO_MAX
|
||||||
|
#undef MOUSEKEY_WHEEL_DELAY
|
||||||
|
|
||||||
|
#define MOUSEKEY_WHEEL_MAX_SPEED 5
|
||||||
|
#define MOUSEKEY_WHEEL_TIME_TO_MAX 60
|
||||||
|
#define MOUSEKEY_WHEEL_DELAY 100
|
||||||
|
|
||||||
|
#undef TAPPING_TOGGLE
|
||||||
|
#undef TAPPING_TERM
|
||||||
|
#undef IGNORE_MOD_TAP_INTERRUPT
|
||||||
|
|
||||||
|
#define TAPPING_TOGGLE 1
|
||||||
|
#define TAPPING_TERM 150
|
||||||
|
#define IGNORE_MOD_TAP_INTERRUPT
|
||||||
@@ -0,0 +1,234 @@
|
|||||||
|
// An Ergodox EZ keymap mostly following the programmer's dvorak layout.
|
||||||
|
// There is a standard QWERTY layer as well
|
||||||
|
//
|
||||||
|
// See the README.md file for an image of this keymap.
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
|
// The layers that we are defining for this keyboards.
|
||||||
|
#define BASE 0
|
||||||
|
#define NUM 1
|
||||||
|
#define QWERTY 2
|
||||||
|
#define MAC 3
|
||||||
|
|
||||||
|
// The Tap Dance identifiers, used in the TD keycode and tap_dance_actions array.
|
||||||
|
#define TAP_MACRO 0
|
||||||
|
|
||||||
|
// SAFE_RANGE must be used to tag the first element of the enum.
|
||||||
|
// DYNAMIC_MACRO_RANGE must always be the last element of the enum if other
|
||||||
|
// values are added (as its value is used to create a couple of other keycodes
|
||||||
|
// after it).
|
||||||
|
enum custom_keycodes {
|
||||||
|
MC_ARROW = SAFE_RANGE,
|
||||||
|
DYNAMIC_MACRO_RANGE
|
||||||
|
};
|
||||||
|
|
||||||
|
// A 'transparent' key code (that falls back to the layers below it).
|
||||||
|
#define ___ KC_TRANSPARENT
|
||||||
|
|
||||||
|
// A 'blocking' key code. Does nothing but prevent falling back to another layer.
|
||||||
|
#define XXX KC_NO
|
||||||
|
|
||||||
|
// Some combined keys (one normal keycode when tapped and one modifier or layer
|
||||||
|
// toggle when held).
|
||||||
|
#define SPC_RALT MT(MOD_RALT, KC_SPC) // SPACE key and right alt modifier.
|
||||||
|
|
||||||
|
// The most portable copy/paste keys (windows (mostly), linux, and some terminal emulators).
|
||||||
|
#define MK_CUT LSFT(KC_DEL) // shift + delete
|
||||||
|
#define MK_COPY LCTL(KC_INS) // ctrl + insert
|
||||||
|
#define MK_PASTE LSFT(KC_INS) // shift + insert
|
||||||
|
//Move mac desktop spaces
|
||||||
|
#define MAC_L LGUI(LSFT(KC_UP)) // cmd + shift + up
|
||||||
|
#define MAC_R LGUI(LSFT(KC_DOWN)) // cmd + shift + down
|
||||||
|
|
||||||
|
// This file must be included after DYNAMIC_MACRO_RANGE is defined...
|
||||||
|
#include "dynamic_macro.h"
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
// Layer 0: basic keys.
|
||||||
|
[BASE] = LAYOUT_ergodox_pretty(
|
||||||
|
KC_DLR, KC_AMPR, KC_LBRC, KC_LCBR, KC_RCBR, KC_LPRN, KC_CIRC, KC_F4, KC_EQUAL,KC_ASTR, KC_BSLASH, KC_PLUS, KC_RBRACKET, KC_EXLM,
|
||||||
|
GUI_T(KC_BSLASH), KC_SCOLON,KC_COMMA, KC_DOT, KC_P, KC_Y, KC_PERC, KC_DELETE, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLASH,
|
||||||
|
MO(NUM), KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINUS,
|
||||||
|
KC_LSPO, KC_QUOTE, KC_Q, KC_J, KC_K, KC_X, KC_LALT, TD(TAP_MACRO),KC_B, KC_M, KC_W, KC_V, KC_Z, KC_RSPC,
|
||||||
|
KC_AT, KC_HASH, KC_GRAVE, KC_LEFT, KC_RIGHT, KC_UP, KC_DOWN, KC_HOME, KC_END, TO(QWERTY),
|
||||||
|
ALT_T(KC_APPLICATION), ALL_T(KC_NO), KC_PGUP, KC_LGUI,
|
||||||
|
KC_BSLASH, TO(MAC),
|
||||||
|
KC_ENTER, KC_TAB, CTL_T(KC_ESCAPE), CTL_T(KC_ESCAPE), KC_BSPACE, KC_SPACE),
|
||||||
|
|
||||||
|
// Layer 1: function and numpad keys.
|
||||||
|
[NUM] = LAYOUT_ergodox_pretty(
|
||||||
|
___, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, ___, ___, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||||
|
___, KC_EXLM, KC_COMMA, KC_DOT, KC_MS_BTN1, KC_MS_BTN2, ___, ___, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12,
|
||||||
|
XXX, ___, KC_LCBR, KC_RCBR, MC_ARROW, KC_GRAVE, KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_UNDS,
|
||||||
|
___, ___, KC_CIRC, KC_LBRACKET, KC_RBRACKET, KC_TILD, ___, ___, KC_0, KC_1, KC_2, KC_3, KC_KP_SLASH, KC_BSLASH,
|
||||||
|
___, ___, ___, ___, ___, ___, KC_0, KC_KP_DOT, KC_EQUAL, ___,
|
||||||
|
___, ___, KC_KP_ASTERISK, KC_KP_SLASH,
|
||||||
|
KC_LCTL, ___,
|
||||||
|
KC_KP_PLUS, KC_KP_MINUS, KC_DLR, KC_DELETE, KC_BSPACE, KC_SPACE),
|
||||||
|
|
||||||
|
// Layer 2: QWERTY control.
|
||||||
|
[QWERTY] = LAYOUT_ergodox_pretty(
|
||||||
|
/* left hand */
|
||||||
|
KC_EQUAL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT, KC_RIGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINUS,
|
||||||
|
KC_DELETE, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, TO(BASE), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLASH,
|
||||||
|
MO(NUM), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, GUI_T(KC_QUOT),
|
||||||
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, ALT_T(KC_NO), MEH_T(KC_NO), KC_N, KC_M, KC_COMMA, KC_DOT, KC_SLASH, KC_RSPC,
|
||||||
|
KC_GRAVE, KC_QUOTE, LALT(KC_TAB), KC_LEFT, KC_RIGHT, KC_UP, KC_DOWN, KC_LBRACKET, KC_RBRACKET, TO(BASE),
|
||||||
|
___, KC_LGUI, ___, KC_ESCAPE,
|
||||||
|
KC_HOME, KC_PGUP,
|
||||||
|
KC_ENTER, KC_TAB, KC_END, KC_PGDOWN, KC_BSPACE, KC_SPACE),
|
||||||
|
|
||||||
|
// Layer 3: Mac layer
|
||||||
|
[MAC] = LAYOUT_ergodox_pretty(
|
||||||
|
/* left hand */
|
||||||
|
___, KC_1, KC_2, KC_3, KC_4, KC_5, ___, ___, KC_6, KC_7, KC_8, KC_9, KC_0, ___,
|
||||||
|
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,
|
||||||
|
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,
|
||||||
|
___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___, ___,
|
||||||
|
___, ___, ___, MAC_L, MAC_R, ___, ___, ___, ___, ___,
|
||||||
|
___, ___, ___, ___,
|
||||||
|
___, TO(BASE),
|
||||||
|
KC_LGUI, KC_LALT, KC_LGUI, KC_LGUI, KC_LALT, KC_LGUI),
|
||||||
|
};
|
||||||
|
|
||||||
|
// Whether the macro 1 is currently being recorded.
|
||||||
|
static bool is_macro1_recording = false;
|
||||||
|
|
||||||
|
// The current set of active layers (as a bitmask).
|
||||||
|
// There is a global 'layer_state' variable but it is set after the call
|
||||||
|
// to layer_state_set_user().
|
||||||
|
static uint32_t current_layer_state = 0;
|
||||||
|
uint32_t layer_state_set_user(uint32_t state);
|
||||||
|
|
||||||
|
// Method called at the end of the tap dance on the TAP_MACRO key. That key is
|
||||||
|
// used to start recording a macro (double tap or more), to stop recording (any
|
||||||
|
// number of tap), or to play the recorded macro (1 tap).
|
||||||
|
void macro_tapdance_fn(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
uint16_t keycode;
|
||||||
|
keyrecord_t record;
|
||||||
|
dprintf("macro_tap_dance_fn %d\n", state->count);
|
||||||
|
if (is_macro1_recording) {
|
||||||
|
keycode = DYN_REC_STOP;
|
||||||
|
is_macro1_recording = false;
|
||||||
|
layer_state_set_user(current_layer_state);
|
||||||
|
} else if (state->count == 1) {
|
||||||
|
keycode = DYN_MACRO_PLAY1;
|
||||||
|
} else {
|
||||||
|
keycode = DYN_REC_START1;
|
||||||
|
is_macro1_recording = true;
|
||||||
|
layer_state_set_user(current_layer_state);
|
||||||
|
}
|
||||||
|
|
||||||
|
record.event.pressed = true;
|
||||||
|
process_record_dynamic_macro(keycode, &record);
|
||||||
|
record.event.pressed = false;
|
||||||
|
process_record_dynamic_macro(keycode, &record);
|
||||||
|
}
|
||||||
|
|
||||||
|
// The definition of the tap dance actions:
|
||||||
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
|
// This Tap dance plays the macro 1 on TAP and records it on double tap.
|
||||||
|
[TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn)
|
||||||
|
};
|
||||||
|
|
||||||
|
// Runs for each key down or up event.
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
if (keycode != TD(TAP_MACRO)) {
|
||||||
|
// That key is processed by the macro_tapdance_fn. Not ignoring it here is
|
||||||
|
// mostly a no-op except that it is recorded in the macros (and uses space).
|
||||||
|
// We can't just return false when the key is a tap dance, because
|
||||||
|
// process_record_user, is called before the tap dance processing (and
|
||||||
|
// returning false would eat the tap dance).
|
||||||
|
if (!process_record_dynamic_macro(keycode, record)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(record->event.pressed) {
|
||||||
|
switch(keycode) {
|
||||||
|
case MC_ARROW:
|
||||||
|
SEND_STRING("=>");
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true; // Let QMK send the enter press/release events
|
||||||
|
}
|
||||||
|
|
||||||
|
// Runs just one time when the keyboard initializes.
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
ergodox_right_led_1_off();
|
||||||
|
ergodox_right_led_2_off();
|
||||||
|
ergodox_right_led_3_off();
|
||||||
|
};
|
||||||
|
|
||||||
|
// Runs constantly in the background, in a loop.
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Value to use to switch LEDs on. The default value of 255 is far too bright.
|
||||||
|
static const uint8_t max_led_value = 20;
|
||||||
|
|
||||||
|
// Whether the given layer (one of the constant defined at the top) is active.
|
||||||
|
#define LAYER_ON(layer) (current_layer_state & (1<<layer))
|
||||||
|
|
||||||
|
void led_1_on(void) {
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
ergodox_right_led_1_set(max_led_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_2_on(void) {
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
ergodox_right_led_2_set(max_led_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_3_on(void) {
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
ergodox_right_led_3_set(max_led_value);
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_1_off(void) {
|
||||||
|
ergodox_right_led_1_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_2_off(void) {
|
||||||
|
ergodox_right_led_2_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
void led_3_off(void) {
|
||||||
|
ergodox_right_led_3_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t layer_state_set_user(uint32_t state) {
|
||||||
|
current_layer_state = state;
|
||||||
|
|
||||||
|
if (is_macro1_recording) {
|
||||||
|
led_1_on();
|
||||||
|
led_2_on();
|
||||||
|
led_3_on();
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LAYER_ON(NUM)) {
|
||||||
|
led_1_on();
|
||||||
|
} else {
|
||||||
|
led_1_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LAYER_ON(MAC)) {
|
||||||
|
led_2_on();
|
||||||
|
} else {
|
||||||
|
led_2_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (LAYER_ON(QWERTY)) {
|
||||||
|
led_3_on();
|
||||||
|
} else {
|
||||||
|
led_3_off();
|
||||||
|
}
|
||||||
|
|
||||||
|
return state;
|
||||||
|
};
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
# Ergodox EZ Layout by bpruitt-goddard
|
||||||
|

|
||||||
|
|
||||||
|
[KLE link](http://www.keyboard-layout-editor.com/#/gists/5896c5a729a64633d3f63de71e7e0e79)
|
||||||
|
|
||||||
|
## Layers
|
||||||
|
| Layer | Legend |
|
||||||
|
| ----- | ------ |
|
||||||
|
| Base | Top (black) |
|
||||||
|
| Num | Center (blue) |
|
||||||
|
| QWERTY | Bottom (Red) |
|
||||||
|
| MAC | Front/Bottom-most (Yellow) |
|
||||||
|
|
||||||
|
## Features
|
||||||
|
* Tap-dance dynamic macro key.
|
||||||
|
* Tap twice for starting macro. Then tap once to complete the macro
|
||||||
|
* Tap one for replaying macro
|
||||||
|
* Numpad on right hand with momentary Num layer
|
||||||
|
* QWERTY layer for non-dvorak users
|
||||||
|
* Mac layer for changing thumbpad modifier keys with Command
|
||||||
|
* Uses the following dual function keys
|
||||||
|
* Space Cadet shifts (shift/paren)
|
||||||
|
* Ctrl/Esc
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||||
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # USB Nkey Rollover - for issues, see github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
ONEHAND_ENABLE = yes # Allow swapping hands of keyboard
|
||||||
|
KEY_LOCK_ENABLE = yes # Enable the KC_LOCK key
|
||||||
|
TAP_DANCE_ENABLE = yes # Enable the tap dance feature.
|
||||||
|
CONSOLE_ENABLE = yes # Console for debug
|
||||||
|
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
|
||||||
|
UNICODE_ENABLE = no
|
||||||
|
SLEEP_LED_ENABLE = no
|
||||||
|
API_SYSEX_ENABLE = no
|
||||||
|
RGBLIGHT_ENABLE = no
|
||||||
|
RGBLIGHT_ANIMATION = no
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2018 Daniel Gordon <[email protected]>
|
||||||
|
|
||||||
|
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,________,
|
||||||
________,________,________,________,________,
|
________,________,________,________,________,
|
||||||
|
|
||||||
________,________,
|
________,________,
|
||||||
@@ -181,95 +136,207 @@ 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 ,________,________,________,________,________,
|
BL_TOGG ,BL_STEP ,________,________,________,________,________,
|
||||||
________,________,KC_7 ,KC_8 ,KC_9 ,________,________,
|
________,________,KC_7 ,KC_8 ,KC_9 ,________,________,
|
||||||
________,KC_4 ,KC_5 ,KC_6 ,________,________,
|
________,KC_4 ,KC_5 ,KC_6 ,________,________,
|
||||||
________,________,KC_1 ,KC_2 ,KC_3 ,________,________,
|
________,KC_DOT, KC_1 ,KC_2 ,KC_3 ,________,________,
|
||||||
KC_0 ,KC_0 , KC_DOT ,________,________,
|
KC_0 ,KC_DOT , KC_DOT ,________,________,
|
||||||
|
|
||||||
________,________,
|
________,________,
|
||||||
________,
|
________,
|
||||||
________,________,KC_0),
|
________,________,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****************************
|
//****************************TEXT/INTELLIJ NAVIGATION LAYER****************************
|
||||||
[_TEXTNAV] = KEYMAP(________,________,________,________,________,________,________,
|
[_TEXTNAV] = KEYMAP(________,________,________,________,________,________,________,
|
||||||
________,MEH(KC_Q),LSFT(KC_ESCAPE),MEH(KC_D),MEH(KC_2),LALT(LSFT(KC_UP)),________,
|
________,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(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)),________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________,________)
|
________,________,________,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(
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________,
|
||||||
|
|
||||||
|
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,________,________,
|
||||||
|
________,________,________,________,________,
|
||||||
|
|
||||||
|
|
||||||
|
________,________,
|
||||||
|
________,
|
||||||
|
________,________,________), */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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,35 +348,51 @@ 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);
|
||||||
case _SYMBOLS:
|
|
||||||
ergodox_right_led_1_on();
|
|
||||||
break;
|
|
||||||
case _MOUSE:
|
|
||||||
ergodox_right_led_2_on();
|
|
||||||
break;
|
|
||||||
case _NUMPAD:
|
|
||||||
ergodox_right_led_3_on();
|
|
||||||
break;
|
|
||||||
case _NAV:
|
|
||||||
ergodox_right_led_1_on();
|
|
||||||
ergodox_right_led_2_on();
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
ergodox_right_led_1_on();
|
|
||||||
ergodox_right_led_3_on();
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
ergodox_right_led_2_on();
|
|
||||||
ergodox_right_led_3_on();
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
ergodox_right_led_1_on();
|
|
||||||
ergodox_right_led_2_on();
|
|
||||||
ergodox_right_led_3_on();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
switch (layer)
|
||||||
|
{
|
||||||
|
case _SYMBOLS:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
break;
|
||||||
|
case _MOUSE:
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
break;
|
||||||
|
case _NUMPAD:
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
break;
|
||||||
|
case _NAV:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
break;
|
||||||
|
case _MACROS:
|
||||||
|
//layer unused right now
|
||||||
|
break;
|
||||||
|
case _FUNCTION:
|
||||||
|
//layer unused right nowex
|
||||||
|
break;
|
||||||
|
case _APPSWITCH:
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
break;
|
||||||
|
case _ONESHOT:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
ergodox_right_led_3_on();
|
||||||
|
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:
|
||||||
|
break;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
TAP_DANCE_ENABLE = yes
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
"LAYOUT_all": {
|
"LAYOUT_all": {
|
||||||
"layout": [{"label":"~", "x":0, "y":0}, {"label":"!", "x":1, "y":0}, {"label":"@", "x":2, "y":0}, {"label":"#", "x":3, "y":0}, {"label":"$", "x":4, "y":0}, {"label":"%", "x":5, "y":0}, {"label":"^", "x":6, "y":0}, {"label":"&", "x":7, "y":0}, {"label":"*", "x":8, "y":0}, {"label":"(", "x":9, "y":0}, {"label":")", "x":10, "y":0}, {"label":"_", "x":11, "y":0}, {"label":"+", "x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"label":"Tab", "x":0, "y":1, "w":1.5}, {"label":"Q", "x":1.5, "y":1}, {"label":"W", "x":2.5, "y":1}, {"label":"E", "x":3.5, "y":1}, {"label":"R", "x":4.5, "y":1}, {"label":"T", "x":5.5, "y":1}, {"label":"Y", "x":6.5, "y":1}, {"label":"U", "x":7.5, "y":1}, {"label":"I", "x":8.5, "y":1}, {"label":"O", "x":9.5, "y":1}, {"label":"P", "x":10.5, "y":1}, {"label":"{", "x":11.5, "y":1}, {"label":"}", "x":12.5, "y":1}, {"label":"|", "x":13.5, "y":1, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2, "w":1.75}, {"label":"A", "x":1.75, "y":2}, {"label":"S", "x":2.75, "y":2}, {"label":"D", "x":3.75, "y":2}, {"label":"F", "x":4.75, "y":2}, {"label":"G", "x":5.75, "y":2}, {"label":"H", "x":6.75, "y":2}, {"label":"J", "x":7.75, "y":2}, {"label":"K", "x":8.75, "y":2}, {"label":"L", "x":9.75, "y":2}, {"label":":", "x":10.75, "y":2}, {"label":"\"", "x":11.75, "y":2}, {"x":12.75, "y":2}, {"label":"Enter", "x":13.75, "y":2, "w":1.25}, {"label":"Shift", "x":0, "y":3}, {"x":1, "y":3}, {"label":"Z", "x":2, "y":3}, {"label":"X", "x":3, "y":3}, {"label":"C", "x":4, "y":3}, {"label":"V", "x":5, "y":3}, {"label":"B", "x":6, "y":3}, {"label":"N", "x":7, "y":3}, {"label":"M", "x":8, "y":3}, {"label":"<", "x":9, "y":3}, {"label":">", "x":10, "y":3}, {"label":"?", "x":11, "y":3}, {"label":"Shift", "x":12, "y":3}, {"x":13, "y":3}, {"x":14, "y":3}, {"label":"Ctrl", "x":0, "y":4, "w":1.25}, {"label":"Win", "x":1.25, "y":4, "w":1.25}, {"label":"Alt", "x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":2.25}, {"x":6, "y":4, "w":1.25}, {"x":7.25, "y":4, "w":2.75}, {"label":"Alt", "x":10, "y":4}, {"label":"Win", "x":11, "y":4}, {"label":"Menu", "x":12, "y":4}, {"label":"Ctrl", "x":13, "y":4}, {"x":14, "y":4}]
|
"layout": [{"label":"~", "x":0, "y":0.25}, {"label":"!", "x":1, "y":0.25}, {"label":"@", "x":2, "y":0.25}, {"label":"#", "x":3, "y":0.25}, {"label":"$", "x":4, "y":0.25}, {"label":"%", "x":5, "y":0.25}, {"label":"^", "x":6, "y":0.25}, {"label":"&", "x":7, "y":0.25}, {"label":"*", "x":8, "y":0.25}, {"label":"(", "x":9, "y":0.25}, {"label":")", "x":10, "y":0.25}, {"label":"_", "x":11, "y":0.25}, {"label":"+", "x":12, "y":0.25}, {"label":"Del", "x":13, "y":0.25}, {"label":"Bs", "x":14, "y":0.25}, {"label":"Tab", "x":0, "y":1.25, "w":1.5}, {"label":"Q", "x":1.5, "y":1.25}, {"label":"W", "x":2.5, "y":1.25}, {"label":"E", "x":3.5, "y":1.25}, {"label":"R", "x":4.5, "y":1.25}, {"label":"T", "x":5.5, "y":1.25}, {"label":"Y", "x":6.5, "y":1.25}, {"label":"U", "x":7.5, "y":1.25}, {"label":"I", "x":8.5, "y":1.25}, {"label":"O", "x":9.5, "y":1.25}, {"label":"P", "x":10.5, "y":1.25}, {"label":"{", "x":11.5, "y":1.25}, {"label":"}", "x":12.5, "y":1.25}, {"label":"|", "x":13.5, "y":1.25, "w":1.5}, {"label":"Caps Lock", "x":0, "y":2.25, "w":1.75}, {"label":"A", "x":1.75, "y":2.25}, {"label":"S", "x":2.75, "y":2.25}, {"label":"D", "x":3.75, "y":2.25}, {"label":"F", "x":4.75, "y":2.25}, {"label":"G", "x":5.75, "y":2.25}, {"label":"H", "x":6.75, "y":2.25}, {"label":"J", "x":7.75, "y":2.25}, {"label":"K", "x":8.75, "y":2.25}, {"label":"L", "x":9.75, "y":2.25}, {"label":":", "x":10.75, "y":2.25}, {"label":"\"", "x":11.75, "y":2.25}, {"label":"\"", "x":12.75, "y":2.25}, {"label":"Enter", "x":13.75, "y":2.25, "w":1.25}, {"label":"Shift", "x":0, "y":3.25}, {"x":1, "y":3.25}, {"label":"Z", "x":2, "y":3.25}, {"label":"X", "x":3, "y":3.25}, {"label":"C", "x":4, "y":3.25}, {"label":"V", "x":5, "y":3.25}, {"label":"B", "x":6, "y":3.25}, {"label":"N", "x":7, "y":3.25}, {"label":"M", "x":8, "y":3.25}, {"label":"<", "x":9, "y":3.25}, {"label":">", "x":10, "y":3.25}, {"label":"?", "x":11, "y":3.25}, {"label":"Shift", "x":12, "y":3.25}, {"label":"Up", "x":13, "y":3.25}, {"x":14, "y":3.25}, {"label":"Ctrl", "x":0, "y":4.25, "w":1.75}, {"label":"Win", "x":1.75, "y":4.25, "w":1.25}, {"label":"Alt", "x":3, "y":4.25, "w":1.25}, {"x":4.25, "y":4.25, "w":1.25}, {"x":5.5, "y":4.25, "w":3}, {"x":8.5, "y":4.25, "w":1.25}, {"label":"Alt", "x":9.75, "y":4.25, "w":1.25}, {"label":"Ctrl", "x":11, "y":4.25}, {"label":"Left", "x":12, "y":4.25}, {"label":"Down", "x":13, "y":4.25}, {"label":"Right", "x":14, "y":4.25}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "config_common.h"
|
||||||
|
|
||||||
|
#ifdef AUDIO_ENABLE
|
||||||
|
#define STARTUP_SONG SONG(PREONIC_SOUND)
|
||||||
|
// #define STARTUP_SONG SONG(NO_SOUND)
|
||||||
|
|
||||||
|
#define GAME_SOUND VICTORY_FANFARE_SHORT
|
||||||
|
|
||||||
|
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
|
||||||
|
SONG(GAME_SOUND) \
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define MUSIC_MASK (keycode != KC_NO)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* MIDI options
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Prevent use of disabled MIDI features in the keymap */
|
||||||
|
//#define MIDI_ENABLE_STRICT 1
|
||||||
|
|
||||||
|
/* enable basic MIDI features:
|
||||||
|
- MIDI notes can be sent when in Music mode is on
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MIDI_BASIC
|
||||||
|
|
||||||
|
/* enable advanced MIDI features:
|
||||||
|
- MIDI notes can be added to the keymap
|
||||||
|
- Octave shift and transpose
|
||||||
|
- Virtual sustain, portamento, and modulation wheel
|
||||||
|
- etc.
|
||||||
|
*/
|
||||||
|
//#define MIDI_ADVANCED
|
||||||
|
|
||||||
|
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
|
||||||
|
//#define MIDI_TONE_KEYCODE_OCTAVES 2
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,216 @@
|
|||||||
|
/* Copyright 2015-2017 Jack Humbert
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include QMK_KEYBOARD_H
|
||||||
|
#include "kuatsure.h"
|
||||||
|
|
||||||
|
enum preonic_layers {
|
||||||
|
_QWERTY,
|
||||||
|
_GAME,
|
||||||
|
_GAME_MOD,
|
||||||
|
_LOWER,
|
||||||
|
_RAISE,
|
||||||
|
_ADJUST,
|
||||||
|
};
|
||||||
|
|
||||||
|
enum preonic_keycodes {
|
||||||
|
QWERTY = SAFE_RANGE,
|
||||||
|
GAME,
|
||||||
|
GAME_MOD,
|
||||||
|
LOWER,
|
||||||
|
RAISE,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
/* Qwerty
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Tab | Q | W | E | R | T | Y | U | I | O | P | \ |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Ctrl | A | S | D | F | G | H | J | K | L | ; | ' |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* |Leader| Game | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_QWERTY] = LAYOUT_preonic_grid_wrapper( \
|
||||||
|
KC_ESC, _________________NUMBER_L1_________________, _________________NUMBER_R1_________________, KC_BSPC, \
|
||||||
|
KC_TAB, _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, KC_BSLS, \
|
||||||
|
KC_LCTL, _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, KC_QUOT, \
|
||||||
|
KC_LSFT, _________________QWERTY_L3_________________, _________________QWERTY_R3_________________, KC_ENT, \
|
||||||
|
KC_LEAD, GAME, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Game
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | Tab | Q | W | E | R | T | Y | U | I | O | P | \ |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | Ctrl | A | S | D | F | G | H | J | K | L | ; | ' |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* |Leader|Qwerty| Alt | Spc |Game+ | Space |Game+ | Left | Down | Up |Right |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_GAME] = LAYOUT_preonic_grid_wrapper( \
|
||||||
|
KC_ESC, _________________NUMBER_L1_________________, _________________NUMBER_R1_________________, KC_BSPC, \
|
||||||
|
KC_TAB, _________________QWERTY_L1_________________, _________________QWERTY_R1_________________, KC_BSLS, \
|
||||||
|
KC_LCTL, _________________QWERTY_L2_________________, _________________QWERTY_R2_________________, KC_QUOT, \
|
||||||
|
KC_LSFT, _________________QWERTY_L3_________________, _________________QWERTY_R3_________________, KC_ENT, \
|
||||||
|
KC_LEAD, QWERTY, KC_LALT, KC_SPC, GAME_MOD, KC_SPC, KC_SPC, GAME_MOD, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Game Modifiers
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | | | | | | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | F9 | F10 | F11 | F12 | ` | | 7 | 8 | 9 | | |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | F5 | F6 | F7 | F8 | ~ | | 4 | 5 | 6 | | |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* |Shift | F1 | F2 | F3 | F4 | | | 1 | 2 | 3 | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | | 0 | 0 | | |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_GAME_MOD] = LAYOUT_preonic_grid_wrapper( \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, ____________FUNCTION_3____________, KC_GRV, _______, KC_7, KC_8, KC_9, _______, _______, \
|
||||||
|
_______, ____________FUNCTION_2____________, KC_TILD, _______, KC_4, KC_5, KC_6, _______, _______, \
|
||||||
|
KC_LSFT, ____________FUNCTION_1____________, _______, _______, KC_1, KC_2, KC_3, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_0, _______, _______ \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Lower
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | ~ | ! | @ | # | $ | % | ^ | < | > | | | |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | | | Up | | ` | | { | } | _ | | | |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | Del | Left | Down | Right| ~ | = | ( | ) | + | : | " |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | Vol- | Prev | Play | Next | Vol+ | - | [ | ] | | ? | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | Mute | | | | Esc | | Home | PgUp | PgDwn| End |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_LOWER] = LAYOUT_preonic_grid_wrapper( \
|
||||||
|
KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_LT, KC_GT, _______, _______, _______, \
|
||||||
|
_______, _______, _______, KC_UP, _______, KC_GRV, _______, KC_LCBR, KC_RCBR, KC_UNDS, _______, KC_PIPE, \
|
||||||
|
_______, KC_DEL, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TILD, KC_EQL, KC_LPRN, KC_RPRN, KC_PLUS, KC_COLN, KC_DQT , \
|
||||||
|
_______, KC_VOLD, KC_MRWD, KC_MPLY, KC_MFFD, KC_VOLU, KC_MINS, KC_LBRC, KC_RBRC, _______, KC_QUES, _______, \
|
||||||
|
_______, KC_MUTE, _______, _______, _______, KC_ESC, KC_ESC, _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Raise
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | E`~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | F9 | F10 | F11 | F12 | | | | | | | Bksp |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | F5 | F6 | F7 | F8 | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | F1 | F2 | F3 | F4 | | | | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | Enter | | Home | PgUp | PgDwn| End |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_RAISE] = LAYOUT_preonic_grid_wrapper( \
|
||||||
|
KC_GESC, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, \
|
||||||
|
_______, ____________FUNCTION_3____________, _______, _______, _______, _______, _______, _______, KC_BSPC, \
|
||||||
|
_______, ____________FUNCTION_2____________, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, ____________FUNCTION_1____________, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, KC_ENT, KC_ENT, _______, KC_HOME, KC_PGUP, KC_PGDN, KC_END \
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Adjust (Lower + Raise)
|
||||||
|
* ,-----------------------------------------------------------------------------------.
|
||||||
|
* | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | Reset| Debug| | | | | | | | | Del |
|
||||||
|
* |------+------+------+------+------+-------------+------+------+------+------+------|
|
||||||
|
* | | | | | |Aud on|AudOff| | | | | |
|
||||||
|
* |------+------+------+------+------+------|------+------+------+------+------+------|
|
||||||
|
* | | | | |MusMod|Mus on|MusOff| | | | | |
|
||||||
|
* |------+------+------+------+------+------+------+------+------+------+------+------|
|
||||||
|
* | | | | | | | |Qwerty| Game | | |
|
||||||
|
* `-----------------------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_ADJUST] = LAYOUT_preonic_grid_wrapper( \
|
||||||
|
____________FUNCTION_1____________, ____________FUNCTION_2____________, ____________FUNCTION_3____________, \
|
||||||
|
_______, RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||||
|
_______, _______, _______, _______, _______, AU_ON, AU_OFF, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, MU_MOD, MU_ON, MU_OFF, _______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, QWERTY, GAME, _______, _______ \
|
||||||
|
),
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case QWERTY:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
set_single_persistent_default_layer(_QWERTY);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GAME:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
set_single_persistent_default_layer(_GAME);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case GAME_MOD:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_GAME_MOD);
|
||||||
|
} else {
|
||||||
|
layer_off(_GAME_MOD);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case LOWER:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_LOWER);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RAISE:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
layer_on(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
} else {
|
||||||
|
layer_off(_RAISE);
|
||||||
|
update_tri_layer(_LOWER, _RAISE, _ADJUST);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# The kuatsure Preonic layout - largely based on the Preonic's & Keyboard Paradise V60's layout
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
BACKLIGHT_ENABLE = no
|
||||||
@@ -403,10 +403,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
KC_TRNS, K80(L1K2), K80(L1K3),
|
KC_TRNS, K80(L1K2), K80(L1K3),
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS
|
KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
),
|
),
|
||||||
/* Keymap 2: F-Keys, media and mouse keys
|
/* Keymap 2: Numbers, media and mouse keys
|
||||||
*
|
*
|
||||||
* .--------------------------------------------------. .--------------------------------------------------.
|
* .--------------------------------------------------. .--------------------------------------------------.
|
||||||
* | | | | | | | | |Mute | | | | | | |
|
* | | 1 | 2 | 3 | 4 | 5 | | | Mute | 6 | 7 | 8 | 9 | 0 | |
|
||||||
* |--------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
* |--------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
||||||
* | | | | MsUp | | |MWhlUp| |VolUp | | | | | | |
|
* | | | | MsUp | | |MWhlUp| |VolUp | | | | | | |
|
||||||
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
@@ -424,10 +424,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
* | | | | | MNxt | | |
|
* | | | | | MNxt | | |
|
||||||
* '--------------------' '--------------------'
|
* '--------------------' '--------------------'
|
||||||
*/
|
*/
|
||||||
/* MEDIA & MOUSE */
|
/* MEDIA, MOUSE & NUMBERS */
|
||||||
[LAYER_MDIA] = LAYOUT_ergodox_76_or_80(
|
[LAYER_MDIA] = LAYOUT_ergodox_76_or_80(
|
||||||
/* left hand */
|
/* left hand */
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_WH_U,
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_WH_U,
|
||||||
KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_BTN2, KC_BTN3, KC_BTN1, KC_TRNS, KC_WH_D,
|
KC_TRNS, KC_TRNS, KC_BTN2, KC_BTN3, KC_BTN1, KC_TRNS, KC_WH_D,
|
||||||
@@ -436,7 +436,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
K80(L2K0), K80(L2K1), KC_TRNS,
|
K80(L2K0), K80(L2K1), KC_TRNS,
|
||||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
/* right hand */
|
/* right hand */
|
||||||
KC_MUTE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_MUTE, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS,
|
||||||
KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TRNS, KC_TRNS,
|
KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TRNS, KC_TRNS,
|
||||||
KC_VOLD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
KC_VOLD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
@@ -492,7 +492,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||||||
|
|
||||||
const uint16_t PROGMEM fn_actions[] = {
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
[1] = ACTION_LAYER_TAP_TOGGLE(LAYER_KPAD), /* FN1 - Momentary Layer 1 (KeyPad) */
|
[1] = ACTION_LAYER_TAP_TOGGLE(LAYER_KPAD), /* FN1 - Momentary Layer 1 (KeyPad) */
|
||||||
[2] = ACTION_LAYER_TAP_TOGGLE(LAYER_MDIA), /* FN2 - Momentary Layer 2 (Media) */
|
[2] = ACTION_LAYER_TAP_TOGGLE(LAYER_MDIA), /* FN2 - Momentary Layer 2 (Media, Mouse) */
|
||||||
[3] = ACTION_LAYER_TAP_TOGGLE(LAYER_FKEY), /* FN3 - Momentary Layer 3 (FKey's & Words) */
|
[3] = ACTION_LAYER_TAP_TOGGLE(LAYER_FKEY), /* FN3 - Momentary Layer 3 (FKey's & Words) */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -122,11 +122,16 @@ Notes:
|
|||||||
'--------------------' '--------------------'
|
'--------------------' '--------------------'
|
||||||
```
|
```
|
||||||
|
|
||||||
## Keymap 2: Keymap 2: Media and Mouse Keys
|
## Keymap 2: Media, Mouse Keys and Numbers
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
|
||||||
|
- Numbers are included on this layer since some applications differentiate
|
||||||
|
between numbers top row and keypad.
|
||||||
|
|
||||||
```
|
```
|
||||||
.--------------------------------------------------. .--------------------------------------------------.
|
.--------------------------------------------------. .--------------------------------------------------.
|
||||||
| | | | | | | | |Mute | | | | | | |
|
| | 1 | 2 | 3 | 4 | 5 | | | Mute | 6 | 7 | 8 | 9 | 0 | |
|
||||||
|--------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
|--------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
||||||
| | | | MsUp | | |MWhlUp| |VolUp | | | | | | |
|
| | | | MsUp | | |MWhlUp| |VolUp | | | | | | |
|
||||||
|--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
@@ -174,6 +179,9 @@ eg: `-DCFQ_WORD_E=\"[email protected]\"`
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
- 2018/05/29
|
||||||
|
Add number keys for cases when keypad numbers are handled differently.
|
||||||
|
|
||||||
- 2018/05/19
|
- 2018/05/19
|
||||||
Move all media keys to right thumb cluster
|
Move all media keys to right thumb cluster
|
||||||
(matching page up/down, home/end locations).
|
(matching page up/down, home/end locations).
|
||||||
|
|||||||
@@ -423,4 +423,16 @@
|
|||||||
H__NOTE(_FS5), \
|
H__NOTE(_FS5), \
|
||||||
H__NOTE(_D5 ), \
|
H__NOTE(_D5 ), \
|
||||||
|
|
||||||
|
#define VICTORY_FANFARE_SHORT \
|
||||||
|
ED_NOTE(_C6), \
|
||||||
|
ED_NOTE(_C6), \
|
||||||
|
ED_NOTE(_C6), \
|
||||||
|
ED_NOTE(_C6), \
|
||||||
|
W__NOTE(_REST), \
|
||||||
|
QD_NOTE(_GS5), \
|
||||||
|
QD_NOTE(_AS5), \
|
||||||
|
Q__NOTE(_C6), \
|
||||||
|
Q__NOTE(_AS5), \
|
||||||
|
Q__NOTE(_C6), \
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
+149
-14
@@ -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) {
|
||||||
switch (keycode) {
|
if (!record->event.pressed) {
|
||||||
case KC_SECRET_1 ... KC_SECRET_5:
|
switch (keycode) {
|
||||||
if (!record->event.pressed) {
|
case KC_SECRET_1 ... KC_SECRET_5:
|
||||||
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;
|
||||||
}
|
};
|
||||||
|
|
||||||
+133
-41
@@ -6,19 +6,20 @@
|
|||||||
|
|
||||||
|
|
||||||
// Fillers to make layering more clear
|
// Fillers to make layering more clear
|
||||||
#define _______ KC_TRNS
|
#define _______ KC_TRNS
|
||||||
#define ________ KC_TRNS
|
#define ________ KC_TRNS
|
||||||
#define _________ KC_TRNS
|
#define _________ KC_TRNS
|
||||||
#define XXXXXXX KC_NO
|
#define _XXXXXX_ KC_TRNS
|
||||||
|
#define XXXXXXX KC_NO
|
||||||
|
|
||||||
// KC codes that are too long
|
// KC codes that are too long
|
||||||
#define DOLLAR KC_DOLLAR
|
#define DOLLAR KC_DOLLAR
|
||||||
#define LSQUIGLY KC_LBRACKET
|
#define LSQUIGLY KC_LBRACKET
|
||||||
#define RSQUIGLY KC_RBRACKET
|
#define RSQUIGLY KC_RBRACKET
|
||||||
#define NUMLOCK KC_NUMLOCK
|
#define NUMLOCK KC_NUMLOCK
|
||||||
#define CAPLOCK KC_CAPSLOCK
|
#define CAPLOCK KC_CAPSLOCK
|
||||||
#define BK_SLASH KC_BSLASH
|
#define BK_SLASH KC_BSLASH
|
||||||
#define ASTERSK KC_KP_ASTERISK
|
#define ASTERSK KC_KP_ASTERISK
|
||||||
|
|
||||||
// Navigation
|
// Navigation
|
||||||
#define SNAPLEFT LGUI(KC_LEFT)
|
#define SNAPLEFT LGUI(KC_LEFT)
|
||||||
@@ -30,19 +31,28 @@
|
|||||||
#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)
|
||||||
#define CTRL_Z CTL_T(KC_Z)
|
#define CTRL_Z CTL_T(KC_Z)
|
||||||
#define ALT_V ALT_T(KC_V)
|
#define ALT_V ALT_T(KC_V)
|
||||||
#define ALT_M ALT_T(KC_M)
|
#define ALT_M ALT_T(KC_M)
|
||||||
#define WIN_G GUI_T(KC_G)
|
#define WIN_G GUI_T(KC_G)
|
||||||
#define WIN_H GUI_T(KC_H)
|
#define WIN_H GUI_T(KC_H)
|
||||||
#define HYPER_X ALL_T(KC_X)
|
#define HYPER_X ALL_T(KC_X)
|
||||||
#define HYPE_DOT ALL_T(KC_DOT)
|
#define HYPE_DOT ALL_T(KC_DOT)
|
||||||
#define MEH_S MEH_T(KC_S)
|
#define MEH_S MEH_T(KC_S)
|
||||||
#define MEH_L MEH_T(KC_L)
|
#define MEH_L MEH_T(KC_L)
|
||||||
#define ALT_HOME ALT_T(KC_HOME)
|
#define ALT_HOME ALT_T(KC_HOME)
|
||||||
|
|
||||||
|
|
||||||
// KC/Layer Hold
|
// KC/Layer Hold
|
||||||
@@ -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
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
#include "kuatsure.h"
|
||||||
|
|
||||||
|
void tmux_prefix(void) {
|
||||||
|
register_code(KC_LCTL);
|
||||||
|
register_code(KC_SPC);
|
||||||
|
|
||||||
|
unregister_code(KC_LCTL);
|
||||||
|
unregister_code(KC_SPC);
|
||||||
|
}
|
||||||
|
|
||||||
|
void tmux_pane_zoom(void) {
|
||||||
|
tmux_prefix();
|
||||||
|
|
||||||
|
register_code(KC_Z);
|
||||||
|
unregister_code(KC_Z);
|
||||||
|
}
|
||||||
|
|
||||||
|
void tmux_pane_switch(uint16_t keycode) {
|
||||||
|
tmux_prefix();
|
||||||
|
|
||||||
|
register_code(KC_Q);
|
||||||
|
unregister_code(KC_Q);
|
||||||
|
|
||||||
|
register_code(keycode);
|
||||||
|
unregister_code(keycode);
|
||||||
|
}
|
||||||
|
|
||||||
|
void tmux_window_switch(uint16_t keycode) {
|
||||||
|
tmux_prefix();
|
||||||
|
|
||||||
|
register_code(keycode);
|
||||||
|
unregister_code(keycode);
|
||||||
|
}
|
||||||
|
|
||||||
|
LEADER_EXTERNS();
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
LEADER_DICTIONARY() {
|
||||||
|
leading = false;
|
||||||
|
leader_end();
|
||||||
|
|
||||||
|
// Available seqs
|
||||||
|
// SEQ_ONE_KEY, SEQ_TWO_KEYS, SEQ_THREE_KEYS
|
||||||
|
// anything you can do in a macro https://docs.qmk.fm/macros.html
|
||||||
|
// https://docs.qmk.fm/feature_leader_key.html
|
||||||
|
|
||||||
|
// Whole Screen Shot
|
||||||
|
SEQ_ONE_KEY(KC_A) {
|
||||||
|
register_code(KC_LGUI);
|
||||||
|
register_code(KC_LSFT);
|
||||||
|
register_code(KC_3);
|
||||||
|
|
||||||
|
unregister_code(KC_3);
|
||||||
|
unregister_code(KC_LSFT);
|
||||||
|
unregister_code(KC_LGUI);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Selective Screen Shot
|
||||||
|
SEQ_ONE_KEY(KC_S) {
|
||||||
|
register_code(KC_LGUI);
|
||||||
|
register_code(KC_LSFT);
|
||||||
|
register_code(KC_4);
|
||||||
|
|
||||||
|
unregister_code(KC_4);
|
||||||
|
unregister_code(KC_LSFT);
|
||||||
|
unregister_code(KC_LGUI);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to pane 1 and zoom
|
||||||
|
SEQ_ONE_KEY(KC_J) {
|
||||||
|
tmux_pane_switch(KC_1);
|
||||||
|
tmux_pane_zoom();
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to pane 2 and zoom
|
||||||
|
SEQ_ONE_KEY(KC_K) {
|
||||||
|
tmux_pane_switch(KC_2);
|
||||||
|
tmux_pane_zoom();
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to pane 3 and zoom
|
||||||
|
SEQ_ONE_KEY(KC_L) {
|
||||||
|
tmux_pane_switch(KC_3);
|
||||||
|
tmux_pane_zoom();
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to last pane and zoom
|
||||||
|
SEQ_ONE_KEY(KC_SCOLON) {
|
||||||
|
tmux_prefix();
|
||||||
|
|
||||||
|
register_code(KC_SCOLON);
|
||||||
|
unregister_code(KC_SCOLON);
|
||||||
|
|
||||||
|
tmux_pane_zoom();
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to first window
|
||||||
|
SEQ_ONE_KEY(KC_U) {
|
||||||
|
tmux_window_switch(KC_1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to second window
|
||||||
|
SEQ_ONE_KEY(KC_I) {
|
||||||
|
tmux_window_switch(KC_2);
|
||||||
|
}
|
||||||
|
|
||||||
|
// TMUX - shift to third window
|
||||||
|
SEQ_ONE_KEY(KC_O) {
|
||||||
|
tmux_window_switch(KC_3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
#ifndef KUATSURE
|
||||||
|
#define KUATSURE
|
||||||
|
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
void tmux_prefix(void);
|
||||||
|
void tmux_pane_zoom(void);
|
||||||
|
void tmux_pane_switch(uint16_t keycode);
|
||||||
|
void tmux_window_switch(uint16_t keycode);
|
||||||
|
|
||||||
|
#undef LEADER_TIMEOUT
|
||||||
|
#define LEADER_TIMEOUT 300
|
||||||
|
|
||||||
|
#define LAYOUT_preonic_grid_wrapper(...) LAYOUT_preonic_grid(__VA_ARGS__)
|
||||||
|
|
||||||
|
#define _________________NUMBER_L1_________________ KC_1, KC_2, KC_3, KC_4, KC_5
|
||||||
|
#define _________________NUMBER_R1_________________ KC_6, KC_7, KC_8, KC_9, KC_0
|
||||||
|
|
||||||
|
#define _________________QWERTY_L1_________________ KC_Q, KC_W, KC_E, KC_R, KC_T
|
||||||
|
#define _________________QWERTY_L2_________________ KC_A, KC_S, KC_D, KC_F, KC_G
|
||||||
|
#define _________________QWERTY_L3_________________ KC_Z, KC_X, KC_C, KC_V, KC_B
|
||||||
|
|
||||||
|
#define _________________QWERTY_R1_________________ KC_Y, KC_U, KC_I, KC_O, KC_P
|
||||||
|
#define _________________QWERTY_R2_________________ KC_H, KC_J, KC_K, KC_L, KC_SCLN
|
||||||
|
#define _________________QWERTY_R3_________________ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLASH
|
||||||
|
|
||||||
|
#define ____________FUNCTION_1____________ KC_F1, KC_F2, KC_F3, KC_F4
|
||||||
|
#define ____________FUNCTION_2____________ KC_F5, KC_F6, KC_F7, KC_F8
|
||||||
|
#define ____________FUNCTION_3____________ KC_F9, KC_F10, KC_F11, KC_F12
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
Copyright 2018 Jarrett Drouillard jarrett@thestyl.us @kuatsure
|
||||||
|
|
||||||
|
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/>.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
SRC += kuatsure.c
|
||||||
Reference in new issue
Block a user