mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-27 03:28:46 +06:00
6c8d815f2e
* Update Dvorak, Colemak and Workman keycode aliases * Add missing shifted keycode aliases for Workman
155 lines
7.0 KiB
C
155 lines
7.0 KiB
C
/* Copyright 2018 Jacob Jerrell
|
||
*
|
||
* 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/>.
|
||
*/
|
||
|
||
#pragma once
|
||
|
||
#include "keymap.h"
|
||
|
||
// clang-format off
|
||
|
||
/*
|
||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||
* │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │
|
||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||
* │ │ Q │ D │ R │ W │ B │ J │ F │ U │ P │ ; │ [ │ ] │ \ │
|
||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||
* │ │ A │ S │ H │ T │ G │ Y │ N │ E │ O │ I │ ' │ │
|
||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||
* │ │ Z │ X │ M │ C │ V │ K │ L │ , │ . │ / │ │
|
||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||
* │ │ │ │ │ │ │ │ │
|
||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||
*/
|
||
// Row 1
|
||
#define WK_GRV KC_GRV // `
|
||
#define WK_1 KC_1 // 1
|
||
#define WK_2 KC_2 // 2
|
||
#define WK_3 KC_3 // 3
|
||
#define WK_4 KC_4 // 4
|
||
#define WK_5 KC_5 // 5
|
||
#define WK_6 KC_6 // 6
|
||
#define WK_7 KC_7 // 7
|
||
#define WK_8 KC_8 // 8
|
||
#define WK_9 KC_9 // 9
|
||
#define WK_0 KC_0 // 0
|
||
#define WK_MINS KC_MINS // -
|
||
#define WK_EQL KC_EQL // =
|
||
// Row 2
|
||
#define WK_Q KC_Q // Q
|
||
#define WK_D KC_W // D
|
||
#define WK_R KC_E // R
|
||
#define WK_W KC_R // W
|
||
#define WK_B KC_T // B
|
||
#define WK_J KC_Y // J
|
||
#define WK_F KC_U // F
|
||
#define WK_U KC_I // U
|
||
#define WK_P KC_O // P
|
||
#define WK_SCLN KC_P // ;
|
||
#define WK_LBRC KC_LBRC // [
|
||
#define WK_RBRC KC_RBRC // ]
|
||
#define WK_BSLS KC_BSLS // (backslash)
|
||
// Row 3
|
||
#define WK_A KC_A // A
|
||
#define WK_S KC_S // S
|
||
#define WK_H KC_D // H
|
||
#define WK_T KC_F // T
|
||
#define WK_G KC_G // G
|
||
#define WK_Y KC_H // Y
|
||
#define WK_N KC_J // N
|
||
#define WK_E KC_K // E
|
||
#define WK_O KC_L // O
|
||
#define WK_I KC_SCLN // I
|
||
#define WK_QUOT KC_QUOT // '
|
||
// Row 4
|
||
#define WK_Z KC_Z // Z
|
||
#define WK_X KC_X // X
|
||
#define WK_M KC_C // M
|
||
#define WK_C KC_V // C
|
||
#define WK_V KC_B // V
|
||
#define WK_K KC_N // K
|
||
#define WK_L KC_M // L
|
||
#define WK_COMM KC_COMM // ,
|
||
#define WK_DOT KC_DOT // .
|
||
#define WK_SLSH KC_SLSH // /
|
||
|
||
/* Shifted symbols
|
||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||
* │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
|
||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||
* │ │ │ │ │ │ │ │ │ │ │ : │ { │ } │ | │
|
||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
|
||
* │ │ │ │ │ │ │ │ │ │ │ │ " │ │
|
||
* ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
|
||
* │ │ │ │ │ │ │ │ │ < │ > │ ? │ │
|
||
* ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||
* │ │ │ │ │ │ │ │ │
|
||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||
*/
|
||
// Row 1
|
||
#define WK_TILD S(WK_GRV) // ~
|
||
#define WK_EXLM S(WK_1) // !
|
||
#define WK_AT S(WK_2) // @
|
||
#define WK_HASH S(WK_3) // #
|
||
#define WK_DLR S(WK_4) // $
|
||
#define WK_PERC S(WK_5) // %
|
||
#define WK_CIRC S(WK_6) // ^
|
||
#define WK_AMPR S(WK_7) // &
|
||
#define WK_ASTR S(WK_8) // *
|
||
#define WK_LPRN S(WK_9) // (
|
||
#define WK_RPRN S(WK_0) // )
|
||
#define WK_UNDS S(WK_MINS) // _
|
||
#define WK_PLUS S(WK_EQL) // +
|
||
// Row 2
|
||
#define WK_COLN S(WK_SCLN) // :
|
||
#define WK_LCBR S(WK_LBRC) // {
|
||
#define WK_RCBR S(WK_RBRC) // }
|
||
#define WK_PIPE S(WK_BSLS) // |
|
||
// Row 3
|
||
#define WK_DQUO S(WK_QUOT) // "
|
||
// Row 4
|
||
#define WK_LABK S(WK_COMM) // <
|
||
#define WK_RABK S(WK_DOT) // >
|
||
#define WK_QUES S(WK_SLSH) // ?
|
||
|
||
// DEPRECATED
|
||
#define KC_WK_Q WK_Q
|
||
#define KC_WK_D WK_D
|
||
#define KC_WK_R WK_R
|
||
#define KC_WK_W WK_W
|
||
#define KC_WK_B WK_B
|
||
#define KC_WK_J WK_J
|
||
#define KC_WK_F WK_F
|
||
#define KC_WK_U WK_U
|
||
#define KC_WK_P WK_P
|
||
#define KC_WK_SCLN WK_SCLN
|
||
#define KC_WK_A WK_A
|
||
#define KC_WK_S WK_S
|
||
#define KC_WK_H WK_H
|
||
#define KC_WK_T WK_T
|
||
#define KC_WK_G WK_G
|
||
#define KC_WK_Y WK_Y
|
||
#define KC_WK_N WK_N
|
||
#define KC_WK_E WK_E
|
||
#define KC_WK_O WK_O
|
||
#define KC_WK_I WK_I
|
||
#define KC_WK_Z WK_Z
|
||
#define KC_WK_X WK_X
|
||
#define KC_WK_M WK_M
|
||
#define KC_WK_C WK_C
|
||
#define KC_WK_V WK_V
|
||
#define KC_WK_K WK_K
|
||
#define KC_WK_L WK_L
|