aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/dz60/keymaps/macos_arrow/keymap.c77
-rw-r--r--keyboards/dz60/keymaps/macos_arrow/readme.md39
2 files changed, 76 insertions, 40 deletions
diff --git a/keyboards/dz60/keymaps/macos_arrow/keymap.c b/keyboards/dz60/keymaps/macos_arrow/keymap.c
index f4b03ddc9..9a3120afd 100644
--- a/keyboards/dz60/keymaps/macos_arrow/keymap.c
+++ b/keyboards/dz60/keymaps/macos_arrow/keymap.c
@@ -1,9 +1,9 @@
1#include QMK_KEYBOARD_H 1#include QMK_KEYBOARD_H
2 2
3#define ______ KC_TRNS 3#define _BL 0 // Base layer
4#define _BL 0 4#define _FL 1 // Function layer
5#define _FL 1 5#define _ML 2 // Media layer
6#define _ML 2 6#define _NL 2 // Numpad layer
7 7
8enum my_keycodes { 8enum my_keycodes {
9 BR_UP = SAFE_RANGE, 9 BR_UP = SAFE_RANGE,
@@ -12,45 +12,45 @@ enum my_keycodes {
12 12
13const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 13const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
14 /* ,-----------------------------------------------------------------------------------------. 14 /* ,-----------------------------------------------------------------------------------------.
15 * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace | 15 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
16 * |-----------------------------------------------------------------------------------------+ 16 * |-----------------------------------------------------------------------------------------+
17 * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | 17 * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
18 * |-----------------------------------------------------------------------------------------+ 18 * |-----------------------------------------------------------------------------------------+
19 * | _FL | A | S | D | F | G | H | J | K | L | ; | ' | Enter | 19 * | Esc/_FL | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
20 * |-----------------------------------------------------------------------------------------+ 20 * |-----------------------------------------------------------------------------------------+
21 * | Shift | Z | X | C | V | B | N | M | , | . | / | _ML | Up |Shift| 21 * | Shift | Z | X | C | V | B | N | M | , | . | / | | Up |Shift|
22 * |-----------------------------------------------------------------------------------------+ 22 * |-----------------------------------------------------------------------------------------+
23 * | Ctrl | Alt | Gui | Space |Gui/_ML| Alt | Left| Down|Right| 23 * | Ctrl | Alt | Gui | Space / _NL |Gui/_ML| Alt | Left| Down|Right|
24 * `-----------------------------------------------------------------------------------------' 24 * `-----------------------------------------------------------------------------------------'
25 */ 25 */
26 [_BL] = LAYOUT_2_shifts( 26 [_BL] = LAYOUT_2_shifts(
27 KC_GESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSPC, 27 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSPC,
28 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, 28 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS,
29 MO(_FL), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, 29 LT(_FL, KC_ESC), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
30 KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(_ML), KC_UP, KC_RSFT, 30 KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_A, KC_UP, KC_RSFT,
31 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, KC_SPC, LM(_ML, MOD_RGUI), KC_RALT, KC_LEFT, KC_DOWN, KC_RIGHT), 31 KC_LCTL, KC_LALT, KC_LGUI, KC_NO, LT(_NL, KC_SPC), KC_NO, LM(_ML, MOD_RGUI), KC_RALT, KC_LEFT, KC_DOWN, KC_RIGHT),
32 32
33 /* ,-----------------------------------------------------------------------------------------. 33 /* ,-----------------------------------------------------------------------------------------.
34 * | ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Del | 34 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Del |
35 * |-----------------------------------------------------------------------------------------+ 35 * |-----------------------------------------------------------------------------------------+
36 * | | | | | | | | | UP | | | | | | 36 * | | | | | | | |PgUp | | | | | | |
37 * |-----------------------------------------------------------------------------------------+ 37 * |-----------------------------------------------------------------------------------------+
38 * | | | | | | | | Left| Down|Right| | | | 38 * | | | | | | | Left| Down| Up |Right| | | |
39 * |-----------------------------------------------------------------------------------------+ 39 * |-----------------------------------------------------------------------------------------+
40 * | | | | | | | | | | | | | | | 40 * | | | | | | | |PgDwn| | | | | | |
41 * |-----------------------------------------------------------------------------------------+ 41 * |-----------------------------------------------------------------------------------------+
42 * | | | | | | | | | | 42 * | | | | | | | | | |
43 * `-----------------------------------------------------------------------------------------' 43 * `-----------------------------------------------------------------------------------------'
44 */ 44 */
45 [_FL] = LAYOUT( 45 [_FL] = LAYOUT_2_shifts(
46 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, ______, KC_DEL, 46 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NO, KC_DEL,
47 ______, ______, ______, ______, ______, ______, ______, ______, KC_UP, ______, ______, ______, ______, ______, 47 _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, _______, _______, _______, _______,
48 ______, ______, ______, ______, ______, ______, ______, KC_LEFT, KC_DOWN, KC_RIGHT, ______, ______, ______, 48 _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______,
49 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, 49 _______, KC_NO, _______, _______, _______, _______, _______, _______, KC_PGDN, _______, _______, _______, _______, _______, _______,
50 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______), 50 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
51 51
52 /* ,-----------------------------------------------------------------------------------------. 52 /* ,-----------------------------------------------------------------------------------------.
53 * |Eject| BR- | BR+ | F3 | F4 | | |PREV |PLAY |NEXT |MUTE | V- | V+ | | 53 * |Eject| BR- | BR+ | | | | |PREV |PLAY |NEXT |MUTE | V- | V+ | |
54 * |-----------------------------------------------------------------------------------------+ 54 * |-----------------------------------------------------------------------------------------+
55 * | | | | | | | | | | | | | | Reset | 55 * | | | | | | | | | | | | | | Reset |
56 * |-----------------------------------------------------------------------------------------+ 56 * |-----------------------------------------------------------------------------------------+
@@ -61,12 +61,31 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
61 * | | | | | | | | | | 61 * | | | | | | | | | |
62 * `-----------------------------------------------------------------------------------------' 62 * `-----------------------------------------------------------------------------------------'
63 */ 63 */
64 [_ML] = LAYOUT( 64 [_ML] = LAYOUT_2_shifts(
65 KC_MEDIA_EJECT, BR_DOWN, BR_UP, ______, ______, KC_F5, KC_F6, KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, ______, ______, 65 KC_MEDIA_EJECT, BR_DOWN, BR_UP, _______, _______, _______, _______, KC_MEDIA_PREV_TRACK, KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK, KC_AUDIO_MUTE, KC_AUDIO_VOL_DOWN, KC_AUDIO_VOL_UP, KC_NO, _______,
66 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, RESET, 66 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
67 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, 67 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
68 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, 68 _______, KC_NO, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
69 ______, ______, ______, ______, ______, ______, ______, ______, ______, ______, ______), 69 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
70
71 /* ,-----------------------------------------------------------------------------------------.
72 * | | | | | | | | | % | ( | ) | < | > | |
73 * |-----------------------------------------------------------------------------------------+
74 * | | | | | | | | * | 0 | 1 | 2 | 3 | | |
75 * |-----------------------------------------------------------------------------------------+
76 * | | | | | | | | . | - | 4 | 5 | 6 | |
77 * |-----------------------------------------------------------------------------------------+
78 * | | | | | | | | , | = | 7 | 8 | 9 | | |
79 * |-----------------------------------------------------------------------------------------+
80 * | | | | | | | | | |
81 * `-----------------------------------------------------------------------------------------'
82 */
83 [_NL] = LAYOUT_2_shifts(
84 _______, _______, _______, _______, _______, _______, _______, _______, KC_PERCENT, KC_LEFT_PAREN, KC_RIGHT_PAREN, KC_LEFT_ANGLE_BRACKET, KC_RIGHT_ANGLE_BRACKET, KC_NO, _______,
85 _______, _______, _______, _______, _______, _______, _______, KC_ASTERISK, KC_0, KC_1, KC_2, KC_3, _______, RESET,
86 _______, _______, _______, _______, _______, _______, _______, KC_DOT, KC_MINS, KC_4, KC_5, KC_6, _______,
87 _______, KC_NO, _______, _______, _______, _______, _______, _______, KC_COMMA, KC_EQL, KC_7, KC_8, KC_9, _______, _______,
88 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______),
70}; 89};
71 90
72bool process_record_user(uint16_t keycode, keyrecord_t *record) { 91bool process_record_user(uint16_t keycode, keyrecord_t *record) {
diff --git a/keyboards/dz60/keymaps/macos_arrow/readme.md b/keyboards/dz60/keymaps/macos_arrow/readme.md
index bba8148ba..cb700b38f 100644
--- a/keyboards/dz60/keymaps/macos_arrow/readme.md
+++ b/keyboards/dz60/keymaps/macos_arrow/readme.md
@@ -15,21 +15,22 @@ My build used the following components:
15 15
16``` 16```
17,-----------------------------------------------------------------------------------------. 17,-----------------------------------------------------------------------------------------.
18| Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace | 18| ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |
19|-----------------------------------------------------------------------------------------+ 19|-----------------------------------------------------------------------------------------+
20| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ | 20| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
21|-----------------------------------------------------------------------------------------+ 21|-----------------------------------------------------------------------------------------+
22| _FL | A | S | D | F | G | H | J | K | L | ; | ' | Enter | 22| _FL/Esc | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
23|-----------------------------------------------------------------------------------------+ 23|-----------------------------------------------------------------------------------------+
24| Shift | Z | X | C | V | B | N | M | , | . | / | _ML | Up |Shift| 24| Shift | Z | X | C | V | B | N | M | , | . | / | | Up |Shift|
25|-----------------------------------------------------------------------------------------+ 25|-----------------------------------------------------------------------------------------+
26| Ctrl | Alt | Cmd | Space |Cmd/_ML| Alt | Left| Down|Right| 26| Ctrl | Alt | Cmd | _NL / Space |Cmd/_ML| Alt | Left| Down|Right|
27`-----------------------------------------------------------------------------------------' 27`-----------------------------------------------------------------------------------------'
28``` 28```
29 29
30* The escape key use `KC_GESC` to get grave accent on any letter with ``Alt+Esc`` and `` ` `` alone with the ``Hyper+Esc``. The `~` is obtained with `Shift+Esc`. `GRAVE_ESC_GUI_OVERRIDE` is define so `Cmd+Alt+Esc` can still work. 30* The escape key is moved to the capslock to get keep grave letter pristine.
31* The `Caps-Lock` (`Hyper`) key switch to the function layer (`_FL`). 31* The `Caps-Lock` (`Hyper`) key switch to the function layer (`_FL`) or escape when used alone.
32* The right `Cmd` key is used to switch to the media layer (`_ML`) when used with keys mapped on that layer (the top row). Any other keys just act as a `Cmd+` that key. 32* The right `Cmd` key is used to switch to the media layer (`_ML`) when used with keys mapped on that layer.
33* The space key can be used to switch to the numpad layer (`_NL`) when used with one of the mapped key on that layer.
33 34
34## Function Layer (_FL) 35## Function Layer (_FL)
35 36
@@ -37,9 +38,9 @@ My build used the following components:
37,-----------------------------------------------------------------------------------------. 38,-----------------------------------------------------------------------------------------.
38| ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Del | 39| ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Del |
39|-----------------------------------------------------------------------------------------+ 40|-----------------------------------------------------------------------------------------+
40| | | | | | | | | UP | | | | | | 41| | | | | | | |PgDwn| PgUp| | | | | |
41|-----------------------------------------------------------------------------------------+ 42|-----------------------------------------------------------------------------------------+
42| | | | | | | | Left| Down|Right| | | | 43| | | | | | | Left| Down| Up |Right| | | |
43|-----------------------------------------------------------------------------------------+ 44|-----------------------------------------------------------------------------------------+
44| | | | | | | | | | | | | | | 45| | | | | | | | | | | | | | |
45|-----------------------------------------------------------------------------------------+ 46|-----------------------------------------------------------------------------------------+
@@ -47,13 +48,13 @@ My build used the following components:
47`-----------------------------------------------------------------------------------------' 48`-----------------------------------------------------------------------------------------'
48``` 49```
49 50
50The function layer is activated by the `Caps-Lock` (`Hyper`) key to access `F` keys. In addition, the `IJKL` are mapped as cursor keys on that layer. 51The function layer is activated by the `Caps-Lock` (`Hyper`) key to access `F` keys. In addition, the `HJKL` are mapped as cursor keys on that layer.
51 52
52## Media Layer (_ML) 53## Media Layer (_ML)
53 54
54``` 55```
55,-----------------------------------------------------------------------------------------. 56,-----------------------------------------------------------------------------------------.
56| | BR- | BR+ | F3 | F4 | | |PREV |PLAY |NEXT |MUTE | V- | V+ | Eject | 57|Eject| BR- | BR+ | | | | |PREV |PLAY |NEXT |MUTE | V- | V+ | |
57|-----------------------------------------------------------------------------------------+ 58|-----------------------------------------------------------------------------------------+
58| | | | | | | | | | | | | | Reset | 59| | | | | | | | | | | | | | Reset |
59|-----------------------------------------------------------------------------------------+ 60|-----------------------------------------------------------------------------------------+
@@ -67,4 +68,20 @@ The function layer is activated by the `Caps-Lock` (`Hyper`) key to access `F` k
67 68
68The media layer is activated by the right `Cmd` (`FN`) key. It contains the typical macos media keys on the top row. Blank keys act as `Cmd+` that key on the base layer. 69The media layer is activated by the right `Cmd` (`FN`) key. It contains the typical macos media keys on the top row. Blank keys act as `Cmd+` that key on the base layer.
69 70
71## Numpad Layer (_NL)
70 72
73```
74,-----------------------------------------------------------------------------------------.
75| | | | | | | | | % | ( | ) | < | > | |
76|-----------------------------------------------------------------------------------------+
77| | | | | | | | * | 0 | 1 | 2 | 3 | | |
78|-----------------------------------------------------------------------------------------+
79| | | | | | | | . | - | 4 | 5 | 6 | |
80|-----------------------------------------------------------------------------------------+
81| | | | | | | | , | = | 7 | 8 | 9 | | |
82|-----------------------------------------------------------------------------------------+
83| | | | | | | | | |
84`-----------------------------------------------------------------------------------------'
85```
86
87The numpad layer is activated by the space bar, when hold. \ No newline at end of file