2020-10-04 21:24:35 +02:00
|
|
|
/*
|
|
|
|
Copyright (c) 2020 Fred Silberberg
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2017-08-24 04:29:07 +02:00
|
|
|
#include QMK_KEYBOARD_H
|
2017-05-31 03:01:09 +02:00
|
|
|
#include "debug.h"
|
|
|
|
#include "action_layer.h"
|
|
|
|
#include "version.h"
|
2017-11-06 18:09:01 +01:00
|
|
|
#include "333fred.h"
|
2017-05-31 03:01:09 +02:00
|
|
|
|
2017-06-01 02:42:50 +02:00
|
|
|
// NOTE: Cells marked with ACCESS must remain transparent, they're the keys that actually get to that layer
|
|
|
|
|
2017-05-31 03:01:09 +02:00
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/* Keymap 0: Basic layer
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | ` | 1 | 2 | 3 | 4 | 5 | F5 | | F6 | 6 | 7 | 8 | 9 | 0 | - |
|
2017-05-31 03:01:09 +02:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-10-30 09:09:22 +01:00
|
|
|
* | TAB | Q | W | E | R | T | GAME | |GAMEA | Y | U | I | O | P | \ |
|
2017-05-31 03:01:09 +02:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2017-11-06 20:30:57 +01:00
|
|
|
* | Esc | A | S | D | F | G |------| |------| H | J | K | L | ; | ' |
|
2018-10-30 09:09:22 +01:00
|
|
|
* |--------+------+------+------+------+------| SYMB | |MEDIA |------+------+------+------+------+--------|
|
2017-05-31 03:01:09 +02:00
|
|
|
* | LShift |Z/Ctrl| X | C | V | B | | | | N | M | , | . |//Ctrl| RShift |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-10-30 09:09:22 +01:00
|
|
|
* |LCTRL | F4 | F5 | LGUI | LALT | | Left | Down | = | Right| RGUI |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2017-11-06 18:09:01 +01:00
|
|
|
* | Copy | Paste| | Copy | Paste |
|
2017-05-31 03:01:09 +02:00
|
|
|
* ,------|------|------| |------+--------+------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | PgUp | | Up | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* | Bcksp|OSL(2)|------| |------| Ent |Space |
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | VIM | Del | | Down | | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
2018-10-30 09:09:22 +01:00
|
|
|
[BASE] = LAYOUT_ergodox_pretty( // layer 0 : default
|
2017-05-31 03:01:09 +02:00
|
|
|
// left hand
|
2018-10-30 09:09:22 +01:00
|
|
|
KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_F5, KC_F6, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS,
|
|
|
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, TG(GAME), TG(GAME_ARROW), KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS,
|
|
|
|
KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
|
|
|
OSM(MOD_LSFT), CTL_T(KC_Z), KC_X, KC_C, KC_V, KC_B, TG(SYMB), MO(MDIA), KC_N, KC_M, KC_COMM, KC_DOT, CTL_T(KC_SLSH), OSM(MOD_RSFT),
|
|
|
|
OSM(MOD_LCTL), KC_F4, KC_F5, KC_LGUI, KC_LALT, KC_LEFT, KC_DOWN, KC_EQL, KC_RIGHT, KC_RGUI,
|
|
|
|
LCTL(KC_C), LCTL(KC_V), LCTL(KC_C), LCTL(KC_V),
|
|
|
|
KC_PGUP, KC_UP,
|
|
|
|
KC_BSPC, TD(TD_SYM_VIM), KC_DEL, KC_DOWN, KC_ENT, KC_SPC
|
2017-05-31 08:52:20 +02:00
|
|
|
),
|
2018-10-30 09:09:22 +01:00
|
|
|
|
|
|
|
/* Keymap 2: Codeflow Layer
|
2017-05-31 08:52:20 +02:00
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | | | | | | | | | | | | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | | | | | | | | | | | | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | | | | | | |------| |------| | | | | | |
|
2018-10-30 09:09:22 +01:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | | | | | F7 | F8 | | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,---------------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | |ACCESS| | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* ,------|------|------| |------+--------+------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | | | | | |
|
|
|
|
* | | |------| |------| | |
|
|
|
|
* | | | | | | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
2019-05-29 16:44:43 +02:00
|
|
|
[CODEFLOW] = LAYOUT_ergodox_pretty( // layer 1 : code
|
2017-05-31 08:52:20 +02:00
|
|
|
// left hand
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, KC_F7, KC_F8, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______,
|
|
|
|
_______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______
|
2017-05-31 03:01:09 +02:00
|
|
|
),
|
2018-10-30 09:09:22 +01:00
|
|
|
/* Keymap 3: Symbol Layer
|
2017-05-31 03:01:09 +02:00
|
|
|
*
|
|
|
|
* ,---------------------------------------------------. ,--------------------------------------------------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | F1 | F2 | F3 | F4 | F5 | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
2017-05-31 03:01:09 +02:00
|
|
|
* |---------+------+------+------+------+------+------| |------+------+------+------+------+------+--------|
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | ! | @ | ( | ) | | | | | | Up | 7 | 8 | 9 | * | F12 |
|
2017-05-31 03:01:09 +02:00
|
|
|
* |---------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | # | $ | { | } | ` |------| |------| Down | 4 | 5 | 6 | + | |
|
2017-06-23 20:36:14 +02:00
|
|
|
* |---------+------+------+------+------+------|ACCESS| | |------+------+------+------+------+--------|
|
2017-05-31 03:01:09 +02:00
|
|
|
* | | % | ^ | [ | ] | ~ | | | | & | 1 | 2 | 3 | \ | |
|
|
|
|
* `---------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | | | | | 0 | 0 | . | = | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `-----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | | | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* ,------|------|------| |------+------+------.
|
2017-06-01 02:42:50 +02:00
|
|
|
* | | |APScr | | | | |
|
|
|
|
* | |ACCESS|------| |------| | |
|
2018-10-30 09:09:22 +01:00
|
|
|
* | | | PScr | | | | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
2018-10-30 09:09:22 +01:00
|
|
|
[SYMB] = LAYOUT_ergodox_pretty(
|
2017-05-31 03:01:09 +02:00
|
|
|
// left hand
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
|
|
|
_______, KC_EXLM, KC_AT, KC_LPRN, KC_RPRN, KC_PIPE, _______, _______, KC_UP, KC_7, KC_8, KC_9, KC_ASTR, KC_F12,
|
|
|
|
_______, KC_HASH, KC_DLR, KC_LCBR, KC_RCBR, KC_GRV, KC_DOWN, KC_4, KC_5, KC_6, KC_PLUS, _______,
|
|
|
|
_______, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, KC_TILD, _______, _______, KC_AMPR, KC_1, KC_2, KC_3, KC_BSLS, _______,
|
|
|
|
_______, _______, _______, _______, _______, KC_0, KC_0, KC_DOT, KC_EQL, _______,
|
|
|
|
_______, _______, _______, _______,
|
|
|
|
PSCREEN_APP, _______,
|
|
|
|
_______, _______, KC_PSCR, _______, _______, _______
|
2017-05-31 03:01:09 +02:00
|
|
|
),
|
2017-05-31 08:52:20 +02:00
|
|
|
/* Keymap 3: Media and mouse keys
|
2017-05-31 03:01:09 +02:00
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
|
|
|
* | | | | MsUp | | | | | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | |MsLeft|MsDown|MsRght| |------| |------| | | | | | |
|
2017-06-01 02:42:50 +02:00
|
|
|
* |--------+------+------+------+------+------| | |ACCESS|------+------+------+------+------+--------|
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | | | | | | | | | | | | | | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | | | Lclk | Rclk | | | | | | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2017-06-16 01:41:21 +02:00
|
|
|
* | Back+| Back-| | Vol+ | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* ,------|------|------| |------+------+------.
|
2017-06-16 01:41:21 +02:00
|
|
|
* | | |BackTg| | Vol- | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | |------| |------| PL/PS| Next |
|
|
|
|
* | | | | | Back | | |
|
2017-05-31 03:01:09 +02:00
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
2018-10-30 09:09:22 +01:00
|
|
|
[MDIA] = LAYOUT_ergodox_pretty(
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, KC_MS_U, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, KC_MS_L, KC_MS_D, KC_MS_R, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, KC_BTN1, KC_BTN2, _______, _______, _______, _______, _______,
|
|
|
|
BL_INC, BL_DEC, KC_VOLU, _______,
|
2018-10-30 09:09:22 +01:00
|
|
|
BL_TOGG, KC_VOLD,
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT
|
2017-05-31 08:52:20 +02:00
|
|
|
),
|
|
|
|
/* Keymap 4: Movement
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
2018-10-30 09:09:22 +01:00
|
|
|
* | |KOpen |KType |TERMCP|TERMPT| | | | | Copy | | | | Paste| |
|
2017-05-31 08:52:20 +02:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2017-11-06 18:09:01 +01:00
|
|
|
* | |DLeft |DRight|LCTRL | LGUI | |------| |------| Left | Down | Up | Right| | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
2017-06-10 00:01:01 +02:00
|
|
|
* | |SFT_TB| TAB | | | | | | | | | | | | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,-------------.
|
2017-06-23 20:24:55 +02:00
|
|
|
* | | | | Home | End |
|
2017-05-31 08:52:20 +02:00
|
|
|
* ,------|------|------| |------+------+------.
|
|
|
|
* | | | | | | | |
|
2017-11-06 18:09:01 +01:00
|
|
|
* | |ACCESS|------| |------| | |
|
2017-05-31 08:52:20 +02:00
|
|
|
* | | | | | | | |
|
|
|
|
* `--------------------' `--------------------'
|
|
|
|
*/
|
|
|
|
// MEDIA AND MOUSE
|
2018-10-30 09:09:22 +01:00
|
|
|
[VIM] = LAYOUT_ergodox_pretty(
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, DLEFT, DRIGHT, KC_LCTL, KC_LGUI, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______,
|
|
|
|
_______, _______, KC_TAB, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, KC_HOME, KC_END,
|
|
|
|
_______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______
|
2018-10-30 09:09:22 +01:00
|
|
|
),
|
|
|
|
/* Keymap 1: Game Layer
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* | ESC | | | | | | | | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
|
|
|
* | | | | | | |ACCESS| | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | CTRL | | | | | |------| |------| | | | | | |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | SHIFT | Z | | | | | | | | | | | | | |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* |ENTER | | | LOCK | BSPC | | | | | | |
|
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,---------------.
|
|
|
|
* | F5 | F6 | | | |
|
|
|
|
* ,------|------|------| |------+--------+------.
|
|
|
|
* | | | | | | | |
|
|
|
|
* | ALT | SPC |------| |------| | |
|
|
|
|
* | | | SYMB | | | | |
|
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
|
|
|
[GAME] = LAYOUT_ergodox_pretty( // layer 1 : code
|
|
|
|
// left hand
|
2019-05-29 16:44:43 +02:00
|
|
|
KC_ESC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
KC_LCTL, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
KC_LSFT, KC_Z, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
2022-10-21 16:46:10 +02:00
|
|
|
KC_ENT, _______, _______, QK_LOCK, KC_BSPC, _______, _______, _______, _______, _______,
|
2018-10-30 09:09:22 +01:00
|
|
|
KC_F5, KC_F6, LCTL(KC_C), LCTL(KC_V),
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, KC_UP,
|
|
|
|
KC_LALT, KC_SPC, OSM(SYMB), KC_DOWN, _______, _______
|
2018-10-30 09:09:22 +01:00
|
|
|
),
|
|
|
|
/* Keymap 1: Game Arrow Layer
|
|
|
|
*
|
|
|
|
* ,--------------------------------------------------. ,--------------------------------------------------.
|
|
|
|
* | ESC | | | | | | | | | | | | | | |
|
|
|
|
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
|
|
|
|
* | | | Up | | | | | |ACCESS| | | | | | |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | CTRL | Left | Down |Right | | |------| |------| | | | | | |
|
|
|
|
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
|
|
|
|
* | SHIFT | Z | | | | | | | | | | | | | |
|
|
|
|
* `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
|
|
|
|
* |ENTER | | | LOCK | BSPC | | | | | | |
|
|
|
|
* `----------------------------------' `----------------------------------'
|
|
|
|
* ,-------------. ,---------------.
|
|
|
|
* | F5 | F6 | | | |
|
|
|
|
* ,------|------|------| |------+--------+------.
|
|
|
|
* | | | | | | | |
|
|
|
|
* | ALT | SPC |------| |------| | |
|
|
|
|
* | | | SYMB | | | | |
|
|
|
|
* `--------------------' `----------------------'
|
|
|
|
*/
|
|
|
|
// If it accepts an argument (i.e, is a function), it doesn't need KC_.
|
|
|
|
// Otherwise, it needs KC_*
|
|
|
|
[GAME_ARROW] = LAYOUT_ergodox_pretty( // layer 1 : code
|
|
|
|
// left hand
|
2019-05-29 16:44:43 +02:00
|
|
|
KC_ESC, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
_______, _______, KC_UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
KC_LCTL, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, _______, _______, _______, _______, _______, _______,
|
|
|
|
KC_LSFT, KC_Z, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
|
2022-10-21 16:46:10 +02:00
|
|
|
KC_ENT, _______, _______, QK_LOCK, KC_BSPC, _______, _______, _______, _______, _______,
|
2018-10-30 09:09:22 +01:00
|
|
|
KC_F5, KC_F6, LCTL(KC_C), LCTL(KC_V),
|
2019-05-29 16:44:43 +02:00
|
|
|
_______, KC_UP,
|
|
|
|
KC_LALT, KC_SPC, OSM(SYMB), KC_DOWN, _______, _______
|
2018-10-30 09:09:22 +01:00
|
|
|
)
|
2017-05-31 03:01:09 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
2019-05-29 16:44:43 +02:00
|
|
|
tap_dance_process_keycode(keycode);
|
2017-05-31 03:01:09 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Runs constantly in the background, in a loop.
|
2019-05-29 16:44:43 +02:00
|
|
|
void matrix_scan_user(void) {
|
2017-05-31 08:52:20 +02:00
|
|
|
ergodox_board_led_on();
|
|
|
|
ergodox_led_all_on();
|
2018-08-05 17:42:16 +02:00
|
|
|
}
|
2017-05-31 03:01:09 +02:00
|
|
|
|
2021-10-20 22:27:46 +02:00
|
|
|
#ifdef ST7565_ENABLE
|
|
|
|
|
|
|
|
void st7565_task_user(void) {
|
|
|
|
// The colors will need to be ported over to the quantum painter API when
|
|
|
|
// https://github.com/qmk/qmk_firmware/pull/10174 is merged.
|
|
|
|
|
|
|
|
st7565_clear();
|
|
|
|
switch (get_highest_layer(layer_state)) {
|
|
|
|
case BASE:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(84, saturation, 0xFF);
|
|
|
|
st7565_write_P(PSTR("Default\n"), false);
|
|
|
|
break;
|
|
|
|
case CODEFLOW:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(216, 90, 0xFF);
|
|
|
|
st7565_write_P(PSTR("Code\n"), false);
|
|
|
|
break;
|
|
|
|
case SYMB:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(168, saturation, 0xFF);
|
|
|
|
st7565_write_P(PSTR("Symbol\n"), false);
|
|
|
|
break;
|
|
|
|
case MDIA:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(0, saturation, 0xFF);
|
|
|
|
st7565_write_P(PSTR("Media\n"), false);
|
|
|
|
break;
|
|
|
|
case VIM:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(140, 100, 60);
|
|
|
|
st7565_write_P(PSTR("Movement\n"), false);
|
|
|
|
break;
|
|
|
|
case GAME:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(0, 255, 60);
|
|
|
|
st7565_write_P(PSTR("Game\n"), false);
|
|
|
|
break;
|
|
|
|
case GAME_ARROW:
|
|
|
|
//state->target_lcd_color = LCD_COLOR(0, 255, 60);
|
|
|
|
st7565_write_P(PSTR("Game Arrow\n"), false);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|