2017-03-29 06:20:36 +08:00
|
|
|
/* Copyright 2015-2016 Jack Humbert
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2015-10-27 02:49:46 +08:00
|
|
|
|
2020-03-18 08:09:12 +08:00
|
|
|
#pragma once
|
2015-10-27 02:49:46 +08:00
|
|
|
|
2020-03-18 08:09:12 +08:00
|
|
|
#include "keymap.h"
|
2018-03-17 04:39:51 +08:00
|
|
|
|
2020-03-18 08:09:12 +08:00
|
|
|
// clang-format off
|
2018-03-17 04:39:51 +08:00
|
|
|
|
2020-03-18 08:09:12 +08:00
|
|
|
/*
|
|
|
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │
|
|
|
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
|
|
|
* │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ # │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ │ │ │ │ │ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
|
|
|
*/
|
|
|
|
// Row 1
|
|
|
|
#define UK_GRV KC_GRV // `
|
|
|
|
#define UK_1 KC_1 // 1
|
|
|
|
#define UK_2 KC_2 // 2
|
|
|
|
#define UK_3 KC_3 // 3
|
|
|
|
#define UK_4 KC_4 // 4
|
|
|
|
#define UK_5 KC_5 // 5
|
|
|
|
#define UK_6 KC_6 // 6
|
|
|
|
#define UK_7 KC_7 // 7
|
|
|
|
#define UK_8 KC_8 // 8
|
|
|
|
#define UK_9 KC_9 // 9
|
|
|
|
#define UK_0 KC_0 // 0
|
|
|
|
#define UK_MINS KC_MINS // -
|
|
|
|
#define UK_EQL KC_EQL // =
|
|
|
|
// Row 2
|
|
|
|
#define UK_Q KC_Q // Q
|
|
|
|
#define UK_W KC_W // W
|
|
|
|
#define UK_E KC_E // E
|
|
|
|
#define UK_R KC_R // R
|
|
|
|
#define UK_T KC_T // T
|
|
|
|
#define UK_Y KC_Y // Y
|
|
|
|
#define UK_U KC_U // U
|
|
|
|
#define UK_I KC_I // I
|
|
|
|
#define UK_O KC_O // O
|
|
|
|
#define UK_P KC_P // P
|
|
|
|
#define UK_LBRC KC_LBRC // [
|
|
|
|
#define UK_RBRC KC_RBRC // ]
|
|
|
|
// Row 3
|
|
|
|
#define UK_A KC_A // A
|
|
|
|
#define UK_S KC_S // S
|
|
|
|
#define UK_D KC_D // D
|
|
|
|
#define UK_F KC_F // F
|
|
|
|
#define UK_G KC_G // G
|
|
|
|
#define UK_H KC_H // H
|
|
|
|
#define UK_J KC_J // J
|
|
|
|
#define UK_K KC_K // K
|
|
|
|
#define UK_L KC_L // L
|
|
|
|
#define UK_SCLN KC_SCLN // ;
|
|
|
|
#define UK_QUOT KC_QUOT // '
|
|
|
|
#define UK_HASH KC_NUHS // #
|
|
|
|
// Row 4
|
|
|
|
#define UK_BSLS KC_NUBS // (backslash)
|
|
|
|
#define UK_Z KC_Z // Z
|
|
|
|
#define UK_X KC_X // X
|
|
|
|
#define UK_C KC_C // C
|
|
|
|
#define UK_V KC_V // V
|
|
|
|
#define UK_B KC_B // B
|
|
|
|
#define UK_N KC_N // N
|
|
|
|
#define UK_M KC_M // M
|
|
|
|
#define UK_COMM KC_COMM // ,
|
|
|
|
#define UK_DOT KC_DOT // .
|
|
|
|
#define UK_SLSH KC_SLSH // /
|
2018-03-17 04:39:51 +08:00
|
|
|
|
2020-03-18 08:09:12 +08:00
|
|
|
/* Shifted symbols
|
|
|
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ ¬ │ ! │ " │ £ │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ │
|
|
|
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
|
|
|
* │ │ │ │ │ │ │ │ │ │ │ : │ @ │ ~ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ | │ │ │ │ │ │ │ │ < │ > │ ? │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ │ │ │ │ │ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
|
|
|
*/
|
|
|
|
// Row 1
|
|
|
|
#define UK_NOT S(UK_GRV) // ¬
|
|
|
|
#define UK_EXLM S(UK_1) // !
|
|
|
|
#define UK_DQUO S(UK_2) // "
|
|
|
|
#define UK_PND S(UK_3) // £
|
|
|
|
#define UK_DLR S(UK_4) // $
|
|
|
|
#define UK_PERC S(UK_5) // %
|
|
|
|
#define UK_CIRC S(UK_6) // ^
|
|
|
|
#define UK_AMPR S(UK_7) // &
|
|
|
|
#define UK_ASTR S(UK_8) // *
|
|
|
|
#define UK_LPRN S(UK_9) // (
|
|
|
|
#define UK_RPRN S(UK_0) // )
|
|
|
|
#define UK_UNDS S(UK_MINS) // _
|
|
|
|
#define UK_PLUS S(UK_EQL) // +
|
|
|
|
// Row 2
|
|
|
|
#define UK_LCBR S(UK_LBRC) // {
|
|
|
|
#define UK_RCBR S(UK_RBRC) // }
|
|
|
|
// Row 3
|
|
|
|
#define UK_COLN S(UK_SCLN) // :
|
|
|
|
#define UK_AT S(UK_QUOT) // @
|
|
|
|
#define UK_TILD S(UK_HASH) // ~
|
|
|
|
// Row 4
|
|
|
|
#define UK_PIPE S(UK_BSLS) // |
|
|
|
|
#define UK_LABK S(UK_COMM) // <
|
|
|
|
#define UK_RABK S(UK_DOT) // >
|
|
|
|
#define UK_QUES S(UK_SLSH) // ?
|
2018-03-17 04:39:51 +08:00
|
|
|
|
2020-03-18 08:09:12 +08:00
|
|
|
/* AltGr symbols
|
|
|
|
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ ¦ │ │ │ │ € │ │ │ │ │ │ │ │ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ │ │ É │ │ │ │ Ú │ Í │ Ó │ │ │ │ │
|
|
|
|
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
|
|
|
* │ │ Á │ │ │ │ │ │ │ │ │ │ │ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
2021-07-01 14:41:51 +08:00
|
|
|
* │ │ │ │ │ │ │ │ │
|
2020-03-18 08:09:12 +08:00
|
|
|
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
|
|
|
*/
|
|
|
|
// Row 1
|
2020-03-22 17:45:27 +08:00
|
|
|
#define UK_BRKP ALGR(UK_GRV) // ¦
|
|
|
|
#define UK_EURO ALGR(UK_4) // €
|
2020-03-18 08:09:12 +08:00
|
|
|
// Row 2
|
2020-03-22 17:45:27 +08:00
|
|
|
#define UK_EACU ALGR(KC_E) // É
|
|
|
|
#define UK_UACU ALGR(KC_U) // Ú
|
|
|
|
#define UK_IACU ALGR(KC_I) // Í
|
|
|
|
#define UK_OACU ALGR(KC_O) // Ó
|
2020-03-18 08:09:12 +08:00
|
|
|
// Row 3
|
2020-03-22 17:45:27 +08:00
|
|
|
#define UK_AACU ALGR(KC_A) // Á
|