aboutsummaryrefslogtreecommitdiff
path: root/keyboards/xd75
diff options
context:
space:
mode:
authorDavid Rambo <davrambo@gmail.com>2021-07-02 22:30:32 -0700
committerGitHub <noreply@github.com>2021-07-02 22:30:32 -0700
commit170de06475c0b6c7a1a16bc6ac99f1994be17261 (patch)
treeb5625d27581629bf0a0ee3babd2ad4f8b6e14cf1 /keyboards/xd75
parentf51d929bd9dff0c11b2cca515d7a2f28fc5995d4 (diff)
downloadqmk_firmware-170de06475c0b6c7a1a16bc6ac99f1994be17261.tar.gz
qmk_firmware-170de06475c0b6c7a1a16bc6ac99f1994be17261.zip
[Keymap] Update personal keymaps, add Corne keymap, and update non-kc LAYOUT for Iris (#12273)
Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/xd75')
-rw-r--r--keyboards/xd75/keymaps/davidrambo/keymap.c130
-rw-r--r--keyboards/xd75/keymaps/davidrambo/readme.md5
2 files changed, 86 insertions, 49 deletions
diff --git a/keyboards/xd75/keymaps/davidrambo/keymap.c b/keyboards/xd75/keymaps/davidrambo/keymap.c
index 7be197a81..f380ebdb1 100644
--- a/keyboards/xd75/keymaps/davidrambo/keymap.c
+++ b/keyboards/xd75/keymaps/davidrambo/keymap.c
@@ -1,37 +1,57 @@
1/* Copyright 2021 David Rambo
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
1#include QMK_KEYBOARD_H 17#include QMK_KEYBOARD_H
2 18
3//aliases for clarity in layering 19//aliases for clarity in layering
4#define A_BSPC LALT(KC_BSPC) // delete whole word in Mac 20#define ABSPC LALT(KC_BSPC) // delete whole word in Mac
5#define C_BSPC LCTL(KC_BSPC) // delete whole word in PC 21#define CBSPC LCTL(KC_BSPC) // delete whole word in PC
6#define A_LEFT LALT(KC_LEFT) 22#define ALEFT LALT(KC_LEFT)
7#define A_RGHT LALT(KC_RGHT) 23#define ARGHT LALT(KC_RGHT)
8#define C_RGHT LCTL(KC_RGHT) 24#define CRGHT LCTL(KC_RGHT)
9#define C_LEFT LCTL(KC_LEFT) 25#define CLEFT LCTL(KC_LEFT)
10#define SftEnt SFT_T(KC_ENT) 26#define SftEnt SFT_T(KC_ENT)
11#define BS_GUI LGUI_T(KC_BSPC) 27#define BSGUI LGUI_T(KC_BSPC)
12#define BS_CTL LCTL_T(KC_BSPC) 28#define BSCTL LCTL_T(KC_BSPC)
13 29
14// internet browser tab shortcuts and window/application swapping for Mac and Win 30// internet browser tab shortcuts and window/application swapping for Mac and Win
15#define GSL LGUI(S(KC_LEFT)) // back one tab in Safari 31#define GSL LGUI(S(KC_LEFT)) // back one tab in Safari
16#define GSR LGUI(S(KC_RGHT)) // forward one tab in Safari 32#define GSR LGUI(S(KC_RGHT)) // forward one tab in Safari
17#define CTLPGDN LCTL(KC_PGDN) // back one tab on Windows 33#define CTLPGDN LCTL(KC_PGDN) // back one tab on PC
18#define CTLPGUP LCTL(KC_PGUP) // forward one tab on Windows 34#define CTLPGUP LCTL(KC_PGUP) // forward one tab on PC
19#define G_TAB LGUI(KC_TAB) // Mac: switch applications 35#define GTAB LGUI(KC_TAB) // Mac: switch applications
20#define G_GRV LGUI(KC_GRV) // Mac: switch between windows within an application 36#define GGRV LGUI(KC_GRV) // Mac: switch between windows within an application
21#define A_TAB LALT(KC_TAB) 37#define ATAB LALT(KC_TAB)
22#define C_TAB LCTL(KC_TAB) 38#define CTAB LCTL(KC_TAB)
23 39
24// navigation layers for both Mac OS X and Windows 40// toggles for navigation layers for Mac, PC, and Roguelike Numpad
25#define NAV LT(4, KC_TAB) 41#define NAV LT(5, KC_ESC)
26#define NAVPC LT(5, KC_TAB) 42#define NAVPC LT(6, KC_ESC)
27 43#define NAVQUD MO(7)
28// Layer shorthand 44
29#define _COLEMAK 0 45enum custom_layer {
30#define _PC 1 46 _COLEMAK,
31#define _GAME 2 // Gaming layer 47 _PC,
32#define _SYMBOL 3 // Function keys, numbers, symbols, Backlighting 48 _GAME, // Gaming layer
33#define _NAV 4 // Navigation Layer on Mac 49 _QUD,3 // Roguelike layer
34#define _NAVPC 5 // Navigation Layer on Win 50 _SYMBOL, // Function keys, numbers, symbols, Backlighting
51 _NAV, // Navigation Layer on Mac
52 _NAVPC, // Navigation Layer on Win
53 _NAVQUD, // Numpad for Roguelike 8-directional movement
54}
35 55
36// tapdance declarations 56// tapdance declarations
37enum { 57enum {
@@ -58,29 +78,37 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
58 */ 78 */
59 79
60 [_COLEMAK] = LAYOUT_ortho_5x15( /* COLEMAK */ 80 [_COLEMAK] = LAYOUT_ortho_5x15( /* COLEMAK */
61 KC_GRV , KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, TG(1) , KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, 81 KC_GRV , KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, TO(1) , KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC,
62 KC_GESC, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_LBRC, KC_BSLS, KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, 82 KC_TAB , KC_Q, KC_W, KC_F, KC_P, KC_G, KC_LBRC, KC_BSLS, KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
63 NAV , KC_A, KC_R, KC_S, KC_T, KC_D, KC_PGUP, KC_ESC , KC_ENT , KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, 83 NAV , KC_A, KC_R, KC_S, KC_T, KC_D, KC_PGUP, KC_MPLY, GGRV , KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
64 SftLck , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGDN, KC_UP , KC_ENT , KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt , 84 SftLck , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGDN, KC_UP , GTAB , KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt,
65 KC_DEL , KC_LGUI, KC_LCTL, KC_LALT, KC_LGUI, BS_GUI, KC_LEFT, KC_DOWN, KC_RGHT, KC_SPC, MO(3) , KC_RGUI, KC_RALT, KC_RCTL, BL_STEP 85 KC_DEL , KC_LGUI, KC_LCTL, KC_LALT, KC_LCTL, BSGUI, KC_LEFT, KC_DOWN, KC_RGHT, KC_SPC, MO(4) , KC_RGUI, KC_RALT, KC_RCTL, BL_STEP
66 ), 86 ),
67 87
68// Windows Layer: essentially swaps Control and GUI 88// Linux/Windows Layer: essentially swaps Control and GUI
69 89
70 [_PC] = LAYOUT_ortho_5x15( /* WINDOWS */ 90 [_PC] = LAYOUT_ortho_5x15( /* WINDOWS */
71 _______, _______, _______, _______, _______, _______, _______, TG(2) , _______, _______, _______, _______, _______, _______, _______, 91 _______, _______, _______, _______, _______, _______, _______, TO(2) , _______, _______, _______, _______, _______, _______, _______,
72 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
73 NAVPC , _______, _______, _______, _______, _______, _______, KC_MPLY, _______, _______, _______, _______, _______, _______, _______,
74 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 92 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
75 _______, KC_LCTL, KC_LGUI, _______, KC_LCTL, BS_CTL , _______, _______, _______, _______, _______, KC_RCTL, KC_RALT, KC_RGUI, _______ 93 NAVPC , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
94 _______, _______, _______, _______, _______, _______, _______, _______, ATAB , _______, _______, _______, _______, _______, _______,
95 _______, KC_PSCR, KC_LGUI, _______, KC_LGUI, BSCTL , _______, _______, _______, _______, _______, KC_RCTL, _______, KC_RGUI, _______
76 ), 96 ),
77 97
78 [_GAME] = LAYOUT_ortho_5x15( /* Gaming Layer */ 98 [_GAME] = LAYOUT_ortho_5x15( /* Gaming Layer */
79 _______, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_F10 , KC_F11 , KC_F12 , _______, _______, _______, _______, _______, TO(0) , 99 _______, _______, _______, _______, _______, _______, _______, TO(0) , _______, _______, _______, _______, _______, _______, TO(3) ,
80 KC_ESC , KC_T , KC_Q , KC_W , KC_E , KC_R , KC_F7 , KC_F8 , KC_F9 , KC_Y , KC_U , KC_I , KC_O , KC_P , _______, 100 KC_ESC , KC_T , KC_Q , KC_W , KC_E , KC_R , KC_F7 , KC_F8 , KC_F9 , KC_Y , KC_U , KC_I , KC_O , KC_P , _______,
81 KC_TAB , KC_LSFT, KC_A , KC_S , KC_D , KC_F , KC_F4 , KC_F5 , KC_F6 , KC_H , KC_J , KC_K , KC_L , KC_SCLN, _______, 101 KC_TAB , KC_LSFT, KC_A , KC_S , KC_D , KC_F , KC_F4 , KC_F5 , KC_F6 , KC_H , KC_J , KC_K , KC_L , KC_SCLN, _______,
82 KC_LALT, KC_LCTL, KC_Z , KC_X , KC_C , KC_V , KC_F1 , KC_F2 , KC_F3 , KC_N , KC_M , _______, _______, _______, KC_ENT , 102 KC_LALT, KC_LCTL, KC_Z , KC_X , KC_C , KC_V , KC_F1 , KC_F2 , KC_F3 , KC_N , KC_M , _______, _______, _______, KC_ENT ,
83 _______, _______, _______, KC_G , KC_B , KC_SPC , KC_I , KC_M , _______, _______, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______ 103 _______, _______, _______, KC_G , KC_B , KC_SPC , KC_I , KC_M , ATAB , _______, KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, _______
104 ),
105
106 [_QUD] = LAYOUT_ortho_5x15( /* Roguelike Layer */
107 _______, _______, _______, _______, _______, _______, _______,KC_PSLS, KC_PAST, _______, _______, _______, _______, _______, TO(0),
108 KC_GESC, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_LBRC, KC_BSLS, KC_RBRC, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
109 NAV , KC_A, KC_R, KC_S, KC_T, KC_D, KC_PGUP, KC_MPLY, GGRV , KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
110 SftLck , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_PGDN, KC_UP , ATAB , KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SftEnt ,
111 KC_DEL , KC_LGUI, KC_LGUI, KC_LALT, KC_LCTL, TO(7), KC_LEFT, KC_DOWN, KC_RGHT, KC_SPC, MO(4) , KC_RGUI, KC_RALT, KC_RCTL, _______
84 ), 112 ),
85 113
86/* SYMBOL 114/* SYMBOL
@@ -101,25 +129,33 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
101 KC_F12 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , _______, _______, _______, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , 129 KC_F12 , KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , _______, _______, _______, KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 ,
102 KC_LBRC, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_RBRC, 130 KC_LBRC, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , _______, _______, _______, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_RBRC,
103 _______, KC_EXLM, KC_AT , KC_HASH, KC_DLR , KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_EQL , 131 _______, KC_EXLM, KC_AT , KC_HASH, KC_DLR , KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_EQL ,
104 _______, KC_HOME, KC_END , BL_OFF , BL_ON , KC_F11 , _______, _______, _______, KC_F12 , KC_MINS, _______, _______, _______, _______, 132 _______, KC_HOME, KC_END , BL_OFF , BL_ON , KC_VOLD, _______, _______, _______, KC_VOLU, KC_MINS, _______, _______, _______, _______,
105 _______, _______, _______, _______, _______, A_BSPC , _______, _______, _______, _______, _______, _______, _______, _______, _______ 133 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
106 ), 134 ),
107 135
108 136
109 [_NAV] = LAYOUT_ortho_5x15( /* NAVIGATION for Mac */ 137 [_NAV] = LAYOUT_ortho_5x15( /* NAVIGATION for Mac */
110 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 138 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
111 _______, _______, _______, _______, _______, _______, _______, _______, _______, C_TAB , A_LEFT, KC_UP, A_RGHT , KC_DEL , _______, 139 _______, _______, _______, _______, _______, _______, _______, _______, _______, CTAB , ALEFT , KC_UP , ARGHT , KC_DEL , _______,
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, GSL , KC_LEFT, KC_DOWN, KC_RGHT, GSR , _______, 140 _______, _______, _______, _______, _______, _______, _______, _______, _______, CTLPGUP, KC_LEFT, KC_DOWN, KC_RGHT, CTLPGDN, _______,
113 _______, _______, _______, _______, _______, _______, _______, _______, _______, G_TAB , A_BSPC , KC_HOME, KC_END , G_GRV , _______, 141 _______, _______, _______, _______, _______, _______, _______, _______, _______, GTAB , ABSPC , KC_HOME, KC_END , GGRV , _______,
114 RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 142 RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
115 ), 143 ),
116 144
117 [_NAVPC] = LAYOUT_ortho_5x15( /* NAVIGATION FOR WINDOWS: replaces Alt with Control, GUI with Alt, and browser tab shortcuts*/ 145 [_NAVPC] = LAYOUT_ortho_5x15( /* NAVIGATION FOR PC: replaces Alt with Control, GUI with Alt, and browser tab shortcuts*/
118 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, 146 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
119 _______, _______, _______, _______, _______, _______, _______, _______, _______, C_TAB , C_LEFT, KC_UP, C_RGHT , KC_DEL , _______, 147 _______, _______, _______, _______, _______, _______, _______, _______, _______, CTAB , CLEFT , KC_UP , CRGHT , KC_DEL , _______,
120 _______, _______, _______, _______, _______, _______, _______, _______, _______, CTLPGUP, KC_LEFT, KC_DOWN, KC_RGHT, CTLPGDN, _______, 148 _______, _______, _______, _______, _______, _______, _______, _______, _______, CTLPGUP, KC_LEFT, KC_DOWN, KC_RGHT, CTLPGDN, _______,
121 _______, _______, _______, _______, _______, _______, _______, _______, _______, A_TAB , C_BSPC , KC_HOME, KC_END , _______, _______, 149 _______, _______, _______, _______, _______, _______, _______, _______, _______, ATAB , CBSPC , KC_HOME, KC_END , _______, _______,
122 RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ 150 RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
151 ),
152
153 [_NAVQUD] = LAYOUT_ortho_5x15( /* NAVIGATION for Mac */
154 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSLS, KC_PAST, _______, _______,
155 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_KP_7, KC_KP_8, KC_KP_9, KC_PMNS, _______,
156 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_KP_4, KC_KP_2, KC_KP_6, KC_PPLS, _______,
157 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_KP_1, KC_KP_5, KC_KP_3, _______, _______,
158 _______, _______, _______, _______, _______, TO(3), _______, _______, _______, _______, KC_KP_0, KC_PDOT, _______, _______, _______
123 ) 159 )
124}; 160};
125 161
diff --git a/keyboards/xd75/keymaps/davidrambo/readme.md b/keyboards/xd75/keymaps/davidrambo/readme.md
index a53abc8af..4199a5d80 100644
--- a/keyboards/xd75/keymaps/davidrambo/readme.md
+++ b/keyboards/xd75/keymaps/davidrambo/readme.md
@@ -1,7 +1,8 @@
1# XD75 1# XD75
2 2
3This is a Colemak layout for XD75 with both Mac and Windows layers. 3This is a Colemak layout for XD75 with both Mac and Linux/Windows layers.
4These two layers share momentary toggle access to a "Symbol" layer, which is modeled after my Planck layout (see planck/keymaps/davidrambo). 4These two layers share momentary toggle access to a "Symbol" layer, which is modeled after my Planck layout (see planck/keymaps/davidrambo).
5Each of the base Colemak layers have their own Navigation layers for the right hand to use arrows and shortcuts for both text editing and web browsing. 5Each of the base Colemak layers have their own Navigation layers for the right hand to use arrows and shortcuts for both text editing and web browsing.
6It also has two layers used for games: one with a typical WASD orientation, another for playing Roguelikes that need a numpad.
6 7
7The rules.mk file overrides the XD75's "BACKLIGHT_ENABLE" with YES and also adds tap dance functionality. \ No newline at end of file 8The rules.mk file overrides the XD75's "BACKLIGHT_ENABLE" with YES and also adds tap dance functionality.