2017-08-24 02:29:07 +00:00
|
|
|
#include QMK_KEYBOARD_H
|
2016-04-17 20:19:47 +00:00
|
|
|
#include "debug.h"
|
|
|
|
#include "action_layer.h"
|
2016-06-21 21:42:29 +00:00
|
|
|
#include "keymap_neo2.h"
|
|
|
|
#include "keymap_uk.h"
|
|
|
|
#include "keymap_colemak.h"
|
|
|
|
#include "keymap_nordic.h"
|
|
|
|
#include "keymap_dvorak.h"
|
|
|
|
#include "keymap_german.h"
|
2016-06-21 22:32:28 +00:00
|
|
|
#include "keymap_norwegian.h"
|
2022-05-15 11:27:01 +00:00
|
|
|
#include "keymap_swiss_fr.h"
|
|
|
|
#include "keymap_german_mac_iso.h"
|
2016-06-21 21:42:29 +00:00
|
|
|
#include "keymap_spanish.h"
|
|
|
|
#include "keymap_bepo.h"
|
2016-04-17 20:19:47 +00:00
|
|
|
|
2016-05-02 11:46:00 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This layout was generated using the ErgodoxLayoutGenerator (ELG). You can download it from https://github.com/sboesebeck/ErgodoxLayoutGenerator/releases
|
|
|
|
* documentation about it can be found here https://boesebeck.name/2016/04/16/ergodoxlayoutgenerator-documentation/
|
|
|
|
* Thanks to the team of Erez Zukerman for building the great Ergodox-EZ!
|
|
|
|
*
|
|
|
|
* use at own risk!
|
|
|
|
**/
|
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
#define BASE 0
|
|
|
|
#define SYMB 1
|
|
|
|
#define MDIA 2
|
|
|
|
#define SMLY 3
|
|
|
|
#define NUMB 4
|
|
|
|
#define EGOS 5
|
|
|
|
|
2016-04-19 05:50:29 +00:00
|
|
|
#define SMLY_TOG_QUOT 0
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-20 20:34:02 +00:00
|
|
|
#define M_TOGGLE_5 1
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-20 20:34:02 +00:00
|
|
|
#define TGH_NUM 2
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2021-07-05 23:05:11 +00:00
|
|
|
#define M_DE_PLUS_CTRLALT 3
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define SM_KISS 4
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define SM_FROWN 5
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define SM_CRY 6
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define SM_SMILE 7
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define SM_SMIRK 8
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define M_LGUI_SHFT 9
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
#define SM_HEART 10
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-20 20:34:02 +00:00
|
|
|
#define TOG_HLD_MDIA 11
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-20 20:34:02 +00:00
|
|
|
#define SM_LAUGH 12
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-20 20:34:02 +00:00
|
|
|
#define SM_SAD 13
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2021-07-05 23:05:11 +00:00
|
|
|
#define M_DE_CIRC_CTRLCMD 14
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-20 20:34:02 +00:00
|
|
|
#define M_MEH_SH_ACUT 15
|
2016-04-17 20:19:47 +00:00
|
|
|
|
2016-05-02 11:46:00 +00:00
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
//Layout keymap.c generated with ErgodoxLayoutGenerator V1.0BETA1
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2016-05-02 11:46:00 +00:00
|
|
|
/**
|
|
|
|
* Layer: BASE
|
2022-06-18 21:37:51 +00:00
|
|
|
* /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/ /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/
|
|
|
|
* | ESC | 1 | 2 | 3 | 4 | 5 | Hold or toggle | | Hold or toggle | 6 | 7 | 8 | 9 | 0 | ß |
|
|
|
|
* | | | | | | | Layer NUMB | | Layer MDIA | | | | | | |
|
|
|
|
* /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/ /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/
|
|
|
|
* | TAB | Q | W | E | R | T | Cmd | | Cmd | Z | U | I | O | P | Ü |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/\-------------------\ \-------------------\/-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/
|
|
|
|
* | Alt | A | S | D | F | G | | H | J | K | L | Ö | Ä |
|
|
|
|
* | | | | | | | | | | | | | ALT |
|
|
|
|
* /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/ /-------------------//-------------------//-------------------//-------------------//-------------------//-------------------//-------------------/
|
|
|
|
* | Shift | Y | X | C | V | B | Alt | | Alt | N | M | , | . | - | Shift |
|
|
|
|
* | | Ctrl | | | | | | | | | | | | Ctrl | |
|
|
|
|
* \-------------------\\-------------------\\-------------------\\-------------------\\-------------------\\-------------------\\-------------------\ \-------------------\\-------------------\\-------------------\\-------------------\\-------------------\\-------------------\\-------------------\
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* /-------------------//-------------------//-------------------//-------------------//-------------------/ /-------------------//-------------------//-------------------//-------------------//-------------------/
|
|
|
|
* | < | LongPress / Type | LongPress / Type | Shift+Ctrl | Type | | # | ACUT | CMD+Shift | ALT+Shift | + |
|
|
|
|
* | SYMB | DE_CIRC_CTRLCMD | DE_PLUS_CTRAlt | | Toggle SMLY | | Meh | Hyper | | | SYMB |
|
|
|
|
* \-------------------\\-------------------\\-------------------\\-------------------\/-------------------//-------------------/ /-------------------//-------------------/ \-------------------\\-------------------\\-------------------\\-------------------\\-------------------\
|
|
|
|
* | HOME | END | | LEFT | RIGHT |
|
|
|
|
* | | | | | |
|
|
|
|
* \-------------------\/-------------------/ /-------------------/\-------------------\
|
|
|
|
* | PGUP | | UP |
|
|
|
|
* | | | |
|
|
|
|
* /-------------------//-------------------//-------------------/ /-------------------//-------------------//-------------------/
|
|
|
|
* | BSPC | DEL | PGDN | | DOWN | ENT | SPC |
|
|
|
|
* | | | | | | | |
|
|
|
|
* \-------------------\\-------------------\\-------------------\ \-------------------\\-------------------\\-------------------\
|
|
|
|
*
|
|
|
|
*
|
2016-05-02 11:46:00 +00:00
|
|
|
**/
|
2017-08-24 02:29:07 +00:00
|
|
|
[BASE]=LAYOUT_ergodox(
|
2016-04-17 20:19:47 +00:00
|
|
|
//left half
|
2022-06-18 21:37:51 +00:00
|
|
|
KC_ESC, DE_1, DE_2, DE_3, DE_4, DE_5, M(TGH_NUM),
|
|
|
|
KC_TAB, DE_Q, DE_W, DE_E, DE_R, DE_T, KC_LGUI,
|
|
|
|
KC_LALT, DE_A, DE_S, DE_D, DE_F, DE_G,
|
|
|
|
KC_LSFT, CTL_T(DE_Y), DE_X, DE_C, DE_V, DE_B, KC_LALT,
|
|
|
|
LT(SYMB,DE_LABK), M(M_DE_CIRC_CTRLCMD), M(M_DE_PLUS_CTRLALT), LSFT(KC_LCTRL), M(SMLY_TOG_QUOT),
|
|
|
|
KC_HOME, KC_END,
|
|
|
|
KC_PGUP,
|
|
|
|
KC_BSPC, KC_DEL, KC_PGDN,
|
2016-04-17 20:19:47 +00:00
|
|
|
//right half
|
2022-06-18 21:37:51 +00:00
|
|
|
M(TOG_HLD_MDIA), DE_6, DE_7, DE_8, DE_9, DE_0, DE_SS,
|
|
|
|
KC_RGUI, DE_Z, DE_U, DE_I, DE_O, DE_P, DE_UDIA,
|
|
|
|
DE_H, DE_J, DE_K, DE_L, DE_ODIA, ALT_T(DE_ADIA),
|
|
|
|
KC_RALT, DE_N, DE_M, DE_COMM, DE_DOT, CTL_T(DE_MINS), KC_RSFT,
|
|
|
|
MEH_T(DE_HASH), ALL_T(DE_ACUT), LGUI(KC_LSFT), LALT(KC_LSFT), LT(SYMB,DE_PLUS),
|
|
|
|
KC_LEFT, KC_RIGHT,
|
|
|
|
KC_UP,
|
2016-04-17 20:19:47 +00:00
|
|
|
KC_DOWN, KC_ENT, KC_SPC),
|
2016-05-02 11:46:00 +00:00
|
|
|
/**
|
|
|
|
* Layer: SYMB
|
2022-06-18 21:37:51 +00:00
|
|
|
* /-----------//-----------//-----------//-----------//-----------//-----------//-----------/ /-----------//-----------//-----------//-----------//-----------//-----------//-----------/
|
|
|
|
* | APPLICATION| F1 | F2 | F3 | F4 | F5 | F5 | | F6 | F6 | F7 | F8 | F9 | F10 | F11 |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /-----------//-----------//-----------//-----------//-----------//-----------//-----------/ /-----------//-----------//-----------//-----------//-----------//-----------//-----------/
|
|
|
|
* | | < | > | ! | ? | | | | | \ | [ | ] | < | > | ! |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /-----------//-----------//-----------//-----------//-----------//-----------/\-----------\ \-----------\/-----------//-----------//-----------//-----------//-----------//-----------/
|
|
|
|
* | | # | $ | \ | / | . | | / | ( | ) | { | } | # |
|
|
|
|
* | | | | | | | | | | | | | |
|
|
|
|
* /-----------//-----------//-----------//-----------//-----------//-----------//-----------/ /-----------//-----------//-----------//-----------//-----------//-----------//-----------/
|
|
|
|
* | | | < | % | | | ~ | | | | | | ~ | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* \-----------\\-----------\\-----------\\-----------\\-----------\\-----------\\-----------\ \-----------\\-----------\\-----------\\-----------\\-----------\\-----------\\-----------\
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* /-----------//-----------//-----------//-----------//-----------/ /-----------//-----------//-----------//-----------//-----------/
|
|
|
|
* | | | | | | | ' | DQOT | | Toggle 5 | |
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* \-----------\\-----------\\-----------\\-----------\/-----------//-----------/ /-----------//-----------/ \-----------\\-----------\\-----------\\-----------\\-----------\
|
|
|
|
* | | | | F13 | F12 |
|
|
|
|
* | | | | | |
|
|
|
|
* \-----------\/-----------/ /-----------/\-----------\
|
|
|
|
* | | | F14 |
|
|
|
|
* | | | |
|
|
|
|
* /-----------//-----------//-----------/ /-----------//-----------//-----------/
|
|
|
|
* | | DEL | | | F15 | | |
|
|
|
|
* | | | | | | | |
|
|
|
|
* \-----------\\-----------\\-----------\ \-----------\\-----------\\-----------\
|
|
|
|
*
|
|
|
|
*
|
2016-05-02 11:46:00 +00:00
|
|
|
**/
|
2017-08-24 02:29:07 +00:00
|
|
|
[SYMB]=LAYOUT_ergodox(
|
2016-04-17 20:19:47 +00:00
|
|
|
//left half
|
2022-06-18 21:37:51 +00:00
|
|
|
KC_APPLICATION, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F5,
|
|
|
|
KC_TRNS, DE_LABK, DE_RABK, DE_EXLM, DE_QST, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, DE_HASH, DE_DLR, DE_BSLS, DE_SLSH, KC_DOT,
|
|
|
|
KC_TRNS, KC_TRNS, DE_LABK, DE_PERC, DE_PIPE, DE_TILD, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, KC_DEL, KC_TRNS,
|
2016-04-17 20:19:47 +00:00
|
|
|
//right half
|
2022-06-18 21:37:51 +00:00
|
|
|
KC_F6, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
|
|
|
KC_TRNS, DE_BSLS, DE_LBRC, DE_RBRC, DE_LABK, DE_RABK, DE_EXLM,
|
|
|
|
DE_SLSH, DE_LPRN, DE_RPRN, DE_LCBR, DE_RCBR, DE_HASH,
|
|
|
|
KC_TRNS, DE_PIPE, DE_TILD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
DE_QUOT, DE_DQUO, KC_TRNS, M(M_TOGGLE_5), KC_TRNS,
|
|
|
|
KC_F13, KC_F12,
|
|
|
|
KC_F14,
|
2016-04-17 20:19:47 +00:00
|
|
|
KC_F15, KC_TRNS, KC_TRNS),
|
2016-05-02 11:46:00 +00:00
|
|
|
/**
|
|
|
|
* Layer: MDIA
|
2022-06-18 21:37:51 +00:00
|
|
|
* /-----//-----//-----//-----//-----//-----//-----/ /-----//-----//-----//-----//-----//-----//-----/
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /-----//-----//-----//-----//-----//-----//-----/ /-----//-----//-----//-----//-----//-----//-----/
|
|
|
|
* | | | BTN1 | U | BTN2 | U | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /-----//-----//-----//-----//-----//-----/\-----\ \-----\/-----//-----//-----//-----//-----//-----/
|
|
|
|
* | | | L | D | R | D | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | |
|
|
|
|
* /-----//-----//-----//-----//-----//-----//-----/ /-----//-----//-----//-----//-----//-----//-----/
|
|
|
|
* | | | L | D | R | BTN3 | | | | | | | | UP | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* \-----\\-----\\-----\\-----\\-----\\-----\\-----\ \-----\\-----\\-----\\-----\\-----\\-----\\-----\
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* /-----//-----//-----//-----//-----/ /-----//-----//-----//-----//-----/
|
|
|
|
* | | | | | | | | | LEFT | DOWN | RIGHT|
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* \-----\\-----\\-----\\-----\/-----//-----/ /-----//-----/ \-----\\-----\\-----\\-----\\-----\
|
|
|
|
* | | | | MPRV | MNXT |
|
|
|
|
* | | | | | |
|
|
|
|
* \-----\/-----/ /-----/\-----\
|
|
|
|
* | | | VOLU |
|
|
|
|
* | | | |
|
|
|
|
* /-----//-----//-----/ /-----//-----//-----/
|
|
|
|
* | | | | | VOLD | MUTE | MPLY |
|
|
|
|
* | | | | | | | |
|
|
|
|
* \-----\\-----\\-----\ \-----\\-----\\-----\
|
|
|
|
*
|
|
|
|
*
|
2016-05-02 11:46:00 +00:00
|
|
|
**/
|
2017-08-24 02:29:07 +00:00
|
|
|
[MDIA]=LAYOUT_ergodox(
|
2016-04-17 20:19:47 +00:00
|
|
|
//left half
|
2022-06-18 21:37:51 +00:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D,
|
|
|
|
KC_TRNS, KC_TRNS, KC_WH_L, KC_WH_D, KC_WH_R, KC_BTN3, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
2016-04-17 20:19:47 +00:00
|
|
|
//right half
|
2022-06-18 21:37:51 +00:00
|
|
|
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_UP, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT,
|
|
|
|
KC_MPRV, KC_MNXT,
|
|
|
|
KC_VOLU,
|
2016-05-02 11:46:00 +00:00
|
|
|
KC_VOLD, KC_MUTE, KC_MPLY),
|
|
|
|
/**
|
|
|
|
* Layer: SMLY
|
2022-06-18 21:37:51 +00:00
|
|
|
* /--------//--------//--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | Typing | Typing | Typing | | | | |
|
|
|
|
* | | | | | | | | | SM_SMILE| SM_SMIRK| SM_LAUGH| | | | |
|
|
|
|
* /--------//--------//--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | | Typing | Typing | Typing | | | |
|
|
|
|
* | | | | | | | | | | SM_FROWN| SM_SAD | SM_CRY | | | |
|
|
|
|
* /--------//--------//--------//--------//--------//--------/\--------\ \--------\/--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | Typing | Typing | | | | |
|
|
|
|
* | | | | | | | | SM_HEART| SM_KISS | | | | |
|
|
|
|
* /--------//--------//--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* \--------\\--------\\--------\\--------\\--------\\--------\\--------\ \--------\\--------\\--------\\--------\\--------\\--------\\--------\
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* /--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* \--------\\--------\\--------\\--------\/--------//--------/ /--------//--------/ \--------\\--------\\--------\\--------\\--------\
|
|
|
|
* | | | | | |
|
|
|
|
* | | | | | |
|
|
|
|
* \--------\/--------/ /--------/\--------\
|
|
|
|
* | | | |
|
|
|
|
* | | | |
|
|
|
|
* /--------//--------//--------/ /--------//--------//--------/
|
|
|
|
* | | | | | | | |
|
|
|
|
* | | | | | | | |
|
|
|
|
* \--------\\--------\\--------\ \--------\\--------\\--------\
|
|
|
|
*
|
|
|
|
*
|
2016-05-02 11:46:00 +00:00
|
|
|
**/
|
2017-08-24 02:29:07 +00:00
|
|
|
[SMLY]=LAYOUT_ergodox(
|
2016-04-17 20:19:47 +00:00
|
|
|
//left half
|
2022-06-18 21:37:51 +00:00
|
|
|
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,
|
2016-04-17 20:19:47 +00:00
|
|
|
//right half
|
2022-06-18 21:37:51 +00:00
|
|
|
M(SM_SMILE), M(SM_SMIRK), M(SM_LAUGH), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, M(SM_FROWN), M(SM_SAD), M(SM_CRY), KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
M(SM_HEART), M(SM_KISS), 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,
|
2016-04-17 20:19:47 +00:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS),
|
2016-05-02 11:46:00 +00:00
|
|
|
/**
|
|
|
|
* Layer: NUMB
|
2022-06-18 21:37:51 +00:00
|
|
|
* /----//----//----//----//----//----//----/ /----//----//----//----//----//----//----/
|
|
|
|
* | | | | | | | | | | F6 | F7 | F8 | F9 | F10 | F11 |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /----//----//----//----//----//----//----/ /----//----//----//----//----//----//----/
|
|
|
|
* | | | | UP | | | | | | / | 7 | 8 | 9 | * | F12 |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /----//----//----//----//----//----/\----\ \----\/----//----//----//----//----//----/
|
|
|
|
* | | | LEFT| DOWN| RGHT| | | / | 4 | 5 | 6 | + | - |
|
|
|
|
* | | | | | | | | | | | | | |
|
|
|
|
* /----//----//----//----//----//----//----/ /----//----//----//----//----//----//----/
|
|
|
|
* | | | | | | | | | | % | 1 | 2 | 3 | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* \----\\----\\----\\----\\----\\----\\----\ \----\\----\\----\\----\\----\\----\\----\
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* /----//----//----//----//----/ /----//----//----//----//----/
|
|
|
|
* | | | | | | | 0 | . | , | = | |
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* \----\\----\\----\\----\/----//----/ /----//----/ \----\\----\\----\\----\\----\
|
|
|
|
* | | | | | |
|
|
|
|
* | | | | | |
|
|
|
|
* \----\/----/ /----/\----\
|
|
|
|
* | | | |
|
|
|
|
* | | | |
|
|
|
|
* /----//----//----/ /----//----//----/
|
|
|
|
* | | | | | | | |
|
|
|
|
* | | | | | | | |
|
|
|
|
* \----\\----\\----\ \----\\----\\----\
|
|
|
|
*
|
|
|
|
*
|
2016-05-02 11:46:00 +00:00
|
|
|
**/
|
2017-08-24 02:29:07 +00:00
|
|
|
[NUMB]=LAYOUT_ergodox(
|
2016-04-17 20:19:47 +00:00
|
|
|
//left half
|
2022-06-18 21:37:51 +00:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_LEFT, KC_DOWN, KC_RGHT, 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,
|
2016-04-17 20:19:47 +00:00
|
|
|
//right half
|
2022-06-18 21:37:51 +00:00
|
|
|
KC_TRNS, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11,
|
|
|
|
KC_TRNS, DE_SLSH, KC_7, KC_8, KC_9, DE_ASTR, KC_F12,
|
|
|
|
DE_SLSH, KC_4, KC_5, KC_6, DE_PLUS, DE_MINS,
|
|
|
|
KC_TRNS, DE_PERC, KC_1, KC_2, KC_3, KC_TRNS, KC_TRNS,
|
|
|
|
KC_0, KC_DOT, KC_COMM, DE_EQL, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
2016-04-17 20:19:47 +00:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS),
|
2016-05-02 11:46:00 +00:00
|
|
|
/**
|
|
|
|
* Layer: EGOS
|
2022-06-18 21:37:51 +00:00
|
|
|
* /--------//--------//--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /--------//--------//--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* /--------//--------//--------//--------//--------//--------/\--------\ \--------\/--------//--------//--------//--------//--------//--------/
|
|
|
|
* | Shift | | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | |
|
|
|
|
* /--------//--------//--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------//--------//--------/
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* | | | | | | | | | | | | | | | |
|
|
|
|
* \--------\\--------\\--------\\--------\\--------\\--------\\--------\ \--------\\--------\\--------\\--------\\--------\\--------\\--------\
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* /--------//--------//--------//--------//--------/ /--------//--------//--------//--------//--------/
|
|
|
|
* | Ctrl | | | | | | | | | Toggle 5| |
|
|
|
|
* | | | | | | | | | | | |
|
|
|
|
* \--------\\--------\\--------\\--------\/--------//--------/ /--------//--------/ \--------\\--------\\--------\\--------\\--------\
|
|
|
|
* | F1 | F2 | | | |
|
|
|
|
* | | | | | |
|
|
|
|
* \--------\/--------/ /--------/\--------\
|
|
|
|
* | F3 | | |
|
|
|
|
* | | | |
|
|
|
|
* /--------//--------//--------/ /--------//--------//--------/
|
|
|
|
* | SPC | Ctrl | F4 | | | | |
|
|
|
|
* | | | | | | | |
|
|
|
|
* \--------\\--------\\--------\ \--------\\--------\\--------\
|
|
|
|
*
|
|
|
|
*
|
2016-05-02 11:46:00 +00:00
|
|
|
**/
|
2017-08-24 02:29:07 +00:00
|
|
|
[EGOS]=LAYOUT_ergodox(
|
2016-04-17 20:19:47 +00:00
|
|
|
//left half
|
2022-06-18 21:37:51 +00:00
|
|
|
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_LSFT, 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_LCTL, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_F1, KC_F2,
|
|
|
|
KC_F3,
|
|
|
|
KC_SPC, KC_LCTL, KC_F4,
|
2016-04-17 20:19:47 +00:00
|
|
|
//right half
|
2022-06-18 21:37:51 +00:00
|
|
|
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, M(M_TOGGLE_5), KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS,
|
2016-04-17 20:19:47 +00:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS),
|
|
|
|
};
|
|
|
|
|
|
|
|
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
|
|
|
|
{
|
|
|
|
static uint16_t start;
|
|
|
|
switch(id) {
|
2016-04-19 05:50:29 +00:00
|
|
|
case SMLY_TOG_QUOT:
|
|
|
|
//Macro: SMLY_TOG_QUOT//-----------------------
|
|
|
|
if (record->event.pressed) {
|
|
|
|
start = timer_read();
|
|
|
|
layer_state ^= (1<<SMLY);
|
|
|
|
layer_state &= (1<<SMLY);
|
|
|
|
return MACRO_NONE; } else {
|
|
|
|
layer_state ^= (1<<SMLY);
|
|
|
|
layer_state &= (1<<SMLY);
|
|
|
|
if (timer_elapsed(start) >150) {
|
|
|
|
return MACRO_NONE;
|
|
|
|
} else {
|
2021-07-05 23:05:11 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(DE_HASH),UP(KC_LSFT),END);
|
2016-04-19 05:50:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
2016-04-17 20:19:47 +00:00
|
|
|
case M_TOGGLE_5:
|
|
|
|
//Macro: M_TOGGLE_5//-----------------------
|
|
|
|
if (record->event.pressed){
|
|
|
|
layer_state ^= (1<<5);
|
|
|
|
layer_state &= (1<<5);
|
|
|
|
}
|
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
break;
|
|
|
|
case TGH_NUM:
|
|
|
|
//Macro: TGH_NUM//-----------------------
|
|
|
|
if (record->event.pressed){
|
|
|
|
start = timer_read();
|
|
|
|
layer_state ^=(1<<NUMB);
|
|
|
|
layer_state &=(1<<NUMB);
|
|
|
|
} else {
|
|
|
|
if (timer_elapsed(start) > 150) {
|
|
|
|
layer_state^=(1<<NUMB);
|
|
|
|
layer_state&=(1<<NUMB);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return MACRO_NONE;
|
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
break;
|
2021-07-05 23:05:11 +00:00
|
|
|
case M_DE_PLUS_CTRLALT:
|
|
|
|
//Macro: M_DE_PLUS_CTRLALT//-----------------------
|
2016-04-17 20:19:47 +00:00
|
|
|
if (record->event.pressed) {
|
|
|
|
start = timer_read();
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LCTRL),DOWN(KC_LALT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
} else {
|
|
|
|
if (timer_elapsed(start) >150) {
|
|
|
|
return MACRO(U(LCTRL),U(LALT),END);
|
|
|
|
} else {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(UP(KC_LCTRL),UP(KC_LALT),TYPE(KC_RBRC),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_KISS:
|
|
|
|
//Macro: SM_KISS//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_DOT),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LSFT),TYPE(KC_RBRC),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_FROWN:
|
|
|
|
//Macro: SM_FROWN//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_DOT),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LALT),TYPE(KC_8),UP(KC_LALT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_CRY:
|
|
|
|
//Macro: SM_CRY//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_COMM),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LSFT),TYPE(KC_8),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_SMILE:
|
|
|
|
//Macro: SM_SMILE//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_DOT),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LSFT),TYPE(KC_9),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_SMIRK:
|
|
|
|
//Macro: SM_SMIRK//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_COMM),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LSFT),TYPE(KC_9),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case M_LGUI_SHFT:
|
|
|
|
//Macro: M_LGUI_SHFT//-----------------------
|
|
|
|
if (record->event.pressed){
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LGUI),DOWN(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}else{
|
2016-05-02 11:46:00 +00:00
|
|
|
return MACRO(UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),UP(KC_LGUI),UP(KC_LSFT),U(LGUI),U(LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_HEART:
|
|
|
|
//Macro: SM_HEART//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(TYPE(KC_GRV),TYPE(KC_3),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
2016-04-19 08:37:37 +00:00
|
|
|
break;
|
|
|
|
case TOG_HLD_MDIA:
|
|
|
|
//Macro: TOG_HLD_MDIA//-----------------------
|
|
|
|
if (record->event.pressed){
|
|
|
|
start = timer_read();
|
|
|
|
layer_state ^=(1<<MDIA);
|
|
|
|
layer_state &=(1<<MDIA);
|
|
|
|
} else {
|
|
|
|
if (timer_elapsed(start) > 150) {
|
|
|
|
layer_state^=(1<<MDIA);
|
|
|
|
layer_state&=(1<<MDIA);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return MACRO_NONE;
|
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
break;
|
|
|
|
case SM_LAUGH:
|
|
|
|
//Macro: SM_LAUGH//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_DOT),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LSFT),TYPE(KC_D),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SM_SAD:
|
|
|
|
//Macro: SM_SAD//-----------------------
|
|
|
|
if (record->event.pressed) {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LSFT),TYPE(KC_DOT),UP(KC_LSFT),TYPE(KC_SLSH),DOWN(KC_LSFT),TYPE(KC_8),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
2021-07-05 23:05:11 +00:00
|
|
|
case M_DE_CIRC_CTRLCMD:
|
|
|
|
//Macro: M_DE_CIRC_CTRLCMD//-----------------------
|
2016-04-17 20:19:47 +00:00
|
|
|
if (record->event.pressed) {
|
|
|
|
start = timer_read();
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LCTRL),DOWN(KC_LGUI),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
} else {
|
|
|
|
if (timer_elapsed(start) >150) {
|
|
|
|
return MACRO(U(LCTRL),U(LGUI),END);
|
|
|
|
} else {
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(UP(KC_LCTRL),UP(KC_LGUI),TYPE(KC_NUBS),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
case M_MEH_SH_ACUT:
|
|
|
|
//Macro: M_MEH_SH_ACUT//-----------------------
|
|
|
|
if (record->event.pressed) {
|
|
|
|
start = timer_read();
|
2016-04-20 20:34:02 +00:00
|
|
|
return MACRO(DOWN(KC_LCTRL),DOWN(KC_LSFT),DOWN(KC_LALT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
} else {
|
|
|
|
if (timer_elapsed(start) >150) {
|
|
|
|
return MACRO(U(LCTRL),U(LSFT),U(LALT),END);
|
|
|
|
} else {
|
2021-07-05 23:05:11 +00:00
|
|
|
return MACRO(UP(KC_LCTRL),UP(KC_LALT),TYPE(DE_ACUT),UP(KC_LSFT),END);
|
2016-04-17 20:19:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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) {
|
|
|
|
|
2022-06-18 21:37:51 +00:00
|
|
|
uint8_t layer = get_highest_layer(layer_state);
|
2016-04-17 20:19:47 +00:00
|
|
|
|
|
|
|
ergodox_board_led_off();
|
|
|
|
ergodox_right_led_1_off();
|
|
|
|
ergodox_right_led_2_off();
|
|
|
|
ergodox_right_led_3_off();
|
|
|
|
switch (layer) {
|
|
|
|
|
|
|
|
case SYMB:
|
|
|
|
ergodox_right_led_1_on();
|
2022-06-18 21:37:51 +00:00
|
|
|
|
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
break;
|
|
|
|
case MDIA:
|
2022-06-18 21:37:51 +00:00
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
ergodox_right_led_2_on();
|
2022-06-18 21:37:51 +00:00
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
break;
|
|
|
|
case NUMB:
|
2022-06-18 21:37:51 +00:00
|
|
|
|
|
|
|
|
2016-04-17 20:19:47 +00:00
|
|
|
ergodox_right_led_3_on();
|
|
|
|
break;
|
|
|
|
case EGOS:
|
|
|
|
ergodox_right_led_1_on();
|
|
|
|
ergodox_right_led_2_on();
|
|
|
|
ergodox_right_led_3_on();
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
// none
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|