|
|
- /* Copyright 2017 Potiguar Faga
- *
- * 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 │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ ´ │ [ │ │
- * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
- * │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Ç │ ~ │ ] │ │
- * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┤
- * │ │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ ; │ / │ │
- * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬──┴─┬────┤
- * │ │ │ │ │ │ │ │ │
- * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
- */
- // Row 1
- #define BR_QUOT KC_GRV // '
- #define BR_1 KC_1 // 1
- #define BR_2 KC_2 // 2
- #define BR_3 KC_3 // 3
- #define BR_4 KC_4 // 4
- #define BR_5 KC_5 // 5
- #define BR_6 KC_6 // 6
- #define BR_7 KC_7 // 7
- #define BR_8 KC_8 // 8
- #define BR_9 KC_9 // 9
- #define BR_0 KC_0 // 0
- #define BR_MINS KC_MINS // -
- #define BR_EQL KC_EQL // =
- // Row 2
- #define BR_Q KC_Q // Q
- #define BR_W KC_W // W
- #define BR_E KC_E // E
- #define BR_R KC_R // R
- #define BR_T KC_T // T
- #define BR_Y KC_Y // Y
- #define BR_U KC_U // U
- #define BR_I KC_I // I
- #define BR_O KC_O // O
- #define BR_P KC_P // P
- #define BR_ACUT KC_LBRC // ´ (dead)
- #define BR_LBRC KC_RBRC // [
- // Row 3
- #define BR_A KC_A // A
- #define BR_S KC_S // S
- #define BR_D KC_D // D
- #define BR_F KC_F // F
- #define BR_G KC_G // G
- #define BR_H KC_H // H
- #define BR_J KC_J // J
- #define BR_K KC_K // K
- #define BR_L KC_L // L
- #define BR_CCED KC_SCLN // Ç
- #define BR_TILD KC_QUOT // ~ (dead)
- #define BR_RBRC KC_BSLS // ]
- // Row 4
- #define BR_BSLS KC_NUBS // (backslash)
- #define BR_Z KC_Z // Z
- #define BR_X KC_X // X
- #define BR_C KC_C // C
- #define BR_V KC_V // V
- #define BR_B KC_B // B
- #define BR_N KC_N // N
- #define BR_M KC_M // M
- #define BR_COMM KC_COMM // ,
- #define BR_DOT KC_DOT // .
- #define BR_SCLN KC_SLSH // ;
- #define BR_SLSH KC_INT1 // /
- // Numpad
- #define BR_PDOT KC_PCMM // .
- #define BR_PCMM KC_PDOT // ,
-
- /* Shifted symbols
- * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
- * │ " │ ! │ @ │ # │ $ │ % │ ¨ │ & │ * │ ( │ ) │ _ │ + │ │
- * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
- * │ │ │ │ │ │ │ │ │ │ │ │ ` │ { │ │
- * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
- * │ │ │ │ │ │ │ │ │ │ │ │ ^ │ } │ │
- * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┤
- * │ │ | │ │ │ │ │ │ │ │ < │ > │ : │ ? │ │
- * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬──┴─┬────┤
- * │ │ │ │ │ │ │ │ │
- * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
- */
- // Row 1
- #define BR_DQUO S(BR_QUOT) // "
- #define BR_EXLM S(BR_1) // !
- #define BR_AT S(BR_2) // @
- #define BR_HASH S(BR_3) // #
- #define BR_DLR S(BR_4) // $
- #define BR_PERC S(BR_5) // %
- #define BR_DIAE S(BR_6) // ¨ (dead)
- #define BR_AMPR S(BR_7) // &
- #define BR_ASTR S(BR_8) // *
- #define BR_LPRN S(BR_9) // (
- #define BR_RPRN S(BR_0) // )
- #define BR_UNDS S(BR_MINS) // _
- #define BR_PLUS S(BR_EQL) // +
- // Row 2
- #define BR_GRV S(BR_ACUT) // ` (dead)
- #define BR_LCBR S(BR_LBRC) // {
- // Row 3
- #define BR_CIRC S(BR_TILD) // ^ (dead)
- #define BR_RCBR S(BR_RBRC) // }
- // Row 4
- #define BR_PIPE S(BR_BSLS) // |
- #define BR_LABK S(BR_COMM) // <
- #define BR_RABK S(BR_DOT) // >
- #define BR_COLN S(BR_SCLN) // :
- #define BR_QUES S(BR_SLSH) // ?
-
- /* AltGr symbols
- * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
- * │ │ ¹ │ ² │ ³ │ £ │ ¢ │ ¬ │ │ │ │ │ │ § │ │
- * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
- * │ │ │ │ ° │ │ │ │ │ │ │ │ │ ª │ │
- * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
- * │ │ │ │ │ │ │ │ │ │ │ │ │ º │ │
- * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┤
- * │ │ │ │ │ ₢ │ │ │ │ │ │ │ │ │ │
- * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬──┴─┬────┤
- * │ │ │ │ │ │ │ │ │
- * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
- */
- // Row 1
- #define BR_SUP1 ALGR(BR_1) // ¹
- #define BR_SUP2 ALGR(BR_2) // ²
- #define BR_SUP3 ALGR(BR_3) // ³
- #define BR_PND ALGR(BR_4) // £
- #define BR_CENT ALGR(BR_5) // ¢
- #define BR_NOT ALGR(BR_6) // ¬
- #define BR_SECT ALGR(BR_EQL) // §
- // Row 2
- #define BR_DEG ALGR(BR_E) // °
- #define BR_FORD ALGR(BR_LBRC) // ª
- // Row 3
- #define BR_MORD ALGR(BR_RBRC) // º
- // Row 4
- #define BR_CRUZ ALGR(BR_C) // ₢
|