diff options
author | NeoTheFox <soniczerops@gmail.com> | 2020-03-14 16:32:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-14 13:32:26 +0000 |
commit | a92947fcdb44c04996ebd11fb8ab8e5111468af7 (patch) | |
tree | 3d4339edb079d3990f24ba1b3f6136b570c16256 | |
parent | cde5237a8818942b657a31195b603e90c63fff59 (diff) | |
download | qmk_firmware-a92947fcdb44c04996ebd11fb8ab8e5111468af7.tar.gz qmk_firmware-a92947fcdb44c04996ebd11fb8ab8e5111468af7.zip |
added olkb_style layout for XD75 (#8409)
* added olkb_style layout for XD75
* removed unnecessary config.h
* cleaned up empty functions
* refactored fuction type for clarity
* renamed the layout
-rw-r--r-- | keyboards/xd75/keymaps/neothefox/keymap.c | 127 | ||||
-rw-r--r-- | keyboards/xd75/keymaps/neothefox/readme.md | 1 |
2 files changed, 128 insertions, 0 deletions
diff --git a/keyboards/xd75/keymaps/neothefox/keymap.c b/keyboards/xd75/keymaps/neothefox/keymap.c new file mode 100644 index 000000000..7fa04b2c6 --- /dev/null +++ b/keyboards/xd75/keymaps/neothefox/keymap.c | |||
@@ -0,0 +1,127 @@ | |||
1 | /* Copyright 2017 Wunder | ||
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 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | // Layer shorthand | ||
19 | #define LOWER MO(_LOWER) | ||
20 | #define RAISE MO(_RAISE) | ||
21 | #define SYSTEM MO(_SYSTEM) | ||
22 | #define MPASTE LSFT(KC_INSERT) | ||
23 | |||
24 | enum xd75_layers { | ||
25 | _QWERTY, | ||
26 | _LOWER, | ||
27 | _RAISE, | ||
28 | _SYSTEM | ||
29 | }; | ||
30 | |||
31 | |||
32 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
33 | |||
34 | /* QWERTY | ||
35 | * .--------------------------------------------------------------------------------------------------------------------------------------. | ||
36 | * | ESC | 1 | 2 | 3 | 4 | 5 | - | ` | = | 6 | 7 | 8 | 9 | 0 | BACKSP | | ||
37 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------| | ||
38 | * | TAB | Q | W | E | R | T | [ | \ | ] | Y | U | I | O | P | ' | | ||
39 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------| | ||
40 | * | CAP LK | A | S | D | F | G | INSERT | HOME | PG UP | H | J | K | L | ; | ENTER | | ||
41 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------| | ||
42 | * | LSHIFT | Z | X | C | V | B | DEL | END | PG DN | N | M | , | . | / | RSHIFT | | ||
43 | * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------| | ||
44 | * | LCTRL | GUI | MENU | ALT | LOWER | SPACE | SPACE | SPACE | SPACE | SPACE | RAISE | LEFT | DOWN | UP | RIGHT | | ||
45 | * '--------------------------------------------------------------------------------------------------------------------------------------' | ||
46 | */ | ||
47 | |||
48 | [_QWERTY] = LAYOUT_ortho_5x15( /* QWERTY */ | ||
49 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_MINS, KC_GRV, KC_EQL, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
50 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_LBRC, KC_BSLS, KC_RBRC, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_QUOT, | ||
51 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_INS, KC_HOME, KC_PGUP, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
52 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_DEL, KC_END, KC_PGDN, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
53 | KC_LCTL, KC_LGUI, KC_MENU, KC_LALT, LOWER, KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT | ||
54 | ), | ||
55 | |||
56 | /* SYSTEM | ||
57 | * .--------------------------------------------------------------------------------------------------------------------------------------. | ||
58 | * | RESET | DEBUG | | | | | | | | | | | | | | | ||
59 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
60 | * | | | | | | |RGB_TOG |RGB_VAI |RGB VAD | | | PASTE | PR SCR | SCR LK | PAUSE | | ||
61 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
62 | * | | | | | | |RGB_MOD |RGB_SAI |RGB_HUI | | | | | | | | ||
63 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
64 | * | | | | | | | |RGB_SAD |RGB_HUD | | | | | | | | ||
65 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------| | ||
66 | * | | | | | | | | | | | | | | | | | ||
67 | * '--------------------------------------------------------------------------------------------------------------------------------------' | ||
68 | */ | ||
69 | |||
70 | [_SYSTEM] = LAYOUT_ortho_5x15( /* FUNCTION */ | ||
71 | RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
72 | _______, _______, _______, _______, _______, _______, RGB_TOG, RGB_VAI, RGB_VAD, _______, _______, MPASTE, KC_PSCR, KC_SLCK, KC_PAUSE, | ||
73 | _______, _______, _______, _______, _______, _______, RGB_MOD, RGB_SAI, RGB_HUI, _______, _______, _______, _______, _______, _______, | ||
74 | _______, _______, _______, _______, _______, _______, _______, RGB_SAD, RGB_HUD, _______, _______, _______, _______, _______, _______, | ||
75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
76 | ), | ||
77 | |||
78 | /* LOWER | ||
79 | * .--------------------------------------------------------------------------------------------------------------------------------------. | ||
80 | * | | | | | | | | | | | | | | | | | ||
81 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------| | ||
82 | * | ~ | ! | @ | # | $ | % | | | | ^ | & | * | ( | ) | ' | | ||
83 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------| | ||
84 | * | DELETE | F1 | F2 | F3 | F4 | F5 | | | | F6 | _ | + | { | } | | | | ||
85 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------| | ||
86 | * | | F7 | F8 | F9 | F10 | F11 | | | | F12 | ISO ~ | ISO | | Home | End | | | ||
87 | * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------| | ||
88 | * | | | | | | | | | | | | Next | Vol- | Vol+ | Play | | ||
89 | * '--------------------------------------------------------------------------------------------------------------------------------------' | ||
90 | */ | ||
91 | |||
92 | [_LOWER] = LAYOUT_ortho_5x15( /* LOWER */ | ||
93 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
94 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, _______, _______, _______, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
95 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
96 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME,KC_END, _______, | ||
97 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
98 | ), | ||
99 | |||
100 | /* RAISE | ||
101 | * .--------------------------------------------------------------------------------------------------------------------------------------. | ||
102 | * | | | | | | | | | | | | | | | | | ||
103 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------| | ||
104 | * | ` | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | ' | | ||
105 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------+--------| | ||
106 | * | | F1 | F2 | F3 | F4 | F5 | | | | F6 | - | = | [ | ] | \ | | ||
107 | * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------------------------+--------| | ||
108 | * | | F7 | F8 | F9 | F10 | F11 | | | | F12 | ISO # | ISO / | Pg Up | Pg Dn | | | ||
109 | * |--------+--------+--------+--------+--------+-----------------+--------+--------+--------+--------+-----------------+--------+--------| | ||
110 | * | | | | | | | | | | | | Next | Vol- | Vol+ | Play | | ||
111 | * '--------------------------------------------------------------------------------------------------------------------------------------' | ||
112 | */ | ||
113 | |||
114 | [_RAISE] = LAYOUT_ortho_5x15( /* QWERTY */ | ||
115 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
116 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, _______, _______, _______, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
117 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, _______, _______, _______, KC_F6, KC_MINUS,KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
118 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, _______, _______, _______, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
119 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
120 | ) | ||
121 | }; | ||
122 | |||
123 | // SYSTEM layer toggle | ||
124 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
125 | return update_tri_layer_state(state, _LOWER, _RAISE, _SYSTEM); | ||
126 | } | ||
127 | |||
diff --git a/keyboards/xd75/keymaps/neothefox/readme.md b/keyboards/xd75/keymaps/neothefox/readme.md new file mode 100644 index 000000000..117ecafb7 --- /dev/null +++ b/keyboards/xd75/keymaps/neothefox/readme.md | |||
@@ -0,0 +1 @@ | |||
# A OLKB-like layout for XD75 | |||