Merge remote-tracking branch 'upstream/master' into infinity60
@ -0,0 +1,61 @@
|
|||||||
|
// This is the canonical layout file for the Quantum project. If you want to add another keyboard,
|
||||||
|
// this is the style you want to emulate.
|
||||||
|
|
||||||
|
#include "amj60.h"
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _DEF 0
|
||||||
|
#define _SPC 1
|
||||||
|
|
||||||
|
// dual-role shortcuts
|
||||||
|
#define SPACEDUAL LT(_SPC, KC_SPACE)
|
||||||
|
|
||||||
|
|
||||||
|
// increase readability
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _DEF: Default Layer
|
||||||
|
* ,-----------------------------------------------------------.
|
||||||
|
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \ | ~ |
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* |Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| bspc|
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* |Caps | A| S| D| F| G| H| J| K| L| ;| '| Return |
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* |Sft | Fn0| Z| X| C| V| B| N| M| ,| .| /| Sft |Fn2|
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* |Ctrl|Win |Alt | Space/Fn0 |Alt |Win |Menu|RCtl|
|
||||||
|
* `-----------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_DEF] = KEYMAP_MAX(
|
||||||
|
KC_ESC, 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_BSLS, KC_GRV, \
|
||||||
|
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_BSPC, \
|
||||||
|
KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
|
||||||
|
KC_LSFT, F(0), KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, F(1), \
|
||||||
|
KC_LCTL, KC_LALT, KC_LGUI, SPACEDUAL, KC_RGUI, KC_RALT, KC_RCTL, F(2)),
|
||||||
|
|
||||||
|
/* Keymap 1: F-and-vim Layer, modified with Space (by holding space)
|
||||||
|
* ,-----------------------------------------------------------.
|
||||||
|
* |PrSc| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12| | |
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* | |Paus| Up| [ | ] | | | | ( | ) | | | | Del |
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* | |Lft|Dwn|Rgt| | |Left|Down|Right|Up| | | PLAY |
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* | | | | | < | > | |M0 | | | | | Vol+ | |
|
||||||
|
* |-----------------------------------------------------------|
|
||||||
|
* | | | | |Alt |Prev|Vol-|Next|
|
||||||
|
* `-----------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_SPC] = KEYMAP_MAX(
|
||||||
|
KC_PSCR, 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_PAUS, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
|
||||||
|
_______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, KC_MPLY, \
|
||||||
|
_______, _______, _______, _______, _______, _______, KC_SPACE, M(0), _______, _______, _______, _______, KC_VOLU, _______, \
|
||||||
|
_______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT),
|
||||||
|
|
||||||
|
};
|
@ -0,0 +1,102 @@
|
|||||||
|
#include "amjpad.h"
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
#include "rgblight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Used for SHIFT_ESC
|
||||||
|
#define MODS_CTRL_MASK (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT))
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _BL 0
|
||||||
|
#define _FL 1
|
||||||
|
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _BL: (Base Layer) Default Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |Esc |Setp| - | = |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | F1 | F2 | F3 | F4 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 7 | 8 | 9 | - |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 4 | 5 | 6 | LF |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 1 | 2 | 3 | \ |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Left|Down| Up |Rght|
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
|
||||||
|
[_BL] = MAXKEYMAP(
|
||||||
|
|
||||||
|
KC_ESC, KC_TAB, KC_MINS,KC_EQL, \
|
||||||
|
KC_F1, KC_F2, KC_F3, KC_F4, \
|
||||||
|
KC_P7, KC_P8, KC_P9, KC_PMNS, \
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PENT, \
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_BSLS, \
|
||||||
|
KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |Esc |TAB |BS | = |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | NL | / | * | - |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 7 | 8 | 9 | |
|
||||||
|
* |----|----|----|RST |
|
||||||
|
* | 4 | 5 | 6 | |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 1 | 2 | 3 | |
|
||||||
|
* |----|----|----| En |
|
||||||
|
* | 0 |./FN| |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_FL] = MAXKEYMAP(
|
||||||
|
|
||||||
|
KC_ESC,KC_TAB,KC_BSPC,KC_PEQL, \
|
||||||
|
KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, \
|
||||||
|
KC_P7, KC_P8, KC_P9, RESET, \
|
||||||
|
KC_P4, KC_P5, KC_P6, KC_PENT, \
|
||||||
|
KC_P1, KC_P2, KC_P3, KC_PENT, \
|
||||||
|
KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT),
|
||||||
|
};
|
||||||
|
|
||||||
|
enum function_id {
|
||||||
|
SHIFT_ESC,
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[0] = ACTION_FUNCTION(SHIFT_ESC),
|
||||||
|
};
|
||||||
|
|
||||||
|
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||||
|
static uint8_t shift_esc_shift_mask;
|
||||||
|
switch (id) {
|
||||||
|
case SHIFT_ESC:
|
||||||
|
shift_esc_shift_mask = get_mods()&MODS_CTRL_MASK;
|
||||||
|
if (record->event.pressed) {
|
||||||
|
if (shift_esc_shift_mask) {
|
||||||
|
add_key(KC_GRV);
|
||||||
|
send_keyboard_report();
|
||||||
|
} else {
|
||||||
|
add_key(KC_ESC);
|
||||||
|
send_keyboard_report();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (shift_esc_shift_mask) {
|
||||||
|
del_key(KC_GRV);
|
||||||
|
send_keyboard_report();
|
||||||
|
} else {
|
||||||
|
del_key(KC_ESC);
|
||||||
|
send_keyboard_report();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,65 @@
|
|||||||
|
#include "amjpad.h"
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
#include "rgblight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _BL 0
|
||||||
|
#define _FL 1
|
||||||
|
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _BL: (Base Layer) Default Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* | T | G | B |Spac|
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | R | F | V | Fn |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | E | D | C | OS |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | W | S | X | Alt|
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | Q | A | Z | Ctl|
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | Esc| Tab|Shft| Fn2|
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
|
||||||
|
[_BL] = MAXKEYMAP(
|
||||||
|
|
||||||
|
KC_T, KC_G, KC_B, KC_SPACE,\
|
||||||
|
KC_R, KC_F, KC_V, MO(1), \
|
||||||
|
KC_E, KC_D, KC_C, KC_LGUI, \
|
||||||
|
KC_W, KC_S, KC_X, KC_LALT, \
|
||||||
|
KC_Q, KC_A, KC_Z, KC_LCTL, \
|
||||||
|
KC_TAB, KC_ESC, KC_LSHIFT, MO(1)),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* | 5 | F5 | F11|Spac|
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 4 | F4 | F10| |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 3 | F3 | F9 | OS |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 2 | F2 | F8 | Alt|
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | 1 | F1 | F7 | Ctl|
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | ` | Del|Shft| |
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_FL] = MAXKEYMAP(
|
||||||
|
|
||||||
|
KC_5, KC_F5, KC_F11, _______, \
|
||||||
|
KC_4, KC_F4, KC_F10, _______, \
|
||||||
|
KC_3, KC_F3, KC_F9, _______, \
|
||||||
|
KC_2, KC_F2, KC_F8, _______, \
|
||||||
|
KC_1, KC_F1, KC_F7, _______, \
|
||||||
|
KC_GRV,KC_DEL, _______, _______),
|
||||||
|
};
|
@ -0,0 +1,65 @@
|
|||||||
|
#include "amjpad.h"
|
||||||
|
|
||||||
|
#ifdef RGBLIGHT_ENABLE
|
||||||
|
#include "rgblight.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _BL 0
|
||||||
|
#define _FL 1
|
||||||
|
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _BL: (Base Layer) Default Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |Spac| N | H | Y |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | Fn | M | J | U |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Left| , | K | I |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Down| . | L | O |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | Up | / | ; | P |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Rght| Ret| " |Bspc|
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
|
||||||
|
[_BL] = MAXKEYMAP(
|
||||||
|
|
||||||
|
KC_SPACE, KC_N, KC_H, KC_Y, \
|
||||||
|
MO(1), KC_M, KC_J, KC_U, \
|
||||||
|
KC_LEFT, KC_COMM, KC_K, KC_I, \
|
||||||
|
KC_DOWN, KC_DOT, KC_L, KC_O, \
|
||||||
|
KC_UP, KC_SLASH, KC_SCLN, KC_P, \
|
||||||
|
KC_RIGHT, KC_ENT, KC_QUOT, KC_BSPC),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
* ,-------------------.
|
||||||
|
* |Esc | F12| F6 | 6 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | NL | M | - | 7 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Left| , | = | 8 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Down| . | [ | 9 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* | Up | / | ] | 0 |
|
||||||
|
* |----|----|----|----|
|
||||||
|
* |Rght| Ret| \ | Del|
|
||||||
|
* `-------------------'
|
||||||
|
*/
|
||||||
|
[_FL] = MAXKEYMAP(
|
||||||
|
|
||||||
|
_______, KC_F12, KC_F6, KC_6, \
|
||||||
|
_______, _______, KC_MINS, KC_7, \
|
||||||
|
_______, _______, KC_EQL, KC_8, \
|
||||||
|
_______, _______, KC_LBRC, KC_9, \
|
||||||
|
_______, _______, KC_RBRC, KC_0, \
|
||||||
|
_______, _______, KC_BSLS, KC_DEL),
|
||||||
|
};
|
@ -0,0 +1,107 @@
|
|||||||
|
# Xyverz's Atreus Keymap
|
||||||
|
|
||||||
|
## About this keymap:
|
||||||
|
|
||||||
|
This is the second iteration of my Atreus keymap. The first one was as close to the planck as I could get at the
|
||||||
|
time, but still very much like the original Atreus keymap. I've managed to get things working better now and have
|
||||||
|
implemented (more like copied) the RAISE/LOWER/ADJUST layers. This is a work in progress, but I think I'm closer
|
||||||
|
to a final go with this.
|
||||||
|
|
||||||
|
I'm using MOD_TAP quite a bit in this keymap. On all layers, R4 pinky keys use mod-tap and are SHIFT when held
|
||||||
|
and their normal keys when tapped. In addition, ESC and TAB are also set as Ctrl and ALT respectively when held,
|
||||||
|
and Enter/ALT on the right thumb key for all layers.
|
||||||
|
|
||||||
|
I've enabled persistent keymaps for Qwerty, Dvorak and Colemak layers, similar to the default Planck layouts.
|
||||||
|
|
||||||
|
Recently added: Documentation, Formatting, and another Dvorak layer that has Command on the left thumb, instead of
|
||||||
|
Control.
|
||||||
|
|
||||||
|
## Still to do:
|
||||||
|
|
||||||
|
* Enjoy this revision; figure out new things later.
|
||||||
|
|
||||||
|
### Layer 0: Dvorak layer
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| ' | , | . | P | Y | | F | G | C | R | L |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| A | O | E | U | I | | D | H | T | N | S |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
|Shft ;| Q | J | K | X | CTRL ||Alt / | B | M | W | V |Shft Z|
|
||||||
|
|------+------+------+------+------| ||Enter |------+------+------+------+------|
|
||||||
|
| Esc | Tab | GUI | LOWER| BkSp |------'`------| Spc | RAISE| - | / | \ |
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
||||||
|
### Layer 1: QWERTY layer
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| Q | W | E | R | T | | Y | U | I | O | P |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| A | S | D | F | G | | H | J | K | L | ; |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
|Shft Z| X | C | V | B | CTRL ||Alt / | N | M | , | . |Shft /|
|
||||||
|
|------+------+------+------+------| ||Enter |------+------+------+------+------|
|
||||||
|
| Esc | Tab | GUI | LOWER| BkSp |------'`------| Spc | RAISE| - | ' | \ |
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
||||||
|
### Keymap 2: Colemak layer
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| Q | W | F | P | G | | J | L | U | Y | L |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| A | R | S | T | D | | H | N | E | I | S |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
|Shft Z| X | C | V | B | CTRL ||Alt / | K | M | , | . |Shft /|
|
||||||
|
|------+------+------+------+------| ||Enter |------+------+------+------+------|
|
||||||
|
| Esc | Tab | GUI | LOWER| BkSp |------'`------| Spc | RAISE| - | ' | \ |
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
||||||
|
### Keymap 3: Dvorak for Mac layout
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| ' | , | . | P | Y | | F | G | C | R | L |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| A | O | E | U | I | | D | H | T | N | S |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
|SFT/ ;| Q | J | K | X | CMD ||Alt / | B | M | W | V |SFT/ Z|
|
||||||
|
|------+------+------+------+------| ||Enter |------+------+------+------+------|
|
||||||
|
| Esc | Tab | GUI | LOWER| BkSp |------'`------| Spc | RAISE| - | / | \ |
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
||||||
|
### Keymap 4: LOWER layer
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| ! | @ | # | $ | % | | ^ | & | * | ( | ) |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| CAPS | | UP | | Home | | PgDn | | + | { | } |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
| | Left | Down | Right| End | || | PgUp | Mute | Vol- | Vol+ | |
|
||||||
|
|------+------+------+------+------| || |------+------+------+------+------|
|
||||||
|
| ~ | | | | Del |------'`------| Ins | | | | |
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
||||||
|
|
||||||
|
### Keymap 5: RAISE layer
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| CAPS | | UP | | Home | | PgDn | | = | [ | ] |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
| | Left | Down | Right| End | || | PgUp | Prev | Play | Next | |
|
||||||
|
|------+------+------+------+------| || |------+------+------+------+------|
|
||||||
|
| ` | | | | Del |------'`------| Ins | | | | |
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
||||||
|
### Keymap 6: ADJUST layer
|
||||||
|
|
||||||
|
,----------------------------------. ,----------------------------------.
|
||||||
|
| F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 |
|
||||||
|
|------+------+------+------+------| |------+------+------+------+------|
|
||||||
|
| F11 | | | | | | | PScr | SLck | Paus | F12 |
|
||||||
|
|------+------+------+------+------|------.,------|------+------+------+------+------|
|
||||||
|
| |QWERTY|COLEMK|DVORAK|DVORMC| || | | | | | |
|
||||||
|
|------+------+------+------+------| || |------+------+------+------+------|
|
||||||
|
| | | | | |------'`------| | | | | RESET|
|
||||||
|
`----------------------------------' `----------------------------------'
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
MOUSEKEY_ENABLE = yes
|
||||||
|
EXTRAKEY_ENABLE = yes
|
||||||
|
|
@ -0,0 +1,103 @@
|
|||||||
|
#include "clueboard.h"
|
||||||
|
|
||||||
|
// Helpful defines
|
||||||
|
#define GRAVE_MODS (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)|MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _BL 0
|
||||||
|
#define _FL 1
|
||||||
|
#define _ME 2
|
||||||
|
#define _CL 3
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _BL: Base Layer (Default Layer)
|
||||||
|
*/
|
||||||
|
[_BL] = KEYMAP(
|
||||||
|
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_GRV, KC_BSPC, KC_PGUP, \
|
||||||
|
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_PGDN, \
|
||||||
|
F(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, \
|
||||||
|
KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RO, KC_RSFT, KC_UP, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, KC_MHEN, KC_SPC,KC_SPC, KC_HENK, KC_RGUI, MO(_FL), MO(_ME), KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
*/
|
||||||
|
[_FL] = KEYMAP(
|
||||||
|
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_DEL, KC_HOME, \
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,KC_SLCK, KC_PAUS, _______, _______, KC_PSCR, KC_END, \
|
||||||
|
_______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, KC_PGUP, \
|
||||||
|
_______, _______, _______, _______, _______,_______, _______, _______, MO(_FL), MO(_ME), KC_HOME, KC_PGDN, KC_END),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
*/
|
||||||
|
[_ME] = KEYMAP(
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, KC_MUTE, KC_VOLU, \
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,KC_SLCK, KC_PAUS, _______, _______, _______, KC_VOLD, \
|
||||||
|
_______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______ , _______, _______, \
|
||||||
|
_______, _______, _______, _______, _______,_______, _______, _______, MO(_FL), MO(_ME), KC_MPRV, KC_MPLY, KC_MNXT),
|
||||||
|
|
||||||
|
|
||||||
|
/* Keymap _CL: Control layer
|
||||||
|
*/
|
||||||
|
[_CL] = KEYMAP(
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, RGB_TOG, RGB_VAI, \
|
||||||
|
_______, _______, _______,_______,RESET, _______,_______,_______,_______,_______, _______, _______, _______, _______, RGB_VAD, \
|
||||||
|
_______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
|
||||||
|
MO(_FL), _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, MO(_FL), _______, RGB_SAI, \
|
||||||
|
_______, _______, _______,_______, RGB_MOD, RGB_MOD, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_HUI),
|
||||||
|
};
|
||||||
|
|
||||||
|
/* This is a list of user defined functions. F(N) corresponds to item N
|
||||||
|
of this list.
|
||||||
|
*/
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[0] = ACTION_FUNCTION(0), // Calls action_function()
|
||||||
|
[1] = ACTION_MODS_TAP_KEY(MOD_LCTL, KC_ESC),
|
||||||
|
};
|
||||||
|
|
||||||
|
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||||
|
static uint8_t mods_pressed;
|
||||||
|
static bool mod_flag;
|
||||||
|
|
||||||
|
switch (id) {
|
||||||
|
case 0:
|
||||||
|
/* Handle the combined Grave/Esc key
|
||||||
|
*/
|
||||||
|
mods_pressed = get_mods()&GRAVE_MODS; // Check to see what mods are pressed
|
||||||
|
|
||||||
|
if (record->event.pressed) {
|
||||||
|
/* The key is being pressed.
|
||||||
|
*/
|
||||||
|
if (mods_pressed) {
|
||||||
|
mod_flag = true;
|
||||||
|
add_key(KC_GRV);
|
||||||
|
send_keyboard_report();
|
||||||
|
} else {
|
||||||
|
add_key(KC_ESC);
|
||||||
|
send_keyboard_report();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
/* The key is being released.
|
||||||
|
*/
|
||||||
|
if (mod_flag) {
|
||||||
|
mod_flag = false;
|
||||||
|
del_key(KC_GRV);
|
||||||
|
send_keyboard_report();
|
||||||
|
} else {
|
||||||
|
del_key(KC_ESC);
|
||||||
|
send_keyboard_report();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
if(record->event.pressed) {
|
||||||
|
del_key(KC_ESC);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 28 KiB |
@ -0,0 +1,23 @@
|
|||||||
|
```
|
||||||
|
___ _____ _ _ _ __ __ _ __
|
||||||
|
|__ \ / ____| | | | | | / / / /(_) / /
|
||||||
|
||) | | | | |_ _ ___| |__ ___ __ _ _ __ __| | / /_ / /_ / /
|
||||||
|
|/ / | | | | | | |/ _ \ '_ \ / _ \ / _` | '__/ _` | | '_ \| '_ \ / /
|
||||||
|
|_| | |____| | |_| | __/ |_) | (_) | (_| | | | (_| | | (_) | (_) / / _
|
||||||
|
(_) \_____|_|\__,_|\___|_.__/ \___/ \__,_|_| \__,_| \___/ \___/_/ (_)
|
||||||
|
```
|
||||||
|
|
||||||
|
# Serubin's Clueboard Layout
|
||||||
|
|
||||||
|
This is the layout based on the clueboard default, modified for development on Mac, PC, and Windows. This layout also handles media and volume keys on all the previously listed platforms. Most importantly, Capslock has been replaced by a dual function Esc/Ctrl key. This is particularly handy for use in Vim.
|
||||||
|
|
||||||
|
#### Base Layer
|
||||||
|
![Base Layout Image](layout-base.png)
|
||||||
|
|
||||||
|
#### Fn Layer
|
||||||
|
![Fn Layout Image](layout-fn.png)
|
||||||
|
|
||||||
|
#### Media Layer
|
||||||
|
![Media Layer Image](layout-media.png)
|
||||||
|
|
||||||
|
|
@ -0,0 +1,181 @@
|
|||||||
|
#include "clueboard.h"
|
||||||
|
|
||||||
|
// Each layer gets a name for readability, which is then used in the keymap matrix below.
|
||||||
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
||||||
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
|
// entirely and just use numbers.
|
||||||
|
#define _QWERTY 0
|
||||||
|
#define _COLEMAK 1
|
||||||
|
#define _DVORAK 2
|
||||||
|
#define _FL 3
|
||||||
|
#define _CL 4
|
||||||
|
|
||||||
|
enum planck_keycodes {
|
||||||
|
QWERTY = SAFE_RANGE,
|
||||||
|
COLEMAK,
|
||||||
|
DVORAK
|
||||||
|
};
|
||||||
|
|
||||||
|
// Helpful defines
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
#define XXXXXXX KC_NO
|
||||||
|
#define GRAVE_MODS (MOD_BIT(KC_LSHIFT)|MOD_BIT(KC_RSHIFT)|MOD_BIT(KC_LGUI)|MOD_BIT(KC_RGUI)|MOD_BIT(KC_LALT)|MOD_BIT(KC_RALT))
|
||||||
|
|
||||||
|
// Custom macros
|
||||||
|
#define CTL_ESC CTL_T(KC_ESC) // Tap for Esc, hold for Ctrl
|
||||||
|
#define HPR_TAB ALL_T(KC_TAB) // Tap for Tab, hold for Hyper (Super+Ctrl+Shift+Alt)
|
||||||
|
#define SFT_ENT SFT_T(KC_ENT) // Tap for Enter, hold for Shift
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap _QWERTY: Base Layer (Default Layer)
|
||||||
|
* ,-----------------------------------------------------------. ,---.
|
||||||
|
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \| `| |PgU|
|
||||||
|
* |-----------------------------------------------------------| |---|
|
||||||
|
* |HpTab| Q| W| E| R| T| Y| U| I| O| P| [| ]| BS| |PgD|
|
||||||
|
* |-----------------------------------------------------------| `---'
|
||||||
|
* |CtlEsc| A| S| D| F| G| H| J| K| L| ;| '| | Ent|
|
||||||
|
* |--------------------------------------------------------------.
|
||||||
|
* |Shift| | Z| X| C| V| B| N| M| ,| .| /|Shift| Fn| Up|
|
||||||
|
* |------------------------------------------------------------------.
|
||||||
|
* |Ctrl|Gui|Alt | | Space| Space| |Alt |Gui |Ctrl|Left|Down|Rgt|
|
||||||
|
* `------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_QWERTY] = KEYMAP(
|
||||||
|
F(0), 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_BSLS, KC_GRV, KC_PGUP, \
|
||||||
|
HPR_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_BSPC, KC_PGDN, \
|
||||||
|
CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, XXXXXXX, KC_ENT, \
|
||||||
|
KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT, MO(_FL), KC_UP, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, XXXXXXX, KC_SPC,KC_SPC, XXXXXXX, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
/* Keymap _COLEMAK: Base Layer
|
||||||
|
* ,-----------------------------------------------------------. ,---.
|
||||||
|
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =| \| `| |PgU|
|
||||||
|
* |-----------------------------------------------------------| |---|
|
||||||
|
* |HpTab| Q| W| F| P| G| J| L| U| Y| ;| [| ]| BS| |PgD|
|
||||||
|
* |-----------------------------------------------------------| `---'
|
||||||
|
* |CtlEsc| A| R| S| T| D| H| N| E| I| O| '| | Ent|
|
||||||
|
* |--------------------------------------------------------------.
|
||||||
|
* |Shift| | Z| X| C| V| B| K| M| ,| .| /|Shift| Fn| Up|
|
||||||
|
* |------------------------------------------------------------------.
|
||||||
|
* |Ctrl|Gui|Alt | | Space| Space| |Alt |Gui |Ctrl|Left|Down|Rgt|
|
||||||
|
* `------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_COLEMAK] = KEYMAP(
|
||||||
|
F(0), 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_BSLS, KC_GRV, KC_PGUP, \
|
||||||
|
HPR_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_BSPC, KC_PGDN, \
|
||||||
|
CTL_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, XXXXXXX, KC_ENT, \
|
||||||
|
KC_LSFT, XXXXXXX, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT, MO(_FL), KC_UP, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, XXXXXXX, KC_SPC,KC_SPC, XXXXXXX, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
/* Keymap _DVORAK: Base Layer
|
||||||
|
* ,-----------------------------------------------------------. ,---.
|
||||||
|
* |Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| [| ]| \| `| |PgU|
|
||||||
|
* |-----------------------------------------------------------| |---|
|
||||||
|
* |HpTab| '| ,| .| P| Y| F| G| C| R| L| /| =| BS| |PgD|
|
||||||
|
* |-----------------------------------------------------------| `---'
|
||||||
|
* |CtlEsc| A| O| E| U| I| D| H| T| N| S| -| | Ent|
|
||||||
|
* |--------------------------------------------------------------.
|
||||||
|
* |Shift| | ;| Q| J| K| X| B| M| W| V| Z|Shift| Fn| Up|
|
||||||
|
* |------------------------------------------------------------------.
|
||||||
|
* |Ctrl|Gui|Alt | | Space| Space| |Alt |Gui |Ctrl|Left|Down|Rgt|
|
||||||
|
* `------------------------------------------------------------------'
|
||||||
|
*/
|
||||||
|
[_DVORAK] = KEYMAP(
|
||||||
|
F(0), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_LBRC, KC_RBRC, KC_BSLS, KC_GRV, KC_PGUP, \
|
||||||
|
HPR_TAB, KC_QUOT, KC_COMM,KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_SLSH, KC_EQL, KC_BSPC, KC_PGDN, \
|
||||||
|
CTL_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS, XXXXXXX, KC_ENT, \
|
||||||
|
KC_LSFT, XXXXXXX, KC_SCLN,KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, SFT_ENT, MO(_FL), KC_UP, \
|
||||||
|
KC_LCTL, KC_LGUI, KC_LALT, XXXXXXX, KC_SPC,KC_SPC, XXXXXXX, KC_RALT, KC_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT),
|
||||||
|
|
||||||
|
/* Keymap _FL: Function Layer
|
||||||
|
*/
|
||||||
|
[_FL] = KEYMAP(
|
||||||
|
KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, BL_STEP, \
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,KC_PSCR,KC_SLCK, KC_PAUS, _______, _______, KC_DEL, _______, \
|
||||||
|
_______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, MO(_FL), KC_PGUP, \
|
||||||
|
_______, _______, _______, _______, _______,_______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END),
|
||||||
|
|
||||||
|
/* Keymap _CL: Control layer
|
||||||
|
*/
|
||||||
|
[_CL] = KEYMAP(
|
||||||
|
_______, _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, RGB_TOG, RGB_VAI, \
|
||||||
|
_______, _______, _______,_______,RESET, _______,_______,QWERTY, COLEMAK,DVORAK, _______, _______, _______, _______, RGB_VAD, \
|
||||||
|
_______, _______, MO(_CL),_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, _______, \
|
||||||
|
MO(_FL), _______, _______,_______,_______,_______,_______,_______,_______,_______, _______, _______, _______, MO(_FL), RGB_SAI, \
|
||||||
|
_______, _______, _______,_______, RGB_MOD,RGB_MOD, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_HUI),
|
||||||
|
};
|
||||||
|
|
||||||
|
/* This is a list of user defined functions. F(N) corresponds to item N
|
||||||
|
of this list.
|
||||||
|
*/
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[0] = ACTION_FUNCTION(0), // Calls action_function()
|
||||||
|
};
|
||||||
|
|
||||||
|
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||||
|
static uint8_t mods_pressed;
|
||||||
|
static bool mod_flag;
|
||||||
|
|
||||||
|
switch (id) {
|
||||||
|
case 0:
|
||||||
|
/* Handle the combined Grave/Esc key
|
||||||
|
*/
|
||||||
|
mods_pressed = get_mods()&GRAVE_MODS; // Check to see what mods are pressed
|
||||||
|
|
||||||
|
if (record->event.pressed) {
|
||||||
|
/* The key is being pressed.
|
||||||
|
*/
|
||||||
|
if (mods_pressed) {
|
||||||
|
mod_flag = true;
|
||||||
|
add_key(KC_GRV);
|
||||||
|
send_keyboard_report();
|
||||||
|
} else {
|
||||||
|
add_key(KC_ESC);
|
||||||
|
send_keyboard_report();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
/* The key is being released.
|
||||||
|
*/
|
||||||
|
if (mod_flag) {
|
||||||
|
mod_flag = false;
|
||||||
|
del_key(KC_GRV);
|
||||||
|
send_keyboard_report();
|
||||||
|
} else {
|
||||||
|
del_key(KC_ESC);
|
||||||
|
send_keyboard_report();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void persistent_default_layer_set(uint16_t default_layer) {
|
||||||
|
eeconfig_update_default_layer(default_layer);
|
||||||
|
default_layer_set(default_layer);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||||
|
switch (keycode) {
|
||||||
|
case QWERTY:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
persistent_default_layer_set(1UL<<_QWERTY);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case COLEMAK:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
persistent_default_layer_set(1UL<<_COLEMAK);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
case DVORAK:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
persistent_default_layer_set(1UL<<_DVORAK);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
After Width: | Height: | Size: 128 KiB |
@ -0,0 +1,30 @@
|
|||||||
|
```
|
||||||
|
___ _____ _ _ _ __ __ _ __
|
||||||
|
|__ \ / ____| | | | | | / / / /(_) / /
|
||||||
|
||) | | | | |_ _ ___| |__ ___ __ _ _ __ __| | / /_ / /_ / /
|
||||||
|
|/ / | | | | | | |/ _ \ '_ \ / _ \ / _` | '__/ _` | | '_ \| '_ \ / /
|
||||||
|
|_| | |____| | |_| | __/ |_) | (_) | (_| | | | (_| | | (_) | (_) / / _
|
||||||
|
(_) \_____|_|\__,_|\___|_.__/ \___/ \__,_|_| \__,_| \___/ \___/_/ (_)
|
||||||
|
```
|
||||||
|
|
||||||
|
# smt Clueboard Layout (HHKB variant)
|
||||||
|
|
||||||
|
![Clueboard Layout Image](layout.png)
|
||||||
|
|
||||||
|
This is smt's HHKB variant layout, based on the default layout that comes
|
||||||
|
flashed on every Clueboard. The primary differences from the default are:
|
||||||
|
|
||||||
|
- The Backspace key is moved down into the traditional `\` position
|
||||||
|
- `\` and `` ` `` are assigned to the "split-backspace" positions
|
||||||
|
- The right Shift is split to allow for a Fn key to its right
|
||||||
|
- The modifiers on the right side now mirror the left side (`Alt`/`Super`/`Ctrl`)
|
||||||
|
|
||||||
|
For the most part, it's a straightforward and easy to follow layout. There
|
||||||
|
are a few special keys:
|
||||||
|
|
||||||
|
- The Esc key sends `Esc` when tapped, `` ` `` when `Alt`/`Super`/`Ctrl`/`Fn` is held, or `~` when `Shift` is held
|
||||||
|
- The Tab key sends `Tab` when tapped, or `Super+Ctrl+Alt+Shift` (a.k.a. [Hyper]) when held
|
||||||
|
- The key traditionally in the Caps-Lock position has been re-mapped to send `Esc` when tapped, or `Ctrl` when held
|
||||||
|
- The left Shift key sends `Enter` when tapped, or `Shift` when held
|
||||||
|
|
||||||
|
[Hyper]: http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/
|
@ -0,0 +1,107 @@
|
|||||||
|
/* Copyright 2017 Fred Sundvik
|
||||||
|
*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(VISUALIZER_ENABLE)
|
||||||
|
|
||||||
|
#include "animations.h"
|
||||||
|
#include "visualizer.h"
|
||||||
|
#ifdef LCD_ENABLE
|
||||||
|
#include "lcd_keyframes.h"
|
||||||
|
#endif
|
||||||
|
#ifdef LCD_BACKLIGHT_ENABLE
|
||||||
|
#include "lcd_backlight_keyframes.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef LED_ENABLE
|
||||||
|
#include "led_keyframes.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "visualizer_keyframes.h"
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(LCD_ENABLE) && defined(LCD_BACKLIGHT_ENABLE)
|
||||||
|
|
||||||
|
// Don't worry, if the startup animation is long, you can use the keyboard like normal
|
||||||
|
// during that time
|
||||||
|
keyframe_animation_t default_startup_animation = {
|
||||||
|
.num_frames = 4,
|
||||||
|
.loop = false,
|
||||||
|
.frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(5000), 0},
|
||||||
|
.frame_functions = {
|
||||||
|
lcd_keyframe_enable,
|
||||||
|
backlight_keyframe_enable,
|
||||||
|
lcd_keyframe_draw_logo,
|
||||||
|
backlight_keyframe_animate_color,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
keyframe_animation_t default_suspend_animation = {
|
||||||
|
.num_frames = 4,
|
||||||
|
.loop = false,
|
||||||
|
.frame_lengths = {0, gfxMillisecondsToTicks(1000), 0, 0},
|
||||||
|
.frame_functions = {
|
||||||
|
lcd_keyframe_display_layer_text,
|
||||||
|
backlight_keyframe_animate_color,
|
||||||
|
lcd_keyframe_disable,
|
||||||
|
backlight_keyframe_disable,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(LED_ENABLE)
|
||||||
|
#define CROSSFADE_TIME 1000
|
||||||
|
#define GRADIENT_TIME 3000
|
||||||
|
|
||||||
|
keyframe_animation_t led_test_animation = {
|
||||||
|
.num_frames = 14,
|
||||||
|
.loop = true,
|
||||||
|
.frame_lengths = {
|
||||||
|
gfxMillisecondsToTicks(1000), // fade in
|
||||||
|
gfxMillisecondsToTicks(1000), // no op (leds on)
|
||||||
|
gfxMillisecondsToTicks(1000), // fade out
|
||||||
|
gfxMillisecondsToTicks(CROSSFADE_TIME), // crossfade
|
||||||
|
gfxMillisecondsToTicks(GRADIENT_TIME), // left to rigt (outside in)
|
||||||
|
gfxMillisecondsToTicks(CROSSFADE_TIME), // crossfade
|
||||||
|
gfxMillisecondsToTicks(GRADIENT_TIME), // top_to_bottom
|
||||||
|
0, // mirror leds
|
||||||
|
gfxMillisecondsToTicks(CROSSFADE_TIME), // crossfade
|
||||||
|
gfxMillisecondsToTicks(GRADIENT_TIME), // left_to_right (mirrored, so inside out)
|
||||||
|
gfxMillisecondsToTicks(CROSSFADE_TIME), // crossfade
|
||||||
|
gfxMillisecondsToTicks(GRADIENT_TIME), // top_to_bottom
|
||||||
|
0, // normal leds
|
||||||
|
gfxMillisecondsToTicks(CROSSFADE_TIME), // crossfade
|
||||||
|
|
||||||
|
},
|
||||||
|
.frame_functions = {
|
||||||
|
led_keyframe_fade_in_all,
|
||||||
|
keyframe_no_operation,
|
||||||
|
led_keyframe_fade_out_all,
|
||||||
|
led_keyframe_crossfade,
|
||||||
|
led_keyframe_left_to_right_gradient,
|
||||||
|
led_keyframe_crossfade,
|
||||||
|
led_keyframe_top_to_bottom_gradient,
|
||||||
|
led_keyframe_mirror_orientation,
|
||||||
|
led_keyframe_crossfade,
|
||||||
|
led_keyframe_left_to_right_gradient,
|
||||||
|
led_keyframe_crossfade,
|
||||||
|
led_keyframe_top_to_bottom_gradient,
|
||||||
|
led_keyframe_normal_orientation,
|
||||||
|
led_keyframe_crossfade,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,30 @@
|
|||||||
|
/* Copyright 2017 Fred Sundvik
|
||||||
|
*
|
||||||
|
* 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 KEYBOARDS_ERGODOX_INFINITY_ANIMATIONS_H_
|
||||||
|
#define KEYBOARDS_ERGODOX_INFINITY_ANIMATIONS_H_
|
||||||
|
|
||||||
|
#include "visualizer.h"
|
||||||
|
|
||||||
|
// You can use these default animations, but of course you can also write your own custom ones instead
|
||||||
|
extern keyframe_animation_t default_startup_animation;
|
||||||
|
extern keyframe_animation_t default_suspend_animation;
|
||||||
|
|
||||||
|
// An animation for testing and demonstrating the led support, should probably not be used for real world
|
||||||
|
// cases
|
||||||
|
extern keyframe_animation_t led_test_animation;
|
||||||
|
|
||||||
|
#endif /* KEYBOARDS_ERGODOX_INFINITY_ANIMATIONS_H_ */
|
@ -0,0 +1,123 @@
|
|||||||
|
/* Copyright 2017 Fred Sundvik
|
||||||
|
*
|
||||||
|
* 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 KEYBOARDS_ERGODOX_INFINITY_SIMPLE_VISUALIZER_H_
|
||||||
|
#define KEYBOARDS_ERGODOX_INFINITY_SIMPLE_VISUALIZER_H_
|
||||||
|
|
||||||
|
// Currently we are assuming that both the backlight and LCD are enabled
|
||||||
|
// But it's entirely possible to write a custom visualizer that use only
|
||||||
|
// one of them
|
||||||
|
#ifndef LCD_BACKLIGHT_ENABLE
|
||||||
|
#error This visualizer needs that LCD backlight is enabled
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LCD_ENABLE
|
||||||
|
#error This visualizer needs that LCD is enabled
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "visualizer.h"
|
||||||
|
#include "visualizer_keyframes.h"
|
||||||
|
#include "lcd_keyframes.h"
|
||||||
|
#include "lcd_backlight_keyframes.h"
|
||||||
|
#include "system/serial_link.h"
|
||||||
|
#include "led.h"
|
||||||
|
#include "animations.h"
|
||||||
|
|
||||||
|
static const uint32_t logo_background_color = LCD_COLOR(0x00, 0x00, 0xFF);
|
||||||
|
static const uint32_t initial_color = LCD_COLOR(0, 0, 0);
|
||||||
|
|
||||||
|
static bool initial_update = true;
|
||||||
|
|
||||||
|
// Feel free to modify the animations below, or even add new ones if needed
|
||||||
|
|
||||||
|
static keyframe_animation_t lcd_layer_display = {
|
||||||
|
.num_frames = 1,
|
||||||
|
.loop = false,
|
||||||
|
.frame_lengths = {gfxMillisecondsToTicks(0)},
|
||||||
|
.frame_functions = {lcd_keyframe_display_layer_and_led_states}
|
||||||
|
};
|
||||||
|
|
||||||
|
// The color animation animates the LCD color when you change layers
|
||||||
|
static keyframe_animation_t color_animation = {
|
||||||
|
.num_frames = 2,
|
||||||
|
.loop = false,
|
||||||
|
// Note that there's a 200 ms no-operation frame,
|
||||||
|
// this prevents the color from changing when activating the layer
|
||||||
|
// momentarily
|
||||||
|
.frame_lengths = {gfxMillisecondsToTicks(200), gfxMillisecondsToTicks(500)},
|
||||||
|
.frame_functions = {keyframe_no_operation, backlight_keyframe_animate_color},
|
||||||
|
};
|
||||||
|
|
||||||
|
void initialize_user_visualizer(visualizer_state_t* state) {
|
||||||
|
// The brightness will be dynamically adjustable in the future
|
||||||
|
// But for now, change it here.
|
||||||
|
lcd_backlight_brightness(130);
|
||||||
|
state->current_lcd_color = initial_color;
|
||||||
|
state->target_lcd_color = logo_background_color;
|
||||||
|
initial_update = true;
|
||||||
|
start_keyframe_animation(&default_startup_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// This function should be implemented by the keymap visualizer
|
||||||
|
// Don't change anything else than state->target_lcd_color and state->layer_text as that's the only thing
|
||||||
|
// that the simple_visualizer assumes that you are updating
|
||||||
|
// Also make sure that the buffer passed to state->layer_text remains valid until the previous animation is
|
||||||
|
// stopped. This can be done by either double buffering it or by using constant strings
|
||||||
|
static void get_visualizer_layer_and_color(visualizer_state_t* state);
|
||||||
|
|
||||||
|
void update_user_visualizer_state(visualizer_state_t* state, visualizer_keyboard_status_t* prev_status) {
|
||||||
|
// Add more tests, change the colors and layer texts here
|
||||||
|
// Usually you want to check the high bits (higher layers first)
|
||||||
|
// because that's the order layers are processed for keypresses
|
||||||
|
// You can for check for example:
|
||||||
|
// state->status.layer
|
||||||
|
// state->status.default_layer
|
||||||
|
// state->status.leds (see led.h for available statuses)
|
||||||
|
|
||||||
|
uint32_t prev_color = state->target_lcd_color;
|
||||||
|
const char* prev_layer_text = state->layer_text;
|
||||||
|
|
||||||
|
get_visualizer_layer_and_color(state);
|
||||||
|
|
||||||
|
if (initial_update || prev_color != state->target_lcd_color) {
|
||||||
|
start_keyframe_animation(&color_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (initial_update || prev_layer_text != state->layer_text) {
|
||||||
|
start_keyframe_animation(&lcd_layer_display);
|
||||||
|
}
|
||||||
|
// You can also stop existing animations, and start your custom ones here
|
||||||
|
// remember that you should normally have only one animation for the LCD
|
||||||
|
// and one for the background. But you can also combine them if you want.
|
||||||
|
}
|
||||||
|
|
||||||
|
void user_visualizer_suspend(visualizer_state_t* state) {
|
||||||
|
state->layer_text = "Suspending...";
|
||||||
|
uint8_t hue = LCD_HUE(state->current_lcd_color);
|
||||||
|
uint8_t sat = LCD_SAT(state->current_lcd_color);
|
||||||
|
state->target_lcd_color = LCD_COLOR(hue, sat, 0);
|
||||||
|
start_keyframe_animation(&default_suspend_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
void user_visualizer_resume(visualizer_state_t* state) {
|
||||||
|
state->current_lcd_color = initial_color;
|
||||||
|
state->target_lcd_color = logo_background_color;
|
||||||
|
initial_update = true;
|
||||||
|
start_keyframe_animation(&default_startup_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif /* KEYBOARDS_ERGODOX_INFINITY_SIMPLE_VISUALIZER_H_ */
|
@ -0,0 +1,329 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 Fred Sundvik <fsundvik@gmail.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Currently we are assuming that both the backlight and LCD are enabled
|
||||||
|
// But it's entirely possible to write a custom visualizer that use only
|
||||||
|
// one of them
|
||||||
|
#ifndef LCD_BACKLIGHT_ENABLE
|
||||||
|
#error This visualizer needs that LCD backlight is enabled
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef LCD_ENABLE
|
||||||
|
#error This visualizer needs that LCD is enabled
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "visualizer.h"
|
||||||
|
#include "visualizer_keyframes.h"
|
||||||
|
#include "lcd_keyframes.h"
|
||||||
|
#include "lcd_backlight_keyframes.h"
|
||||||
|
#include "system/serial_link.h"
|
||||||
|
#include "animations.h"
|
||||||
|
|
||||||
|
static const uint32_t logo_background_color = LCD_COLOR(0x00, 0x00, 0xFF);
|
||||||
|
static const uint32_t initial_color = LCD_COLOR(0, 0, 0);
|
||||||
|
|
||||||
|
static const uint32_t led_emulation_colors[4] = {
|
||||||
|
LCD_COLOR(0, 0, 0),
|
||||||
|
LCD_COLOR(255, 255, 255),
|
||||||
|
LCD_COLOR(84, 255, 255),
|
||||||
|
LCD_COLOR(168, 255, 255),
|
||||||
|
};
|
||||||
|
|
||||||
|
static uint32_t next_led_target_color = 0;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
LCD_STATE_INITIAL,
|
||||||
|
LCD_STATE_LAYER_BITMAP,
|
||||||
|
LCD_STATE_BITMAP_AND_LEDS,
|
||||||
|
} lcd_state_t;
|
||||||
|
|
||||||
|
static lcd_state_t lcd_state = LCD_STATE_INITIAL;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
uint8_t led_on;
|
||||||
|
uint8_t led1;
|
||||||
|
uint8_t led2;
|
||||||
|
uint8_t led3;
|
||||||
|
} visualizer_user_data_t;
|
||||||
|
|
||||||
|
// Don't access from visualization function, use the visualizer state instead
|
||||||
|
static visualizer_user_data_t user_data_keyboard = {
|
||||||
|
.led_on = 0,
|
||||||
|
.led1 = LED_BRIGHTNESS_HI,
|
||||||
|
.led2 = LED_BRIGHTNESS_HI,
|
||||||
|
.led3 = LED_BRIGHTNESS_HI,
|
||||||
|
};
|
||||||
|
|
||||||
|
_Static_assert(sizeof(visualizer_user_data_t) <= VISUALIZER_USER_DATA_SIZE,
|
||||||
|
"Please increase the VISUALIZER_USER_DATA_SIZE");
|
||||||
|
|
||||||
|
// Feel free to modify the animations below, or even add new ones if needed
|
||||||
|
|
||||||
|
|
||||||
|
// The color animation animates the LCD color when you change layers
|
||||||
|
static keyframe_animation_t one_led_color = {
|
||||||
|
.num_frames = 1,
|
||||||
|
.loop = false,
|
||||||
|
.frame_lengths = {gfxMillisecondsToTicks(0)},
|
||||||
|
.frame_functions = {backlight_keyframe_set_color},
|
||||||
|
};
|
||||||
|
|
||||||
|
bool swap_led_target_color(keyframe_animation_t* animation, visualizer_state_t* state) {
|
||||||
|
uint32_t temp = next_led_target_color;
|
||||||
|
next_led_target_color = state->target_lcd_color;
|
||||||
|
state->target_lcd_color = temp;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// The color animation animates the LCD color when you change layers
|
||||||
|
static keyframe_animation_t two_led_colors = {
|
||||||
|
.num_frames = 2,
|
||||||
|
.loop = true,
|
||||||
|
.frame_lengths = {gfxMillisecondsToTicks(1000), gfxMillisecondsToTicks(0)},
|
||||||
|
.frame_functions = {backlight_keyframe_set_color, swap_led_target_color},
|
||||||
|
};
|
||||||
|
|
||||||
|
// The LCD animation alternates between the layer name display and a
|
||||||
|
// bitmap that displays all active layers
|
||||||
|
static keyframe_animation_t lcd_bitmap_animation = {
|
||||||
|
.num_frames = 1,
|
||||||
|
.loop = false,
|
||||||
|
.frame_lengths = {gfxMillisecondsToTicks(0)},
|
||||||
|
.frame_functions = {lcd_keyframe_display_layer_bitmap},
|
||||||
|
};
|
||||||
|
|
||||||
|
static keyframe_animation_t lcd_bitmap_leds_animation = {
|
||||||
|
.num_frames = 2,
|
||||||
|
.loop = true,
|
||||||
|
.frame_lengths = {gfxMillisecondsToTicks(2000), gfxMillisecondsToTicks(2000)},
|
||||||
|
.frame_functions = {lcd_keyframe_display_layer_bitmap, lcd_keyframe_display_led_states},
|
||||||
|
};
|
||||||
|
|
||||||
|
void initialize_user_visualizer(visualizer_state_t* state) {
|
||||||
|
// The brightness will be dynamically adjustable in the future
|
||||||
|
// But for now, change it here.
|
||||||
|
lcd_backlight_brightness(130);
|
||||||
|
state->current_lcd_color = initial_color;
|
||||||
|
state->target_lcd_color = logo_background_color;
|
||||||
|
lcd_state = LCD_STATE_INITIAL;
|
||||||
|
start_keyframe_animation(&default_startup_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline bool is_led_on(visualizer_user_data_t* user_data, uint8_t num) {
|
||||||
|
return user_data->led_on & (1u << num);
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint8_t get_led_index_master(visualizer_user_data_t* user_data) {
|
||||||
|
for (int i=0; i < 3; i++) {
|
||||||
|
if (is_led_on(user_data, i)) {
|
||||||
|
return i + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint8_t get_led_index_slave(visualizer_user_data_t* user_data) {
|
||||||
|
uint8_t master_index = get_led_index_master(user_data);
|
||||||
|
if (master_index!=0) {
|
||||||
|
for (int i=master_index; i < 3; i++) {
|
||||||
|
if (is_led_on(user_data, i)) {
|
||||||
|
return i + 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint8_t get_secondary_led_index(visualizer_user_data_t* user_data) {
|
||||||
|
if (is_led_on(user_data, 0) &&
|
||||||
|
is_led_on(user_data, 1) &&
|
||||||
|
is_led_on(user_data, 2)) {
|
||||||
|
return 3;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static uint8_t get_brightness(visualizer_user_data_t* user_data, uint8_t index) {
|
||||||
|
switch (index) {
|
||||||
|
case 1:
|
||||||
|
return user_data->led1;
|
||||||
|
case 2:
|
||||||
|
return user_data->led2;
|
||||||
|
case 3:
|
||||||
|
return user_data->led3;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void update_emulated_leds(visualizer_state_t* state, visualizer_keyboard_status_t* prev_status) {
|
||||||
|
visualizer_user_data_t* user_data_new = (visualizer_user_data_t*)state->status.user_data;
|
||||||
|
visualizer_user_data_t* user_data_old = (visualizer_user_data_t*)prev_status->user_data;
|
||||||
|
|
||||||
|
uint8_t new_index;
|
||||||
|
uint8_t old_index;
|
||||||
|
|
||||||
|
if (is_serial_link_master()) {
|
||||||
|
new_index = get_led_index_master(user_data_new);
|
||||||
|
old_index = get_led_index_master(user_data_old);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
new_index = get_led_index_slave(user_data_new);
|
||||||
|
old_index = get_led_index_slave(user_data_old);
|
||||||
|
}
|
||||||
|
uint8_t new_secondary_index = get_secondary_led_index(user_data_new);
|
||||||
|
uint8_t old_secondary_index = get_secondary_led_index(user_data_old);
|
||||||
|
|
||||||
|
uint8_t old_brightness = get_brightness(user_data_old, old_index);
|
||||||
|
uint8_t new_brightness = get_brightness(user_data_new, new_index);
|
||||||
|
|
||||||
|
uint8_t old_secondary_brightness = get_brightness(user_data_old, old_secondary_index);
|
||||||
|
uint8_t new_secondary_brightness = get_brightness(user_data_new, new_secondary_index);
|
||||||
|
|
||||||
|
if (lcd_state == LCD_STATE_INITIAL ||
|
||||||
|
new_index != old_index ||
|
||||||
|
new_secondary_index != old_secondary_index ||
|
||||||
|
new_brightness != old_brightness ||
|
||||||
|
new_secondary_brightness != old_secondary_brightness) {
|
||||||
|
|
||||||
|
if (new_secondary_index != 0) {
|
||||||
|
state->target_lcd_color = change_lcd_color_intensity(
|
||||||
|
led_emulation_colors[new_index], new_brightness);
|
||||||
|
next_led_target_color = change_lcd_color_intensity(
|
||||||
|
led_emulation_colors[new_secondary_index], new_secondary_brightness);
|
||||||
|
|
||||||
|
stop_keyframe_animation(&one_led_color);
|
||||||
|
start_keyframe_animation(&two_led_colors);
|
||||||
|
} else {
|
||||||
|
state->target_lcd_color = change_lcd_color_intensity(
|
||||||
|
led_emulation_colors[new_index], new_brightness);
|
||||||
|
stop_keyframe_animation(&two_led_colors);
|
||||||
|
start_keyframe_animation(&one_led_color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void update_lcd_text(visualizer_state_t* state, visualizer_keyboard_status_t* prev_status) {
|
||||||
|
if (state->status.leds) {
|
||||||
|
if (lcd_state != LCD_STATE_BITMAP_AND_LEDS ||
|
||||||
|
state->status.leds != prev_status->leds ||
|
||||||
|
state->status.layer != prev_status->layer ||
|
||||||
|
state->status.default_layer != prev_status->default_layer) {
|
||||||
|
|
||||||
|
// NOTE: that it doesn't matter if the animation isn't playing, stop will do nothing in that case
|
||||||
|
stop_keyframe_animation(&lcd_bitmap_animation);
|
||||||
|
|
||||||
|
lcd_state = LCD_STATE_BITMAP_AND_LEDS;
|
||||||
|
// For information:
|
||||||
|
// The logic in this function makes sure that this doesn't happen, but if you call start on an
|
||||||
|
// animation that is already playing it will be restarted.
|
||||||
|
start_keyframe_animation(&lcd_bitmap_leds_animation);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (lcd_state != LCD_STATE_LAYER_BITMAP ||
|
||||||
|
state->status.layer != prev_status->layer ||
|
||||||
|
state->status.default_layer != prev_status->default_layer) {
|
||||||
|
|
||||||
|
stop_keyframe_animation(&lcd_bitmap_leds_animation);
|
||||||
|
|
||||||
|
lcd_state = LCD_STATE_LAYER_BITMAP;
|
||||||
|
start_keyframe_animation(&lcd_bitmap_animation);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void update_user_visualizer_state(visualizer_state_t* state, visualizer_keyboard_status_t* prev_status) {
|
||||||
|
// Check the status here to start and stop animations
|
||||||
|
// You might have to save some state, like the current animation here so that you can start the right
|
||||||
|
// This function is called every time the status changes
|
||||||
|
|
||||||
|
// NOTE that this is called from the visualizer thread, so don't access anything else outside the status
|
||||||
|
// This is also important because the slave won't have access to the active layer for example outside the
|
||||||
|
// status.
|
||||||
|
|
||||||
|
update_emulated_leds(state, prev_status);
|
||||||
|
update_lcd_text(state, prev_status);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void user_visualizer_suspend(visualizer_state_t* state) {
|
||||||
|
state->layer_text = "Suspending...";
|
||||||
|
uint8_t hue = LCD_HUE(state->current_lcd_color);
|
||||||
|
uint8_t sat = LCD_SAT(state->current_lcd_color);
|
||||||
|
state->target_lcd_color = LCD_COLOR(hue, sat, 0);
|
||||||
|
start_keyframe_animation(&default_suspend_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
void user_visualizer_resume(visualizer_state_t* state) {
|
||||||
|
state->current_lcd_color = initial_color;
|
||||||
|
state->target_lcd_color = logo_background_color;
|
||||||
|
lcd_state = LCD_STATE_INITIAL;
|
||||||
|
start_keyframe_animation(&default_startup_animation);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_board_led_on(void){
|
||||||
|
// No board led support
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_1_on(void){
|
||||||
|
user_data_keyboard.led_on |= (1u << 0);
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_2_on(void){
|
||||||
|
user_data_keyboard.led_on |= (1u << 1);
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_3_on(void){
|
||||||
|
user_data_keyboard.led_on |= (1u << 2);
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_board_led_off(void){
|
||||||
|
// No board led support
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_1_off(void){
|
||||||
|
user_data_keyboard.led_on &= ~(1u << 0);
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_2_off(void){
|
||||||
|
user_data_keyboard.led_on &= ~(1u << 1);
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_3_off(void){
|
||||||
|
user_data_keyboard.led_on &= ~(1u << 2);
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_1_set(uint8_t n) {
|
||||||
|
user_data_keyboard.led1 = n;
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_2_set(uint8_t n) {
|
||||||
|
user_data_keyboard.led2 = n;
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ergodox_right_led_3_set(uint8_t n) {
|
||||||
|
user_data_keyboard.led3 = n;
|
||||||
|
visualizer_set_user_data(&user_data_keyboard);
|
||||||
|
}
|
@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 Fred Sundvik
|
||||||
|
|
||||||
|
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 "simple_visualizer.h"
|
||||||
|
|
||||||
|
// This function should be implemented by the keymap visualizer
|
||||||
|
// Don't change anything else than state->target_lcd_color and state->layer_text as that's the only thing
|
||||||
|
// that the simple_visualizer assumes that you are updating
|
||||||
|
// Also make sure that the buffer passed to state->layer_text remains valid until the previous animation is
|
||||||
|
// stopped. This can be done by either double buffering it or by using constant strings
|
||||||
|
static void get_visualizer_layer_and_color(visualizer_state_t* state) {
|
||||||
|
uint8_t saturation = 60;
|
||||||
|
if (state->status.leds & (1u << USB_LED_CAPS_LOCK)) {
|
||||||
|
saturation = 255;
|
||||||
|
}
|
||||||
|
if (state->status.layer & 0x4) {
|
||||||
|
state->target_lcd_color = LCD_COLOR(0, saturation, 0xFF);
|
||||||
|
state->layer_text = "Media & Mouse";
|
||||||
|
}
|
||||||
|
else if (state->status.layer & 0x2) {
|
||||||
|
state->target_lcd_color = LCD_COLOR(168, saturation, 0xFF);
|
||||||
|
state->layer_text = "Symbol";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
state->target_lcd_color = LCD_COLOR(84, saturation, 0xFF);
|
||||||
|
state->layer_text = "Default";
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,331 @@
|
|||||||
|
#include "ergodox.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "version.h"
|
||||||
|
#include "keymap_nordic.h"
|
||||||
|
#include "keymap_norwegian.h"
|
||||||
|
|
||||||
|
#define BASE 0 // default layer
|
||||||
|
#define SYMB 1 // symbols
|
||||||
|
#define MDIA 2 // mouse keys
|
||||||
|
#define DEVL 3 // dev keys
|
||||||
|
|
||||||
|
#define MACRO_PUBLIC 10
|
||||||
|
#define MACRO_PRIVATE 11
|
||||||
|
#define MACRO_PROT 12
|
||||||
|
|
||||||
|
#define MACRO_SHARED 13
|
||||||
|
#define MACRO_CONST 14
|
||||||
|
#define MACRO_DIM 15
|
||||||
|
#define MACRO_STRING 16
|
||||||
|
#define MACRO_INT 17
|
||||||
|
#define MACRO_DEC 18
|
||||||
|
#define MACRO_BOOL 19
|
||||||
|
|
||||||
|
#define MACRO_RETURN 20
|
||||||
|
#define MACRO_NOTHING 21
|
||||||
|
#define MACRO_TODO 22
|
||||||
|
|
||||||
|
#define MACRO_SAVE 24
|
||||||
|
#define MACRO_BUILD 25
|
||||||
|
#define MACRO_DEBUG 26
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap 0: Basic layer
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | L3 | 1 | 2 | 3 | 4 | 5 | LEFT | | RIGHT| 6 | 7 | 8 | 9 | 0 | \ |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | Del | - | , | . | P | Y | LT1 | | LT1 | F | G | C | R | L | Å |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | WIN | A | O | E | U | I |------| |------| D | H | T | N | S | Ä |
|
||||||
|
* |--------+------+------+------+------+------| LT2 | | LT2 |------+------+------+------+------+--------|
|
||||||
|
* | LShift | Ö | Q | J | K | X | | | | B | M | W | V |Z/Ctrl| RShift |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* | CTRL | L1 |AltShf| Left | Right| | Up | Down | [ | ] | ~L1 |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,-------------.
|
||||||
|
* | App | LGui | | Alt |Ctrl/Esc|
|
||||||
|
* ,------|------|------| |------+--------+------.
|
||||||
|
* | | | Home | | PgUp | | |
|
||||||
|
* | Space|Backsp|------| |------| Tab |Enter |
|
||||||
|
* | |ace | End | | PgDn | | |
|
||||||
|
* `--------------------' `----------------------'
|
||||||
|
*/
|
||||||
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
||||||
|
// Otherwise, it needs KC_*
|
||||||
|
[BASE] = KEYMAP( // layer 0 : default
|
||||||
|
// left hand
|
||||||
|
MO(DEVL), KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT,
|
||||||
|
KC_DELT, NO_MINS, KC_COMM, KC_DOT, KC_P, KC_Y, TG(SYMB),
|
||||||
|
KC_LGUI, KC_A, KC_O, KC_E, KC_U, KC_I,
|
||||||
|
KC_LSFT, CTL_T(KC_SCLN), KC_Q, KC_J, KC_K, KC_X, TG(MDIA),
|
||||||
|
CTL_T(KC_NO), MO(SYMB), LALT(KC_LSFT), KC_LEFT,KC_RGHT,
|
||||||
|
ALT_T(KC_APP), KC_LGUI,
|
||||||
|
KC_HOME,
|
||||||
|
KC_SPC,KC_BSPC,KC_END,
|
||||||
|
// right hand
|
||||||
|
KC_RGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSLASH,
|
||||||
|
TG(1), KC_F, KC_G, KC_C, KC_R, KC_L, NO_AM,
|
||||||
|
KC_D, KC_H, KC_T, KC_N, KC_S, NO_AE,
|
||||||
|
TG(MDIA),KC_B, KC_M, KC_W, KC_V, CTL_T(KC_Z), KC_RSFT,
|
||||||
|
KC_UP, KC_DOWN,KC_LBRC,KC_RBRC, KC_FN1,
|
||||||
|
KC_LALT, CTL_T(KC_ESC),
|
||||||
|
KC_PGUP,
|
||||||
|
KC_PGDN,KC_TAB, KC_ENT
|
||||||
|
),
|
||||||
|
/* Keymap 1: Symbol Layer
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | | @ | { | } | [ | ] | | | | < | 7 | 8 | 9 | * | F12 |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | # | ( | ) | \ | / |------| |------| > | 4 | 5 | 6 | + | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | | UND | CUT | COP | PAS | | | | ? | 1 | 2 | 3 | % | |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* | | | | | | | . | 0 | = | | |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,-------------.
|
||||||
|
* | | | | | |
|
||||||
|
* ,------|------|------| |------+------+------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* | | |------| |------| | |
|
||||||
|
* | | | | | | | |
|
||||||
|
* `--------------------' `--------------------'
|
||||||
|
*/
|
||||||
|
// SYMBOLS
|
||||||
|
[SYMB] = KEYMAP(
|
||||||
|
// left hand
|
||||||
|
M(0), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS,
|
||||||
|
KC_TRNS, NO_AT, ALGR(KC_7), ALGR(KC_0), NO_LBRC, NO_RBRC, KC_TRNS,
|
||||||
|
KC_TRNS, KC_HASH, NO_LPRN, NO_RPRN, ALGR(KC_MINS), NO_SLSH,
|
||||||
|
KC_TRNS, KC_TRNS, LCTL(KC_Z), LCTL(KC_X), LCTL(KC_C), LCTL(KC_V), KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS,KC_TRNS,KC_TRNS,
|
||||||
|
// right hand
|
||||||
|
KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||||
|
KC_TRNS, NO_LESS, KC_7, KC_8, KC_9, KC_KP_ASTERISK, KC_F12,
|
||||||
|
LSFT(NO_LESS), KC_4, KC_5, KC_6, KC_KP_PLUS, KC_TRNS,
|
||||||
|
KC_TRNS, NO_QUES, KC_1, KC_2, KC_3, LSFT(KC_5), KC_TRNS,
|
||||||
|
KC_DOT,KC_0, LSFT(KC_0), KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
/* Keymap 2: Media and mouse keys
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | | | | | | | | | | | | | | | |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | | | | MsUp | | | | | | | | | | | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | |MsLeft|MsDown|MsRght| |------| |------| | | | | | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | | | | | | | | | | | | | | |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* | | | | Lclk | Rclk | | | | | | |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,-------------.
|
||||||
|
* | | | | | |
|
||||||
|
* ,------|------|------| |------+------+------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* | | |------| |------| | |
|
||||||
|
* | | | | | | | |
|
||||||
|
* `--------------------' `--------------------'
|
||||||
|
*/
|
||||||
|
// MEDIA AND MOUSE
|
||||||
|
[MDIA] = KEYMAP(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
// right hand
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
/* Keymap 3: Developer keys in vb.net
|
||||||
|
* shortened in layout beneth, for example int-> integer
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | | | | | | | | | | | | | | | |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | | Save |Build |Debug | | | | | | bool | int |string| dec | Todo | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | | | | | |------| |------| priv | publ |shared| prot | | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | | | | | | | | | const| dim |return|nothin| | |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* | | | | | | | | | | | |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,-------------.
|
||||||
|
* | | | | | |
|
||||||
|
* ,------|------|------| |------+------+------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* | | |------| |------| | |
|
||||||
|
* | | | | | | | |
|
||||||
|
* `--------------------' `--------------------'
|
||||||
|
*/
|
||||||
|
// MEDIA AND MOUSE
|
||||||
|
[DEVL] = KEYMAP(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, M(MACRO_SAVE), M(MACRO_BUILD), M(MACRO_DEBUG), KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
// right hand
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, M(MACRO_BOOL), M(MACRO_INT), M(MACRO_STRING), M(MACRO_DEC), M(MACRO_TODO), KC_TRNS,
|
||||||
|
M(MACRO_PRIVATE), M(MACRO_PUBLIC), M(MACRO_SHARED), M(MACRO_PROT), KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, M(MACRO_CONST), M(MACRO_DIM), M(MACRO_RETURN), M(MACRO_NOTHING), 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
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[1] = ACTION_LAYER_TAP_TOGGLE(SYMB) // FN1 - Momentary Layer 1 (Symbols)
|
||||||
|
};
|
||||||
|
|
||||||
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||||
|
{
|
||||||
|
// MACRODOWN only works in this function
|
||||||
|
switch(id) {
|
||||||
|
case 0:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
register_code(KC_RSFT);
|
||||||
|
} else {
|
||||||
|
unregister_code(KC_RSFT);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_PUBLIC:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(P), T(U), T(B), T(L), T(I), T(C), T(SPACE),END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_PRIVATE:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(P), T(R), T(I), T(V), T(A), T(T), T(E), T(SPACE),END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_PROT:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(P), T(R), T(O), T(T), T(E), T(C), T(T), T(E), T(D), T(SPACE),END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_SHARED:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(S), T(H), T(A), T(R), T(E), T(D), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_CONST:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(C), T(O), T(N), T(S), T(T), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_DIM:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(D), T(I), T(M), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_STRING:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(S), T(T), T(R), T(I), T(N), T(G), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_BOOL:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(B), T(O), T(O), T(L), T(E), T(A), T(N), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_INT:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(I), T(N), T(T), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_DEC:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(D), T(E), T(C), T(I), T(M), T(A), T(L), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_RETURN:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(R), T(E), T(T), T(U),T(R),T(N), T(SPACE), END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_NOTHING:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( T(N), T(O), T(T), T(H), T(I), T(N), T(G), T(SPACE), END);
|
||||||
|
}
|
||||||
|
case MACRO_TODO:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( KC_BSLASH, D(LSHIFT) ,T(T), T(O), T(D), T(O), KC_DOT, U(LSHIFT), T(SPACE),END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_SAVE:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( D(LCTL) ,T(S), U(LCTL),END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_BUILD:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( D(LCTL), D(LSHIFT) ,T(B), U(LSHIFT), U(LCTL),END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case MACRO_DEBUG:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( KC_F5 ,END);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return MACRO_NONE;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Runs just one time when the keyboard initializes.
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Runs constantly in the background, in a loop.
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
uint8_t layer = biton32(layer_state);
|
||||||
|
|
||||||
|
ergodox_board_led_off();
|
||||||
|
ergodox_right_led_1_off();
|
||||||
|
ergodox_right_led_2_off();
|
||||||
|
ergodox_right_led_3_off();
|
||||||
|
switch (layer) {
|
||||||
|
// TODO: Make this relevant to the ErgoDox EZ.
|
||||||
|
case 1:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// none
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
@ -0,0 +1,28 @@
|
|||||||
|
# ErgoDox EZ Dvorak Programmer SWEDISH
|
||||||
|
|
||||||
|
Dvorak layout adjusted for a suitable programmer layout and swedish special characters added:
|
||||||
|
|
||||||
|
* åäö characters added
|
||||||
|
* Layout for common vb.net keywords
|
||||||
|
* Common Visual Studio commands like Save, Build, Debug
|
||||||
|
|
||||||
|
TODO:
|
||||||
|
|
||||||
|
* (Layer 4 is qwerty (for easier gaming & less fortunate keyboard users)) Like this idea, will add it later on
|
||||||
|
|
||||||
|
Known issues:
|
||||||
|
|
||||||
|
* Keymap 2 modifier has not gotten its place yet..
|
||||||
|
* Print screen, where?
|
||||||
|
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
* 2017-05-16
|
||||||
|
* Initial release
|
||||||
|
|
||||||
|
# Author
|
||||||
|
Christian Westerlund
|
||||||
|
cwesterlund @ github
|
||||||
|
|
||||||
|
Thanks to the author of keymap csharp_dev for inspiration!
|
@ -0,0 +1,69 @@
|
|||||||
|
# ErgoDox Familiar Layout
|
||||||
|
Familiar layout for those who regularly switch back and forth from ErgoDox to regular QWERTY.
|
||||||
|
|
||||||
|
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](../../../../license_GPLv3.md../../../../license_GPLv3.md) [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg)](https://github.com/RichardLitt/standard-readme)
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
- [Background](#background)
|
||||||
|
- [Install](#install)
|
||||||
|
- [Usage](#usage)
|
||||||
|
- [Layers](#layers)
|
||||||
|
- [Contribute](#contribute)
|
||||||
|
- [Issues](#issues)
|
||||||
|
- [License](#license)
|
||||||
|
|
||||||
|
## Background
|
||||||
|
|
||||||
|
This layout is built to be as familiar as possible for users coming directly from a default (QWERTY US) keyboard, while gaining as much advantage as possible from the ErgoDox and QMK featureset. I use an ErgoDoxEZ at home, but I don't have a regular office (CS grad student) so I regularly use either my laptop or a default-setup lab computer; I context switch daily so this layout is meant to reduce the mental overhead as much as possible.
|
||||||
|
|
||||||
|
The default ErgoDoxEZ layout is probably more optimized as a solo daily driver - as are a lot of the others available keymaps. The focus of this layout is to get as much from the 'Dox as possible without overly disrupting long-established muscle memory.
|
||||||
|
|
||||||
|
Key features of the familiar layout:
|
||||||
|
1. QWERTY default layout.
|
||||||
|
1. International symbols layer, mapped in the US-International layout default positions, through [UCIS](https://github.com/qmk/qmk_firmware/wiki/Unicode-and-additional-language-support#ucis_enable).
|
||||||
|
1. Numpad layer on right hand.
|
||||||
|
1. Thumb cluster holds spacebar, ALT, and access to secondary layers.
|
||||||
|
1. Function-layer arrow keys in both the first-person-shooter (actually ESDF instead of WASD) and vim (HJKL) locations.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
If you are on Windows or Mac, choose the proper line in [`keymap.c`](keymap.c) for [unicode/international character support](https://github.com/qmk/qmk_firmware/wiki/Unicode-and-additional-language-support#ucis_enable) (starts at line 235).
|
||||||
|
```c
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
set_unicode_input_mode(UC_LNX); // Linux
|
||||||
|
//set_unicode_input_mode(UC_OSX); // Mac OSX
|
||||||
|
//set_unicode_input_mode(UC_WIN); // Windows (with registry key, see wiki)
|
||||||
|
//set_unicode_input_mode(UC_WINC); // Windows (with WinCompose, see wiki)
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
For instructions on building and installing this keymap, [go to the wiki](https://github.com/qmk/qmk_firmware/tree/master/keyboards/ergodox#build-dependencies). Below is the command for me; it may be different for you.
|
||||||
|
```sh
|
||||||
|
$ make ergodox-ez-familiar-teensy
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
[![Familiar Layout](familiar.png)](http://www.keyboard-layout-editor.com/#/gists/13508a9f99cff381d58b7be6f7dcc644)
|
||||||
|
|
||||||
|
### Layers
|
||||||
|
1. Base Layer: QWERTY, with arrow keys at bottom right.
|
||||||
|
1. UCIS Layer: US-International symbols layer, plus —. Accessed by toggling the `INTL` layer using the UCIS key (bottom of left thumb cluster).
|
||||||
|
1. UCIS-Shifted Layer: Making shift work for UCIS characters. An ugly workaround. Any ideas? Accessed through holding shift while the UCIS layer is active (toggles the `INSF` layer).
|
||||||
|
1. Numpad Layer: Right hand number pad. Accessed by toggling the `NUMP` layer using the NPAD key (bottom of right thumb cluster).
|
||||||
|
1. Function Layer: F1-F12, arrows on ESDF and HJKL, media player controls. Accessed by holding either FN key (center key of each thumb cluster), which toggles the `ARRW` layer. I know, I need to work on my naming conventions.
|
||||||
|
|
||||||
|
## Contribute
|
||||||
|
|
||||||
|
[Contributor Covenant](http://contributor-covenant.org/)
|
||||||
|
|
||||||
|
I'm terrible at this; I have no background in human-computer interaction, kinesiology, or keyboard-ology. Please send comments/issues/pull requests/angry tweets/etc. If you think there is a better way to take advantage of the ErgoDox/QMK comination without straying far from 84/101-key QWERTY, I want to know it.
|
||||||
|
|
||||||
|
### Issues
|
||||||
|
1. The top two keys of the right thumb cluster are currently unused. I wanted them for screen brightness, but I haven't found a solution I like.
|
||||||
|
1. The `'`, `"`, `[`, and `]` keys are terrible to access; I want to put them somewhere else but I haven't figured out where.
|
||||||
|
1. The `INSF` layer is an ugly workaround. I should write a function for doing different things in the `INTL` layer depending on whether SHIFT is being held. Or something. Ideas?
|
||||||
|
|
||||||
|
## License
|
||||||
|
QMK is licensed ([mostly](https://github.com/qmk/qmk_firmware/issues/1038)) under the [GPLv2](blob/master/license_GPLv2.md). Accordingly, to whatever extent applicable, this keymap is licensed under the [GPLv3](../../../../license_GPLv3.md).
|
After Width: | Height: | Size: 146 KiB |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 252 KiB |
After Width: | Height: | Size: 1.4 MiB |
@ -0,0 +1,187 @@
|
|||||||
|
// Netable differences vs. the default firmware for the ErgoDox EZ:
|
||||||
|
// 1. The Cmd key is now on the right side, making Cmd+Space easier.
|
||||||
|
// 2. The media keys work on OSX (But not on Windows).
|
||||||
|
#include "ergodox.h"
|
||||||
|
#include "debug.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
|
||||||
|
#define BASE 0 // default layer
|
||||||
|
#define SYMB 1 // symbols
|
||||||
|
#define MDIA 2 // media keys
|
||||||
|
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
/* Keymap 0: Basic layer
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | = | 1 | 2 | 3 | 4 | 5 | LEFT | | RIGHT| 6 | 7 | 8 | 9 | 0 | - |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | Tab | Q | W | E | R | T | L1 | | L1 | Y | U | I | O | P | \ |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | LCtl | A | S | D | F | G |------| |------| H | J | K | L |; / L2| LGui |
|
||||||
|
* |--------+------+------+------+------+------| BkSp | | Meh |------+------+------+------+------+--------|
|
||||||
|
* | LShift |Z/Ctrl| X | C | V | B | | | | N | M | , | . |//Ctrl| RShift |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* |Grv/L1| '" |AltShf| Left | Right| | Up | Down | [ | ] | ~L1 |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,---------------.
|
||||||
|
* | BkSp | LGui | | Alt |Ctrl/Esc|
|
||||||
|
* ,------|------|------| |------+--------+------.
|
||||||
|
* | | | Home | | PgUp | | |
|
||||||
|
* | Space|LANG1 |------| |------|LANG2 |Enter |
|
||||||
|
* | /LGui| | End | | PgDn | | |
|
||||||
|
* `--------------------' `----------------------'
|
||||||
|
*/
|
||||||
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
||||||
|
// Otherwise, it needs KC_*
|
||||||
|
[BASE] = KEYMAP( // layer 0 : default
|
||||||
|
// left hand
|
||||||
|
KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_LEFT,
|
||||||
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(SYMB),
|
||||||
|
KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G,
|
||||||
|
KC_LSFT, CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B, KC_BSPC,
|
||||||
|
LT(SYMB,KC_GRV),KC_QUOT, LALT(KC_LSFT), KC_LEFT,KC_RGHT,
|
||||||
|
KC_BSPC, KC_LGUI,
|
||||||
|
KC_HOME,
|
||||||
|
MT(MOD_LGUI, KC_SPC),KC_LANG1,KC_END,
|
||||||
|
// right hand
|
||||||
|
KC_RGHT, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
|
||||||
|
TG(SYMB), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
|
||||||
|
KC_H, KC_J, KC_K, KC_L, LT(MDIA, KC_SCLN),KC_LGUI,
|
||||||
|
MEH_T(KC_NO),KC_N, KC_M, KC_COMM,KC_DOT, CTL_T(KC_SLSH), KC_RSFT,
|
||||||
|
KC_UP, KC_DOWN,KC_LBRC,KC_RBRC, KC_FN1,
|
||||||
|
KC_LALT, CTL_T(KC_ESC),
|
||||||
|
KC_PGUP,
|
||||||
|
KC_PGDN,KC_LANG2, KC_ENT
|
||||||
|
),
|
||||||
|
/* Keymap 1: Symbol Layer
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | | ! | @ | { | } | | | | | | Up | 7 | 8 | 9 | * | F12 |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | # | $ | ( | ) | ` |------| |------| Down | 4 | 5 | 6 | + | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* | | | | | | | | . | 0 | = | |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,-------------.
|
||||||
|
* | | | | | |
|
||||||
|
* ,------|------|------| |------+------+------.
|
||||||
|
* | | | | | | | |
|
||||||
|
* | | |------| |------| | |
|
||||||
|
* | | | | | | | |
|
||||||
|
* `--------------------' `--------------------'
|
||||||
|
*/
|
||||||
|
// SYMBOLS
|
||||||
|
[SYMB] = KEYMAP(
|
||||||
|
// left hand
|
||||||
|
KC_TRNS,KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_TRNS,
|
||||||
|
KC_TRNS,KC_EXLM,KC_AT, KC_LCBR,KC_RCBR,KC_PIPE,KC_TRNS,
|
||||||
|
KC_TRNS,KC_HASH,KC_DLR, KC_LPRN,KC_RPRN,KC_GRV,
|
||||||
|
KC_TRNS,KC_PERC,KC_CIRC,KC_LBRC,KC_RBRC,KC_TILD,KC_TRNS,
|
||||||
|
KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
|
||||||
|
KC_TRNS,KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS,KC_TRNS,KC_TRNS,
|
||||||
|
// right hand
|
||||||
|
KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
||||||
|
KC_TRNS, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12,
|
||||||
|
KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, KC_TRNS,
|
||||||
|
KC_TRNS,KC_DOT, KC_0, KC_EQL, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS
|
||||||
|
),
|
||||||
|
/* Keymap 2: Media and mouse keys
|
||||||
|
*
|
||||||
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
||||||
|
* | | | | | | | | | | | | | | | |
|
||||||
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
||||||
|
* | | | | MsUp | | | | | | | | | | | |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | |MsLeft|MsDown|MsRght| |------| |------| | | | | | Play |
|
||||||
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
||||||
|
* | | | | | | | | | | | | Prev | Next | | |
|
||||||
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
||||||
|
* | | | | Lclk | Rclk | |VolUp |VolDn | Mute | | |
|
||||||
|
* `----------------------------------' `----------------------------------'
|
||||||
|
* ,-------------. ,-------------.
|
||||||
|
* | | | | | |
|
||||||
|
* ,------|------|------| |------+------+------.
|
||||||
|
* | | | | | | |Brwser|
|
||||||
|
* | | |------| |------| |Back |
|
||||||
|
* | | | | | | | |
|
||||||
|
* `--------------------' `--------------------'
|
||||||
|
*/
|
||||||
|
// MEDIA AND MOUSE
|
||||||
|
[MDIA] = KEYMAP(
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_MS_U, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_BTN1, KC_BTN2,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
// right hand
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_MPLY,
|
||||||
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_MPRV, KC_MNXT, KC_TRNS, KC_TRNS,
|
||||||
|
KC_VOLU, KC_VOLD, KC_MUTE, KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS,
|
||||||
|
KC_TRNS,
|
||||||
|
KC_TRNS, KC_TRNS, KC_WBAK
|
||||||
|
),
|
||||||
|
};
|
||||||
|
|
||||||
|
const uint16_t PROGMEM fn_actions[] = {
|
||||||
|
[1] = ACTION_LAYER_TAP_TOGGLE(SYMB) // FN1 - Momentary Layer 1 (Symbols)
|
||||||
|
};
|
||||||
|
|
||||||
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
||||||
|
{
|
||||||
|
// MACRODOWN only works in this function
|
||||||
|
switch(id) {
|
||||||
|
case 0:
|
||||||
|
if (record->event.pressed) {
|
||||||
|
register_code(KC_RSFT);
|
||||||
|
} else {
|
||||||
|
unregister_code(KC_RSFT);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return MACRO_NONE;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Runs just one time when the keyboard initializes.
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Runs constantly in the background, in a loop.
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
|
||||||
|
uint8_t layer = biton32(layer_state);
|
||||||
|
|
||||||
|
ergodox_board_led_off();
|
||||||
|
ergodox_right_led_1_off();
|
||||||
|
ergodox_right_led_2_off();
|
||||||
|
ergodox_right_led_3_off();
|
||||||
|
switch (layer) {
|
||||||
|
// TODO: Make this relevant to the ErgoDox EZ.
|
||||||
|
case 1:
|
||||||
|
ergodox_right_led_1_on();
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
ergodox_right_led_2_on();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
// none
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
@ -0,0 +1,15 @@
|
|||||||
|
# ErgoDox EZ Default Configuration
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
* Dec 2016:
|
||||||
|
* Added LED keys
|
||||||
|
* Refreshed layout graphic, comes from http://configure.ergodox-ez.com now.
|
||||||
|
* Sep 22, 2016:
|
||||||
|
* Created a new key in layer 1 (bottom-corner key) that resets the EEPROM.
|
||||||
|
* Feb 2, 2016 (V1.1):
|
||||||
|
* Made the right-hand quote key double as Cmd/Win on hold. So you get ' when you tap it, " when you tap it with Shift, and Cmd or Win when you hold it. You can then use it as a modifier, or just press and hold it for a moment (and then let go) to send a single Cmd or Win keystroke (handy for opening the Start menu on Windows).
|
||||||
|
|
||||||
|
This is what we ship with out of the factory. :) The image says it all:
|
||||||
|
|
||||||
|
![Default](default_firmware_v1.2-2.png)
|
@ -0,0 +1,23 @@
|
|||||||
|
# Build Options
|
||||||
|
# change to "no" to disable the options, or define them in the Makefile in
|
||||||
|
# the appropriate keymap folder that will get included automatically
|
||||||
|
#
|
||||||
|
BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
|
||||||
|
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
|
||||||
|
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
|
||||||
|
CONSOLE_ENABLE = no # Console for debug(+400)
|
||||||
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||||
|
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
|
MIDI_ENABLE = no # MIDI controls
|
||||||
|
AUDIO_ENABLE = no # Audio output on port C6
|
||||||
|
UNICODE_ENABLE = no # Unicode
|
||||||
|
UNICODEMAP_ENABLE = yes # unicodemap
|
||||||
|
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||||
|
RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. Do not enable this with audio at the same time.
|
||||||
|
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||||
|
TAP_DANCE_ENABLE = yes
|
||||||
|
|
||||||
|
ifndef QUANTUM_DIR
|
||||||
|
include ../../../../Makefile
|
||||||
|
endif
|
@ -0,0 +1,24 @@
|
|||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "../../config.h"
|
||||||
|
|
||||||
|
#define TAPPING_TERM 300
|
||||||
|
#define LEADER_TIMEOUT 400
|
||||||
|
|
||||||
|
#define DISABLE_SPACE_CADET_ROLLOVER
|
||||||
|
|
||||||
|
#define UNICODE_TYPE_DELAY 0
|
||||||
|
|
||||||
|
#define LSPO_KEY KC_9
|
||||||
|
#define RSPC_KEY KC_0
|
||||||
|
|
||||||
|
#define MOUSEKEY_INTERVAL 20
|
||||||
|
#define MOUSEKEY_DELAY 0
|
||||||
|
#define MOUSEKEY_TIME_TO_MAX 60
|
||||||
|
#define MOUSEKEY_MAX_SPEED 7
|
||||||
|
#define MOUSEKEY_WHEEL_DELAY 0
|
||||||
|
// place overrides here
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,224 @@
|
|||||||
|
#include "frosty_flake.h"
|
||||||
|
#include "action_layer.h"
|
||||||
|
#include "eeconfig.h"
|
||||||
|
#include "process_unicode.h"
|
||||||
|
#include "process_unicodemap.h"
|
||||||
|
#include "quantum.h"
|
||||||
|
|
||||||
|
#define _______ KC_TRNS
|
||||||
|
|
||||||
|
|
||||||
|
//declarations for tap dancing emojis
|
||||||
|
void register_hex32(uint32_t hex);
|
||||||
|
void cycleEmojis(qk_tap_dance_state_t *state, void *user_data);
|
||||||
|
void cycleAnimals(qk_tap_dance_state_t *state, void *user_data);
|
||||||
|
void cycleHands(qk_tap_dance_state_t *state, void *user_data);
|
||||||
|
|
||||||
|
void tap(uint16_t keycode){
|
||||||
|
register_code(keycode);
|
||||||
|
unregister_code(keycode);
|
||||||
|
};
|
||||||
|
|
||||||
|
//Tap Dance Declarations
|
||||||
|
enum taps{
|
||||||
|
TD_CTCPS = 0,
|
||||||
|
EMOJIS,
|
||||||
|
ANIMAL,
|
||||||
|
HAND
|
||||||
|
};
|
||||||
|
|
||||||
|
enum unicode_name { // split every five emojis
|
||||||
|
THINK = 1, // thinking face 🤔
|
||||||
|
GRIN, // grinning face 😊
|
||||||
|
SMRK, // smirk 😏
|
||||||
|
WEARY, // good shit 😩
|
||||||
|
UNAMU, // unamused 😒
|
||||||
|
|
||||||
|
SNEK, // snke 🐍
|
||||||
|
PENGUIN, // 🐧
|
||||||
|
DRAGON, // 🐉
|
||||||
|
MONKEY, // 🐒
|
||||||
|
CHICK, // 🐥
|
||||||
|
|
||||||
|
OKOK, // 👌
|
||||||
|
EFFU, // 🖕
|
||||||
|
INUP, // 👆
|
||||||
|
THUP, // 👍
|
||||||
|
THDN, // 👎
|
||||||
|
|
||||||
|
BBB, // dat B 🅱
|
||||||
|
POO, // poop 💩
|
||||||
|
HUNDR, // 100 💯
|
||||||
|
EGGPL, // EGGPLANT 🍆
|
||||||
|
WATER, // wet 💦
|
||||||
|
|
||||||
|
LIT // fire 🔥
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
enum my_macros {
|
||||||
|
NEWDESK = 0,
|
||||||
|
LEFTDESK,
|
||||||
|
RIGHTDESK,
|
||||||
|
CLOSEDESK
|
||||||
|
};
|
||||||
|
enum quick {
|
||||||
|
DISFACE = 0,
|
||||||
|
TFLIP,
|
||||||
|
TPUT,
|
||||||
|
SHRUG,
|
||||||
|
FACE,
|
||||||
|
RANDIG
|
||||||
|
};
|
||||||
|
|
||||||
|
// Tap Dance Definitions
|
||||||
|
qk_tap_dance_action_t tap_dance_actions[] = {
|
||||||
|
// Tap once for CTRL, twice for Caps Lock
|
||||||
|
[TD_CTCPS] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_CAPS),
|
||||||
|
[EMOJIS] = ACTION_TAP_DANCE_FN_ADVANCED(cycleEmojis, NULL, NULL),
|
||||||
|
[ANIMAL] = ACTION_TAP_DANCE_FN_ADVANCED(cycleAnimals, NULL, NULL),
|
||||||
|
[HAND] = ACTION_TAP_DANCE_FN_ADVANCED(cycleHands, NULL, NULL)
|
||||||
|
// Other declarations would go here, separated by commas, if you have them
|
||||||
|
};
|
||||||
|
|
||||||
|
// macros
|
||||||
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
||||||
|
switch(id) {
|
||||||
|
case NEWDESK: // this would trigger when you hit a key mapped as M(0)
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( I(1), D(LGUI), D(LCTL), D(D), U(LGUI), U(LCTL), U(D), END ); // NEW DESKTOP
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case LEFTDESK: // this would trigger when you hit a key mapped as M(0)
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( I(1), D(LGUI), D(LCTL), D(LEFT), U(LGUI), U(LCTL), U(LEFT), END ); // LEFT DESKTOP
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case RIGHTDESK: // this would trigger when you hit a key mapped as M(0)
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( I(1), D(LGUI), D(LCTL), D(RGHT), U(LGUI), U(LCTL), U(RGHT), END ); // RIGHT DESKTOP
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case CLOSEDESK: // this would trigger when you hit a key mapped as M(0)
|
||||||
|
if (record->event.pressed) {
|
||||||
|
return MACRO( I(1), D(LGUI), D(LCTL), D(F4), U(LGUI), U(LCTL), U(F4), END ); // CLOSE DESKTOP
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return MACRO_NONE;
|
||||||
|
};
|
||||||
|
|
||||||
|
// emojis in unicode
|
||||||
|
const uint32_t PROGMEM unicode_map[] = {
|
||||||
|
[THINK] = 0x1F914,
|
||||||
|
[GRIN] = 0x1F600,
|
||||||
|
[BBB] = 0x1F171,
|
||||||
|
[POO] = 0x1F4A9,
|
||||||
|
[HUNDR] = 0x1F4AF,
|
||||||
|
[SMRK] = 0x1F60F,
|
||||||
|
[WEARY] = 0x1F629,
|
||||||
|
[EGGPL] = 0x1F346,
|
||||||
|
[WATER] = 0x1F4A6,
|
||||||
|
[LIT] = 0x1F525,
|
||||||
|
[UNAMU] = 0x1F612,
|
||||||
|
[SNEK] = 0x1F40D,
|
||||||
|
[PENGUIN] = 0x1F427,
|
||||||
|
[MONKEY] = 0x1F412,
|
||||||
|
[CHICK] = 0x1F425,
|
||||||
|
[DRAGON] = 0x1F409,
|
||||||
|
[OKOK] = 0x1F44C,
|
||||||
|
[EFFU] = 0x1F595,
|
||||||
|
[INUP] = 0x1F446,
|
||||||
|
[THDN] = 0x1F44E,
|
||||||
|
[THUP] = 0x1F44D
|
||||||
|
};
|
||||||
|
// Layouts
|
||||||
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
[0] = KEYMAP(\
|
||||||
|
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_SLCK,KC_PAUS, \
|
||||||
|
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_INS,KC_HOME,KC_PGUP, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
|
||||||
|
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_DEL, KC_END,KC_PGDN, KC_P7, KC_P8, KC_P9,KC_PPLS, \
|
||||||
|
KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, \
|
||||||
|
KC_LSPO,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSPC, KC_UP, KC_P1, KC_P2, KC_P3,KC_PENT, \
|
||||||
|
TD(TD_CTCPS),KC_LGUI,KC_LALT, KC_SPC, KC_LEAD,KC_RGUI, KC_APP,MO(1) , KC_LEFT,KC_DOWN,KC_RGHT, KC_P0,KC_PDOT),
|
||||||
|
[1] = KEYMAP(\
|
||||||
|
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_SLCK,KC_PAUS, \
|
||||||
|
TD(EMOJIS),TD(ANIMAL),TD(HAND),X(SMRK),X(WEARY),X(UNAMU), KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL,KC_BSPC, KC_MPRV,KC_MPLY,KC_MNXT, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
|
||||||
|
KC_TAB, KC_Q, M(0), KC_E, KC_R,X(EGGPL),X(WATER), KC_U, KC_I, KC_O, KC_P, KC_UP ,KC_RBRC,KC_BSLS, KC_MUTE,KC_VOLD,KC_VOLU, KC_P7, KC_P8, KC_P9,KC_PPLS, \
|
||||||
|
KC_LCTL, M(1), M(3), M(2), KC_F, X(LIT), X(SNEK), KC_J, KC_K, KC_L,KC_LEFT,KC_RGHT, KC_ENT, KC_P4, KC_P5, KC_P6, \
|
||||||
|
KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, X(HUNDR), X(BBB), X(POO), KC_M,KC_COMM, KC_DOT,KC_DOWN, KC_RSFT, KC_MS_U, KC_P1, KC_P2, KC_P3,KC_PENT, \
|
||||||
|
KC_BTN1,KC_BTN3,KC_BTN2, KC_SPC, KC_RALT,KC_RGUI, TG(2),_______ , KC_MS_L,KC_MS_D,KC_MS_R, KC_P0,KC_PDOT),
|
||||||
|
[2] = KEYMAP(\
|
||||||
|
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_SLCK,KC_PAUS, \
|
||||||
|
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_MPRV,KC_MPLY,KC_MNXT, KC_NLCK,KC_PSLS,KC_PAST,KC_PMNS, \
|
||||||
|
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_MUTE,KC_VOLD,KC_VOLU, KC_P7, KC_P8, KC_P9,KC_PPLS, \
|
||||||
|
KC_LCTL, KC_D, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L,KC_SCLN,KC_QUOT, KC_ENT, KC_P4, KC_P5, KC_P6, \
|
||||||
|
KC_LSFT,KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M,KC_COMM, KC_DOT,KC_SLSH, KC_RSFT, KC_MS_U, KC_P1, KC_P2, KC_P3,KC_PENT, \
|
||||||
|
KC_BTN1,KC_BTN3,KC_BTN2, KC_SPC, KC_RALT,KC_RGUI, _______, _______, KC_MS_L,KC_MS_D,KC_MS_R, KC_P0,KC_PDOT),
|
||||||
|
};
|
||||||
|
|
||||||
|
LEADER_EXTERNS();
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
LEADER_DICTIONARY() {
|
||||||
|
leading = false;
|
||||||
|
leader_end();
|
||||||
|
|
||||||
|
SEQ_TWO_KEYS(KC_A, KC_A) { // select all and copy
|
||||||
|
register_code(KC_LCTL);
|
||||||
|
tap(KC_A);
|
||||||
|
tap(KC_C);
|
||||||
|
unregister_code(KC_LCTL);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void matrix_init_user(void) {
|
||||||
|
_delay_ms(500);
|
||||||
|
set_unicode_input_mode(UC_WINC);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void cycleEmojis(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
if(state->count == 1) {
|
||||||
|
unicode_input_start();
|
||||||
|
register_hex32(pgm_read_dword(&unicode_map[state->count]));
|
||||||
|
unicode_input_finish();
|
||||||
|
}
|
||||||
|
else if(state->count <= 5) {
|
||||||
|
tap(KC_BSPC);
|
||||||
|
unicode_input_start();
|
||||||
|
register_hex32(pgm_read_dword(&unicode_map[state->count]));
|
||||||
|
unicode_input_finish();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void cycleAnimals(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
if(state->count == 1) {
|
||||||
|
unicode_input_start();
|
||||||
|
register_hex32(pgm_read_dword(&unicode_map[state->count+5]));
|
||||||
|
unicode_input_finish();
|
||||||
|
}
|
||||||
|
else if(state->count <= 5) {
|
||||||
|
tap(KC_BSPC);
|
||||||
|
unicode_input_start();
|
||||||
|
register_hex32(pgm_read_dword(&unicode_map[state->count+5]));
|
||||||
|
unicode_input_finish();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void cycleHands(qk_tap_dance_state_t *state, void *user_data) {
|
||||||
|
if(state->count == 1) {
|
||||||
|
unicode_input_start();
|
||||||
|
register_hex32(pgm_read_dword(&unicode_map[state->count+10]));
|
||||||
|
unicode_input_finish();
|
||||||
|
}
|
||||||
|
else if(state->count <= 5) {
|
||||||
|
tap(KC_BSPC);
|
||||||
|
unicode_input_start();
|
||||||
|
register_hex32(pgm_read_dword(&unicode_map[state->count+10]));
|
||||||
|
unicode_input_finish();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
# The Nikchi's keymap for frosty_flake
|
||||||
|
|
||||||
|
### FEATURING
|
||||||
|
-SPACE CADET
|
||||||
|
-Caps Lock is now LCTRL
|
||||||
|
-LCTRL is Tap(LCTRL, Caps Lock)
|
||||||
|
|
||||||
|
### LEADER KEY - RALT
|
||||||
|
COMBOS
|
||||||
|
-a,a => Select All, Copy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### FN REBINDS for Windows
|
||||||
|
```
|
||||||
|
[W] [New Desktop]
|
||||||
|
[A][S][D] [Left Desk][Delete Desk][Right Desk]
|
||||||
|
|
||||||
|
[Ins][Hom][PUp] [RW][PP][FF]
|
||||||
|
[Del][End][PDn] [MU][VD][VU]
|
||||||
|
|
||||||
|
Arrows are Mouskeys, left three mods are clicks
|
||||||
|
|
||||||
|
```
|
@ -1 +0,0 @@
|
|||||||
#include "MS-sculpt-mobile.h"
|
|
@ -0,0 +1 @@
|
|||||||
|
#include "MS_sculpt_mobile.h"
|
@ -0,0 +1,8 @@
|
|||||||
|
#ifndef CONFIG_USER_H
|
||||||
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
|
#include "../../../MS_sculpt_mobile/config.h"
|
||||||
|
|
||||||
|
// place overrides here
|
||||||
|
|
||||||
|
#endif
|
@ -1,4 +1,4 @@
|
|||||||
#include "MS-sculpt-mobile.h"
|
#include "../../MS_sculpt_mobile.h"
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
/*
|
/*
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef CONFIG_USER_H
|
#ifndef CONFIG_USER_H
|
||||||
#define CONFIG_USER_H
|
#define CONFIG_USER_H
|
||||||
|
|
||||||
#include "../../config.h"
|
#include "../../../MS_sculpt_mobile/config.h"
|
||||||
|
|
||||||
#define USE_BABLPASTE
|
#define USE_BABLPASTE
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
#include "MS-sculpt-mobile.h"
|
#include "../../../MS_sculpt_mobile/babblePaste.h"
|
||||||
|
#include "../../MS_sculpt_mobile.h"
|
||||||
#include "action_layer.h"
|
#include "action_layer.h"
|
||||||
#include "action_util.h"
|
#include "action_util.h"
|
||||||
#include "babblePaste.h"
|
|
||||||
|
|
||||||
#ifdef AUDIO_ENABLE
|
#ifdef AUDIO_ENABLE
|
||||||
#include "audio.h"
|
#include "audio.h"
|
@ -0,0 +1,15 @@
|
|||||||
|
#define COLOR_BLANK 0, 0, 0
|
||||||
|
|
||||||
|
#define COLOR_BLACK 0, 0, 0
|
||||||
|
#define COLOR_WHITE 15,15,15
|
||||||
|
#define COLOR_GRAY 7, 7, 7
|
||||||
|
|
||||||
|
#define COLOR_RED 15, 0, 0
|
||||||
|
#define COLOR_GREEN 0,15, 0
|
||||||
|
#define COLOR_BLUE 0, 0,15
|
||||||
|
|
||||||
|
#define COLOR_YELLOW 15,15, 0
|
||||||
|
#define COLOR_MAGENTA 15, 0,15
|
||||||
|
#define COLOR_CYAN 0,15,15
|
||||||
|
|
||||||
|
#define COLOR_ORANGE 15, 5, 0
|
@ -0,0 +1 @@
|
|||||||
|
#include "rgbtheme_default.h"
|
@ -0,0 +1,36 @@
|
|||||||
|
#include "color.h"
|
||||||
|
|
||||||
|
#define THEME_COLOR_LINUX COLOR_WHITE
|
||||||
|
#define THEME_COLOR_APPLE COLOR_WHITE
|
||||||
|
#define THEME_COLOR_WINDOWS COLOR_WHITE
|
||||||
|
|
||||||
|
#define THEME_COLOR_QWERTY COLOR_RED
|
||||||
|
#define THEME_COLOR_ALT COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_AUDIO COLOR_GREEN
|
||||||
|
|
||||||
|
#define THEME_COLOR_BLUETOOTH 7,7,15
|
||||||
|
#define THEME_COLOR_USB COLOR_WHITE
|
||||||
|
|
||||||
|
#define THEME_COLOR_CAPSLOCK COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_GUI COLOR_MAGENTA
|
||||||
|
#define THEME_COLOR_FUN COLOR_RED
|
||||||
|
#define THEME_COLOR_NUM 7,7,15
|
||||||
|
#define THEME_COLOR_PUNC COLOR_GREEN
|
||||||
|
#define THEME_COLOR_GREEK COLOR_CYAN
|
||||||
|
#define THEME_COLOR_EMOJI COLOR_YELLOW
|
||||||
|
#define THEME_COLOR_OTHERLAYER COLOR_GRAY
|
||||||
|
|
||||||
|
#define THEME_COLOR_GLOW1_HOME COLOR_ORANGE
|
||||||
|
#define THEME_COLOR_GLOW1_HOMING COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_GLOW2_ALPHA COLOR_ORANGE
|
||||||
|
#define THEME_COLOR_GLOW2_MODS COLOR_ORANGE
|
||||||
|
#define THEME_COLOR_GLOW2_FN COLOR_ORANGE
|
||||||
|
#define THEME_COLOR_GLOW2_HOME COLOR_ORANGE
|
||||||
|
#define THEME_COLOR_GLOW2_HOMING COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_TP1 COLOR_ORANGE
|
||||||
|
#define THEME_COLOR_TP2 COLOR_RED
|
||||||
|
#define THEME_COLOR_TP3 COLOR_ORANGE
|
@ -0,0 +1,36 @@
|
|||||||
|
#include "color.h"
|
||||||
|
|
||||||
|
#define THEME_COLOR_LINUX COLOR_WHITE
|
||||||
|
#define THEME_COLOR_APPLE COLOR_WHITE
|
||||||
|
#define THEME_COLOR_WINDOWS COLOR_WHITE
|
||||||
|
|
||||||
|
#define THEME_COLOR_QWERTY COLOR_RED
|
||||||
|
#define THEME_COLOR_ALT COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_AUDIO COLOR_GREEN
|
||||||
|
|
||||||
|
#define THEME_COLOR_BLUETOOTH COLOR_BLUE
|
||||||
|
#define THEME_COLOR_USB COLOR_WHITE
|
||||||
|
|
||||||
|
#define THEME_COLOR_CAPSLOCK COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_GUI COLOR_MAGENTA
|
||||||
|
#define THEME_COLOR_FUN COLOR_RED
|
||||||
|
#define THEME_COLOR_NUM COLOR_BLUE
|
||||||
|
#define THEME_COLOR_PUNC COLOR_GREEN
|
||||||
|
#define THEME_COLOR_GREEK COLOR_CYAN
|
||||||
|
#define THEME_COLOR_EMOJI COLOR_YELLOW
|
||||||
|
#define THEME_COLOR_OTHERLAYER COLOR_GRAY
|
||||||
|
|
||||||
|
#define THEME_COLOR_GLOW1_HOME COLOR_GRAY
|
||||||
|
#define THEME_COLOR_GLOW1_HOMING COLOR_RED
|
||||||
|
|
||||||
|
#define THEME_COLOR_GLOW2_ALPHA COLOR_GRAY
|
||||||
|
#define THEME_COLOR_GLOW2_MODS COLOR_GREEN
|
||||||
|
#define THEME_COLOR_GLOW2_FN COLOR_BLUE
|
||||||
|
#define THEME_COLOR_GLOW2_HOME COLOR_RED
|
||||||
|
#define THEME_COLOR_GLOW2_HOMING COLOR_YELLOW
|
||||||
|
|
||||||
|
#define THEME_COLOR_TP1 COLOR_RED
|
||||||
|
#define THEME_COLOR_TP2 COLOR_BLUE
|
||||||
|
#define THEME_COLOR_TP3 COLOR_RED
|