summaryrefslogtreecommitdiff
path: root/quantum/keymap_extras
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-10-07 23:36:38 +0100
committerGitHub <noreply@github.com>2022-10-07 23:36:38 +0100
commitf090cfe75ca3978c08d22b77bb478fb22638b3d9 (patch)
tree4f43be38a1b54dac5bf3868e3d356e0c0c340938 /quantum/keymap_extras
parent9e1ff0e6b95820d6cbe21f9bf3cc2a4f8633114a (diff)
Relocate US ANSI shifted keycode aliases (#18634)
Diffstat (limited to 'quantum/keymap_extras')
-rw-r--r--quantum/keymap_extras/keymap_us.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/quantum/keymap_extras/keymap_us.h b/quantum/keymap_extras/keymap_us.h
new file mode 100644
index 0000000000..b18c701679
--- /dev/null
+++ b/quantum/keymap_extras/keymap_us.h
@@ -0,0 +1,72 @@
1// Copyright 2022 QMK
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "keymap.h"
7
8// clang-format off
9
10/* Shifted symbols
11 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
12 * │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
13 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
14 * │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ | │
15 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
16 * │ │ │ │ │ │ │ │ │ │ │ : │ " │ │
17 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
18 * │ │ │ │ │ │ │ │ │ < │ > │ ? │ │
19 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
20 * │ │ │ │ │ │ │ │ │
21 * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
22 */
23// Row 1
24#define KC_TILD S(KC_GRAVE) // ~
25#define KC_EXLM S(KC_1) // !
26#define KC_AT S(KC_2) // @
27#define KC_HASH S(KC_3) // #
28#define KC_DLR S(KC_4) // $
29#define KC_PERC S(KC_5) // %
30#define KC_CIRC S(KC_6) // ^
31#define KC_AMPR S(KC_7) // &
32#define KC_ASTR S(KC_8) // *
33#define KC_LPRN S(KC_9) // (
34#define KC_RPRN S(KC_0) // )
35#define KC_UNDS S(KC_MINUS) // _
36#define KC_PLUS S(KC_EQUAL) // +
37// Row 2
38#define KC_LCBR S(KC_LEFT_BRACKET) // {
39#define KC_RCBR S(KC_RIGHT_BRACKET) // }
40#define KC_PIPE S(KC_BACKSLASH) // |
41// Row 3
42#define KC_COLN S(KC_SEMICOLON) // :
43#define KC_DQUO S(KC_QUOTE) // "
44// Row 4
45#define KC_LABK S(KC_COMMA) // <
46#define KC_RABK S(KC_DOT) // >
47#define KC_QUES S(KC_SLASH) // ?
48
49// alias stuff
50#define KC_TILDE KC_TILD
51#define KC_EXCLAIM KC_EXLM
52#define KC_DOLLAR KC_DLR
53#define KC_PERCENT KC_PERC
54#define KC_CIRCUMFLEX KC_CIRC
55#define KC_AMPERSAND KC_AMPR
56#define KC_ASTERISK KC_ASTR
57#define KC_LEFT_PAREN KC_LPRN
58#define KC_RIGHT_PAREN KC_RPRN
59#define KC_UNDERSCORE KC_UNDS
60
61#define KC_LEFT_CURLY_BRACE KC_LCBR
62#define KC_RIGHT_CURLY_BRACE KC_RCBR
63
64#define KC_COLON KC_COLN
65#define KC_DOUBLE_QUOTE KC_DQUO
66#define KC_DQT KC_DQUO
67
68#define KC_LEFT_ANGLE_BRACKET KC_LABK
69#define KC_LT KC_LABK
70#define KC_RIGHT_ANGLE_BRACKET KC_RABK
71#define KC_GT KC_RABK
72#define KC_QUESTION KC_QUES