Compare commits

...

4 Commits

Author SHA1 Message Date
Gergely Nagy 381f4da639
wip: switch to number rows
5 years ago
Gergely Nagy 9764209d80
wip: Atreus2 hjkl arrows -> inverted T
5 years ago
Gergely Nagy 3e819cba75
wip: oneshot
5 years ago
Gergely Nagy 7f8b463773
wip: Atreus2 layout rethought
5 years ago

@ -26,69 +26,142 @@
#include "Kaleidoscope-OneShot.h"
#include "Kaleidoscope-Qukeys.h"
#include "Kaleidoscope-SpaceCadet.h"
#include "Kaleidoscope-EscapeOneShot.h"
#define MO(n) ShiftToLayer(n)
#define TG(n) LockLayer(n)
enum {
LAYER_QWERTY
};
#define Key_Exclamation LSHIFT(Key_1)
#define Key_At LSHIFT(Key_2)
#define Key_Hash LSHIFT(Key_3)
#define Key_Dollar LSHIFT(Key_4)
#define Key_And LSHIFT(Key_7)
#define Key_BSpc Key_Backspace
#define Key_VolUp Consumer_VolumeIncrement
#define Key_VolDn Consumer_VolumeDecrement
#define Key_LCBracket LSHIFT(Key_LeftBracket)
#define Key_RCBracket LSHIFT(Key_RightBracket)
#define Key_Star LSHIFT(Key_8)
#define Key_Plus LSHIFT(Key_Equals)
#define Key_Up Key_UpArrow
#define Key_Down Key_DownArrow
#define Key_Left Key_LeftArrow
#define Key_Right Key_RightArrow
enum {
QWERTY,
NUMPAD,
NAV
_QWERTY,
_LOWER,
_RAISE,
_MOUSE
};
/* *INDENT-OFF* */
KEYMAPS(
[QWERTY] = KEYMAP_STACKED
/* QWERTY:
+-------+-------+-------+-------+-------+
| Q | W | E | R | T |
| A | S | D | F | G +-------+
| Z | X | C | V | B | Tab |
| L1 | Bspc | Ctrl | Cmd | Shift | Esc |
+-------+-------+-------+-------+-------+-------+
. +-------+-------+-------+-------+-------+
. | Y | U | I | O | P |
+-------| H | J | K | L | ; |
| Enter | N | M | , | . | / |
| Space | Shift | Alt | - | ' | L2 |
+-------+-------+-------+-------+-------+-------+
*/
[_QWERTY] = KEYMAP_STACKED
(
Key_Q ,Key_W ,Key_E ,Key_R ,Key_T
,Key_A ,Key_S ,Key_D ,Key_F ,Key_G
,Key_Z ,Key_X ,Key_C ,Key_V ,Key_B, Key_Backtick
,Key_Esc ,Key_Tab ,Key_LeftGui ,Key_LeftShift ,Key_Backspace ,Key_LeftControl
,Key_Y ,Key_U ,Key_I ,Key_O ,Key_P
,Key_H ,Key_J ,Key_K ,Key_L ,Key_Semicolon
,Key_Backslash,Key_N ,Key_M ,Key_Comma ,Key_Period ,Key_Slash
,Key_LeftAlt ,Key_Space ,MO(NUMPAD) ,Key_Minus ,Key_Quote ,Key_Enter
Key_Q ,Key_W ,Key_E ,Key_R ,Key_T
,Key_A ,Key_S ,Key_D ,Key_F ,Key_G
,Key_Z ,Key_X ,Key_C ,Key_V ,Key_B ,Key_Tab
,OSL(_LOWER) ,Key_BSpc ,OSM(LeftControl) ,OSM(LeftGui) ,OSM(LeftShift) ,Key_Esc
,Key_Y ,Key_U ,Key_I ,Key_O ,Key_P
,Key_H ,Key_J ,Key_K ,Key_L ,Key_Semicolon
,Key_Enter ,Key_N ,Key_M ,Key_Comma ,Key_Period ,Key_Slash
,Key_Space ,OSM(RightShift) ,OSM(LeftAlt) ,Key_Minus ,Key_Quote ,OSL(_RAISE)
),
[NUMPAD] = KEYMAP_STACKED
/* _LOWER
+-------+-------+-------+-------+-------+
| | Left | Down | Up | Right |
| 1 | 2 | 3 | 4 | 5 +-------+
| | | PgDn | PgUp | | Home |
| -L1- | Del | Ctrl | Cmd | Shift | Esc |
+-------+-------+-------+-------+-------+-------+
. +-------+-------+-------+-------+-------+
. | { | } | [ | ] | * |
+-------| 6 | 7 | 8 | 9 | 0 |
| End | | | | | \ |
| Enter | Shift | Alt | = | ` | *L3* |
+-------+-------+-------+-------+-------+-------+
*/
[_LOWER] = KEYMAP_STACKED
(
Key_Exclamation ,Key_At ,Key_UpArrow ,Key_LeftCurlyBracket ,Key_RightCurlyBracket
,Key_Hash ,Key_LeftArrow ,Key_DownArrow ,Key_RightArrow ,Key_Dollar
,Key_LeftBracket ,Key_RightBracket ,Key_LeftParen ,Key_RightParen ,Key_And ,___
,TG(NAV) ,Key_Insert ,Key_LeftGui ,Key_LeftShift ,Key_Backspace ,Key_LeftControl
,Key_PageUp ,Key_7 ,Key_8 ,Key_9 ,Key_Star
,Key_PageDown ,Key_4 ,Key_5 ,Key_6 ,Key_Plus
,___ ,Key_Backtick ,Key_1 ,Key_2 ,Key_3 ,Key_Backslash
,Key_LeftAlt ,Key_Space ,___ ,Key_Period ,Key_0 ,Key_Equals
XXX ,Key_Left ,Key_Down ,Key_Up ,Key_Right
,Key_1 ,Key_2 ,Key_3 ,Key_4 ,Key_5
,XXX ,XXX ,Key_PageDn ,Key_PageUp ,XXX ,Key_Home
,___ ,Key_Delete ,___ ,___ ,___ ,___
,Key_LCBracket ,Key_RCBracket ,Key_LBracket ,Key_RBracket ,Key_Star
,Key_6 ,Key_7 ,Key_8 ,Key_9 ,Key_0
,Key_End ,XXX ,XXX ,XXX ,XXX ,Key_Slash
,Key_Enter ,___ ,___ ,Key_Equals ,Key_Backtick ,TG(_MOUSE)
),
[NAV] = KEYMAP_STACKED
/* _RAISE
+-------+-------+-------+-------+-------+
| F11 | F12 | | << | >> |
| F1 | F2 | F3 | F4 | F5 +-------+
| | | | |Ply/Pse| Mute |
| *L3* | Del | Ctrl | Cmd | Shift | Esc |
+-------+-------+-------+-------+-------+-------+
. +-------+-------+-------+-------+-------+
. | | | | | |
+-------| F6 | F7 | F8 | F9 | F10 |
| Vol+ | Vol- | | | | \ |
| Enter | Shift | Alt | | | -L2- |
+-------+-------+-------+-------+-------+-------+
*/
[_RAISE] = KEYMAP_STACKED
(
Key_Insert ,Key_Home ,Key_UpArrow ,Key_End ,Key_PageUp
,Key_Delete ,Key_LeftArrow ,Key_DownArrow ,Key_RightArrow ,Key_PageDown
,XXX ,Consumer_VolumeIncrement ,XXX ,XXX ,___ ,___
,XXX ,Consumer_VolumeDecrement ,___ ,___ ,___ ,___
,Key_UpArrow ,Key_F7 ,Key_F8 ,Key_F9 ,Key_F10
,Key_DownArrow ,Key_F4 ,Key_F5 ,Key_F6 ,Key_F11
,___ ,XXX ,Key_F1 ,Key_F2 ,Key_F3 ,Key_F12
,___ ,___ ,M(QWERTY) ,Key_PrintScreen ,Key_ScrollLock ,Consumer_PlaySlashPause
Key_F11 ,Key_F12 ,XXX ,Consumer_ScanPreviousTrack ,Consumer_ScanNextTrack
,Key_F1 ,Key_F2 ,Key_F3 ,Key_F4 ,Key_F5
,XXX ,XXX ,XXX ,XXX ,Consumer_PlaySlashPause ,Consumer_Mute
,TG(_MOUSE) ,Key_Delete ,___ ,___ ,___ ,___
,XXX ,XXX ,XXX ,XXX ,XXX
,Key_F6 ,Key_F7 ,Key_F8 ,Key_F9 ,Key_F10
,Key_VolUp ,Key_VolDn ,XXX ,XXX ,XXX ,Key_Slash
,Key_Enter ,___ ,___ ,XXX ,XXX ,___
),
/* _MOUSE
+-------+-------+-------+-------+-------+
| | | MUp | | MBL |
| | MLeft | MDown | MRght | MBM +-------+
| | | | | MBR | |
| *L3* | | Ctrl | Cmd | Shift | Esc |
+-------+-------+-------+-------+-------+-------+
. +-------+-------+-------+-------+-------+
. | PrScr | WClr | | | |
+-------| Ins | WNW | WNE | | |
| | | WSW | WSE | | |
| | Shift | Alt | | | *L3* |
+-------+-------+-------+-------+-------+-------+
*/
[_MOUSE] = KEYMAP_STACKED
(
XXX ,XXX ,Key_mouseUp ,XXX ,Key_mouseBtnL
,XXX ,Key_mouseL ,Key_mouseDn ,Key_mouseR ,Key_mouseBtnM
,XXX ,XXX ,XXX ,XXX ,Key_mouseBtnR ,XXX
,___ ,XXX ,___ ,___ ,___ ,___
,Key_PrintScreen ,Key_mouseWarpEnd ,XXX ,XXX ,XXX
,Key_Insert ,Key_mouseWarpNW ,Key_mouseWarpNE ,XXX ,XXX
,XXX ,XXX ,Key_mouseWarpSW ,Key_mouseWarpSE ,XXX ,XXX
,XXX ,___ ,___ ,XXX ,XXX ,___
)
)
/* *INDENT-ON* */
@ -99,6 +172,7 @@ KALEIDOSCOPE_INIT_PLUGINS(
Focus,
FocusEEPROMCommand,
FocusSettingsCommand,
EscapeOneShot,
OneShot,
SpaceCadet,
MouseKeys,
@ -106,18 +180,6 @@ KALEIDOSCOPE_INIT_PLUGINS(
Qukeys
);
const macro_t *macroAction(uint8_t macroIndex, uint8_t keyState) {
switch (macroIndex) {
case QWERTY:
Layer.move(LAYER_QWERTY);
break;
default:
break;
}
return MACRO_NONE;
}
void setup() {
Kaleidoscope.setup();
SpaceCadet.disable();

Loading…
Cancel
Save