aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h27
-rw-r--r--keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c128
-rw-r--r--keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md51
3 files changed, 206 insertions, 0 deletions
diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h
new file mode 100644
index 000000000..59fc46d26
--- /dev/null
+++ b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/config.h
@@ -0,0 +1,27 @@
1 /* Copyright 2021 Jesper Nellemann Jakobsen
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#define MOUSEKEY_DELAY 0 // default is 300ms
20#define MOUSEKEY_INTERVAL 16 // ~ 60Hz (1/60)
21#define MOUSEKEY_MAX_SPEED 8 // default is 10; the lower interval, the lower this ought to be
22#define MOUSEKEY_TIME_TO_MAX 15 // default is 20
23
24#define MOUSEKEY_WHEEL_DELAY 0 // default is 300ms
25#define MOUSEKEY_WHEEL_INTERVAL 50 // default is 100ms
26#define MOUSEKEY_WHEEL_MAX_SPEED 10 // default is 8
27#define MOUSEKEY_WHEEL_TIME_TO_MAX 30 // default is 40
diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c
new file mode 100644
index 000000000..63282e8b6
--- /dev/null
+++ b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/keymap.c
@@ -0,0 +1,128 @@
1 /* Copyright 2021 Jesper Nellemann Jakobsen
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include QMK_KEYBOARD_H
18
19enum layers {
20 _BASE,
21 _ARROWS,
22 _HDUE, /* Home, pgDown, pgUp, End */
23 _MOUSE,
24 _FN
25};
26
27/* Custom keys */
28
29/* Word movement/deletetion */
30#define WORD_BK A(KC_LEFT)
31#define WORD_FW A(KC_RIGHT)
32#define D_WORD_BK A(KC_BSPACE)
33#define D_WORD_FW A(KC_DELETE)
34/* Fine volume control */
35#define FVOLU S(A(KC_VOLU))
36#define F_VOLD S(A(KC_VOLD))
37/* Multi-purpose keys */
38#define HYPR_CAPS ALL_T(KC_CAPS)
39#define CTL_ESC LCTL_T(KC_ESC)
40/* Layer keys */
41#define ARROWS LT(_ARROWS, KC_D)
42#define HDUE MO(_HDUE)
43#define MOUSP LT(_MOUSE, KC_SPC)
44#define FN MO(_FN)
45
46const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
47 /* Default layer:
48 * Space Cadet shifts (parentheses on tap)
49 * Caps Lock is Control on hold, Esc on tap
50 * Hyper/Caps Lock on Control keys
51 * Hold D to activate layer 1 (Arrows)
52 * Hold Space to activate layer 3 (Mouse keys)
53 * Hold FN to activate layer 4 (FN layer)
54 */
55 [_BASE] = LAYOUT_60_ansi(
56 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_BSPC,
57 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,
58 CTL_ESC, KC_A, KC_S, ARROWS, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
59 KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSPC,
60 HYPR_CAPS, KC_LALT, KC_LGUI, MOUSP, KC_RGUI, KC_RALT, FN, HYPR_CAPS
61 ),
62
63 /* Layer 1:
64 * Vim arrows (HJKL)
65 * Vim-like move across words with W(ord), and B(eginning)
66 * Media controls (fine volume controls using Option+Shift)
67 * Backspace/Del on N/M
68 * Hold F to activate layer 2 (HDUE: Home, Down, Up, End)
69 */
70 [_ARROWS] = LAYOUT_60_ansi(
71 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
72 _______, _______, WORD_FW, _______, _______, _______, _______, KC_MPRV, KC_MPLY, KC_MNXT, KC_MUTE, F_VOLD, FVOLU, _______,
73 _______, _______, _______, _______, HDUE, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, _______,
74 _______, _______, _______, _______, _______, WORD_BK, KC_BSPC, KC_DEL, _______, _______, _______, _______,
75 _______, _______, _______, _______, _______, _______, _______, _______
76 ),
77
78 /* Layer 2:
79 * Home, Page Down, Page Up, End
80 * Delete word forward/back on W/B
81 */
82 [_HDUE] = LAYOUT_60_ansi(
83 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
84 _______, _______, D_WORD_FW, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
85 _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, _______,
86 _______, _______, _______, _______, _______, D_WORD_BK, _______, _______, _______, _______, _______, _______,
87 _______, _______, _______, _______, _______, _______, _______, _______
88 ),
89
90 /* Layer 3:
91 * Mouse keys
92 * Cursor movement: HJKL
93 * MB 1, 2, and 3 on F, D, and S, respectively
94 * Mouse wheel: up (V), down (R) (reversed because of Natural Scrolling)
95 * Change mouse acceleration on U, I, O (0, 1, 2)
96 */
97 [_MOUSE] = LAYOUT_60_ansi(
98 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
99 _______, _______, _______, _______, KC_WH_D, _______, _______, KC_ACL0, KC_ACL1, KC_ACL2, _______, _______, _______, _______,
100 _______, _______, KC_BTN3, KC_BTN2, KC_BTN1, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______, _______, _______,
101 _______, _______, _______, _______, KC_WH_U, _______, _______, _______, _______, _______, _______, _______,
102 _______, _______, _______, _______, _______, _______, _______, _______
103 ),
104
105 /* Layer 4:
106 * F1-12
107 * Del on backspace
108 * Lots of RGB controls
109 * RESET firmware on backslash
110 * Screen brightness: Z (decrease), X (increase)
111 */
112 [_FN] = LAYOUT_60_ansi(
113 _______, 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,
114 _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, RGB_M_P, RGB_M_B, RGB_M_R, _______, _______, _______, RESET,
115 _______, _______, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, RGB_M_SW, RGB_M_SN, RGB_M_K, _______, _______, _______,
116 _______, KC_BRID, KC_BRIU, _______, _______, _______, _______, RGB_M_X, RGB_M_G, RGB_M_T, _______, _______,
117 _______, _______, _______, _______, _______, _______, _______, _______
118 )
119
120 // TEMPLATE
121 // LAYOUT_60_ansi(
122 // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
123 // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
124 // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
125 // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
126 // _______, _______, _______, _______, _______, _______, _______, _______,
127 // ),
128};
diff --git a/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md
new file mode 100644
index 000000000..5f65c349d
--- /dev/null
+++ b/keyboards/dztech/dz60rgb_ansi/keymaps/bingocaller/readme.md
@@ -0,0 +1,51 @@
1# MacOS standard-ish 60% keymap with Vim-like arrows
2
3This is a MacOS-specific keymap for DZ60 RGB ANSI with a bit of Vim arrows and other niceties.
4
5## Base Layer
6
7![Graphical representation of the Base Layer](https://i.imgur.com/L66C3ya.png)
8
9* Space Cadet shifts (parentheses on tap)
10* Caps Lock is Control on hold, Esc on tap
11* Hyper/Caps Lock on Control keys
12* Hold D to activate layer 1 (Arrows)
13* Hold Space to activate layer 3 (Mouse keys)
14* Hold FN to activate layer 4 (FN layer)
15
16## Layer 1: "Arrows"
17
18![Graphical representation of Layer 1](https://i.imgur.com/VirYuoO.png)
19
20* Vim arrows (HJKL)
21* Vim-like move across words with W(ord), and B(eginning)
22* Media controls (fine volume controls using Option+Shift)
23* Backspace/Del on N/M
24* Hold F to activate layer 2 (HDUE: Home, Down, Up, End)
25
26## Layer 2: "HDUE"
27
28![Graphical representation of Layer 2](https://i.imgur.com/xWMqCmD.png)
29
30* **H**ome, Page **D**own, Page **U**p, **E**nd
31* Delete word forward/back on W/B
32
33## Layer 3: "Mouse keys"
34
35![Graphical representation of Layer 3](https://i.imgur.com/x5vmAyK.png)
36
37* Mouse keys
38* Cursor movement: HJKL
39* MB 1, 2, and 3 on F, D, and S, respectively
40* Mouse wheel: up (V), down (R) (reversed because of Natural Scrolling)
41* Change mouse acceleration on U, I, O (0, 1, 2)
42
43## Layer 4: "The FN layer"
44
45![Graphical representation of Layer 4](https://i.imgur.com/6favpke.png)
46
47* F1-12
48* Del on backspace
49* Lots of RGB controls
50* RESET firmware on backslash
51* Screen brightness: Z (decrease), X (increase)