diff options
author | Skyler Lewis <sblnog@gmail.com> | 2018-06-27 12:06:29 -0600 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2018-06-27 11:06:29 -0700 |
commit | a8089d7e4b3affe171fc70e565c78a729df1a224 (patch) | |
tree | 6141b49889706a11b83b6120a076123f360bb23b /keyboards/minidox | |
parent | 14c2209427890274815176446747b76645fd677e (diff) | |
download | qmk_firmware-a8089d7e4b3affe171fc70e565c78a729df1a224.tar.gz qmk_firmware-a8089d7e4b3affe171fc70e565c78a729df1a224.zip |
Minidox familiarized layout (#3236)
* Create z.txt
* Add files via upload
* Delete config.h
* Delete keymap.c
* Delete rules.mk
* Delete z.txt
* Create x.txt
* Add files via upload
* Delete x.txt
* fixing suggested issues
Diffstat (limited to 'keyboards/minidox')
-rw-r--r-- | keyboards/minidox/keymaps/alairock/config.h | 40 | ||||
-rw-r--r-- | keyboards/minidox/keymaps/alairock/keymap.c | 161 | ||||
-rw-r--r-- | keyboards/minidox/keymaps/alairock/rules.mk | 2 |
3 files changed, 203 insertions, 0 deletions
diff --git a/keyboards/minidox/keymaps/alairock/config.h b/keyboards/minidox/keymaps/alairock/config.h new file mode 100644 index 000000000..445606031 --- /dev/null +++ b/keyboards/minidox/keymaps/alairock/config.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | This is the c configuration file for the keymap | ||
3 | |||
4 | Copyright 2012 Jun Wako <wakojun@gmail.com> | ||
5 | Copyright 2015 Jack Humbert | ||
6 | Copyright 2018 Skyler Lewis | ||
7 | |||
8 | This program is free software: you can redistribute it and/or modify | ||
9 | it under the terms of the GNU General Public License as published by | ||
10 | the Free Software Foundation, either version 2 of the License, or | ||
11 | (at your option) any later version. | ||
12 | |||
13 | This program is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | */ | ||
21 | |||
22 | #ifndef CONFIG_USER_H | ||
23 | #define CONFIG_USER_H | ||
24 | |||
25 | #include "../../config.h" | ||
26 | |||
27 | #define USE_SERIAL | ||
28 | |||
29 | #define EE_HANDS | ||
30 | |||
31 | /* ws2812 RGB LED */ | ||
32 | #define RGB_DI_PIN D7 | ||
33 | #define RGBLIGHT_TIMER | ||
34 | #define RGBLED_NUM 8 // Number of LEDs | ||
35 | #define RGBLIGHT_ANIMATIONS | ||
36 | #define RGBLIGHT_HUE_STEP 10 | ||
37 | #define RGBLIGHT_SAT_STEP 17 | ||
38 | #define RGBLIGHT_VAL_STEP 17 | ||
39 | #define PREVENT_STUCK_MODIFIERS | ||
40 | #endif | ||
diff --git a/keyboards/minidox/keymaps/alairock/keymap.c b/keyboards/minidox/keymaps/alairock/keymap.c new file mode 100644 index 000000000..9faf63096 --- /dev/null +++ b/keyboards/minidox/keymaps/alairock/keymap.c | |||
@@ -0,0 +1,161 @@ | |||
1 | // Note: this is a modification of that_canadian's config, albeit heavily modified. | ||
2 | // this layout turns your left thumb cluster into something more familiar. | ||
3 | |||
4 | #include QMK_KEYBOARD_H | ||
5 | |||
6 | extern keymap_config_t keymap_config; | ||
7 | |||
8 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
9 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
10 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
11 | // entirely and just use numbers. | ||
12 | #define _QWERTY 0 | ||
13 | #define _LOWER 1 | ||
14 | #define _RAISE 2 | ||
15 | #define _ADJUST 16 | ||
16 | |||
17 | enum custom_keycodes { | ||
18 | QWERTY = SAFE_RANGE, | ||
19 | LOWER, | ||
20 | RAISE, | ||
21 | ADJUST, | ||
22 | }; | ||
23 | |||
24 | // Fillers to make layering more clear | ||
25 | #define _______ KC_TRNS | ||
26 | #define XXXXXXX KC_NO | ||
27 | |||
28 | // Defines for task manager and such | ||
29 | #define CALTDEL LCTL(LALT(KC_DEL)) | ||
30 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
31 | |||
32 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
33 | |||
34 | /* Qwerty | ||
35 | * | ||
36 | * ,----------------------------------. ,----------------------------------. | ||
37 | * | Q | W | E | R | T | | Y | U | I | O | P | | ||
38 | * |------+------+------+------+------| |------+------+------+------+------| | ||
39 | * | A | S | D | F | G | | H | J | K | L | ; | | ||
40 | * |------+------+------+------+------| |------+------+------+------+------| | ||
41 | * | Z | X | C | V | B | | N | M | , | . | / | | ||
42 | * `----------------------------------' `----------------------------------' | ||
43 | * ,--------------------. ,------,-------------. | ||
44 | * | Shift/Esc | GUI/Tab| | | RAISE| LOWER | | ||
45 | * `-------------|BSpace| |Space |------+------. | ||
46 | * | | | | | ||
47 | * `------' `------' | ||
48 | */ | ||
49 | [_QWERTY] = LAYOUT( \ | ||
50 | KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, \ | ||
51 | KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, \ | ||
52 | KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, \ | ||
53 | SFT_T(KC_ESC), GUI_T(KC_TAB), KC_BSPC, KC_SPC, RAISE, LOWER \ | ||
54 | ), | ||
55 | /* Raise | ||
56 | * | ||
57 | * ,----------------------------------. ,----------------------------------. | ||
58 | * | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | ||
59 | * |------+------+------+------+------| |------+------+------+------+------| | ||
60 | * | Tab | VOLU | VOLD | PLAY | MFFD | | MUTE | - | = | [ | ] | | ||
61 | * |------+------+------+------+------| |------+------+------+------+------| | ||
62 | * | Ctrl| ` | GUI | Alt | MRWD | | | | | \ | ' | | ||
63 | * `----------------------------------' `----------------------------------' | ||
64 | * ,--------------------. ,------,-------------. | ||
65 | * | CTRL | BSPC | | | | | | | ||
66 | * `-------------| Enter| | |------+------. | ||
67 | * | | | | | ||
68 | * `------' `------' | ||
69 | */ | ||
70 | [_RAISE] = LAYOUT( \ | ||
71 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, \ | ||
72 | KC_TAB, KC_VOLD, KC_VOLU, KC_MPLY, KC_MFFD, KC_MUTE, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, \ | ||
73 | _______, KC_GRV, KC_LGUI, KC_LALT, KC_MRWD, _______, _______, _______, KC_BSLS, KC_QUOT, \ | ||
74 | KC_LCTRL, KC_BSPC, KC_ENT, _______, _______, _______ \ | ||
75 | ), | ||
76 | |||
77 | /* Lower | ||
78 | * | ||
79 | * ,----------------------------------. ,----------------------------------. | ||
80 | * | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | ||
81 | * |------+------+------+------+------| |------+------+------+------+------| | ||
82 | * | Esc | VOLU | VOLD | PLAY | MFFD | | MUTE | _ | + | { | } | | ||
83 | * |------+------+------+------+------| |------+------+------+------+------| | ||
84 | * | Caps| ~ | | | MRWD | | | | | | | " | | ||
85 | * `----------------------------------' `----------------------------------' | ||
86 | * ,--------------------. ,------,-------------. | ||
87 | * | RAISE | DEL | | | | | | | ||
88 | * `-------------| | | Enter|------+------. | ||
89 | * | | | | | ||
90 | * `------' `------' | ||
91 | */ | ||
92 | [_LOWER] = LAYOUT( \ | ||
93 | KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, \ | ||
94 | KC_ESC, KC_VOLD, KC_VOLU, KC_MPLY, KC_MFFD, KC_MUTE, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, \ | ||
95 | KC_CAPS, KC_TILD, _______, _______, KC_MRWD, _______, _______, _______, KC_PIPE, KC_DQT, \ | ||
96 | RAISE, KC_DEL, _______, KC_ENT, _______, _______ \ | ||
97 | ), | ||
98 | |||
99 | /* Adjust (Lower + Raise) | ||
100 | * | ||
101 | * ,----------------------------------. ,----------------------------------. | ||
102 | * | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | Up | F9 | F10 | | ||
103 | * |------+------+------+------+------| |------+------+------+------+------| | ||
104 | * | F11 | F12 | |RGBSAI|RGBSAD| | | Left | Down |Right |caltde| | ||
105 | * |------+------+------+------+------| |------+------+------+------+------| | ||
106 | * | Reset|RGBTOG|RGBMOD|RGBHUI|RGBHUD| |RGBVAI|RGBVAD| F8 |Taskmg| | | ||
107 | * `----------------------------------' `----------------------------------' | ||
108 | * ,--------------------. ,------,-------------. | ||
109 | * | | LOWER| | | | RAISE| | | ||
110 | * `-------------| | | |------+------. | ||
111 | * | | | | | ||
112 | * `------' `------' | ||
113 | */ | ||
114 | [_ADJUST] = LAYOUT( \ | ||
115 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_UP, KC_F9, KC_F10, \ | ||
116 | KC_F11, KC_F12, RGB_RMOD, RGB_SAI, RGB_SAD, _______, KC_LEFT, KC_DOWN, KC_RGHT, CALTDEL, \ | ||
117 | RESET, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_VAI, RGB_VAD, KC_F8, TSKMGR, _______, \ | ||
118 | _______, _______, _______, _______, _______, _______ \ | ||
119 | ) | ||
120 | }; | ||
121 | |||
122 | |||
123 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
124 | switch (keycode) { | ||
125 | case QWERTY: | ||
126 | if (record->event.pressed) { | ||
127 | set_single_persistent_default_layer(_QWERTY); | ||
128 | } | ||
129 | return false; | ||
130 | break; | ||
131 | case LOWER: | ||
132 | if (record->event.pressed) { | ||
133 | layer_on(_LOWER); | ||
134 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
135 | } else { | ||
136 | layer_off(_LOWER); | ||
137 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
138 | } | ||
139 | return false; | ||
140 | break; | ||
141 | case RAISE: | ||
142 | if (record->event.pressed) { | ||
143 | layer_on(_RAISE); | ||
144 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
145 | } else { | ||
146 | layer_off(_RAISE); | ||
147 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
148 | } | ||
149 | return false; | ||
150 | break; | ||
151 | case ADJUST: | ||
152 | if (record->event.pressed) { | ||
153 | layer_on(_ADJUST); | ||
154 | } else { | ||
155 | layer_off(_ADJUST); | ||
156 | } | ||
157 | return false; | ||
158 | break; | ||
159 | } | ||
160 | return true; | ||
161 | } | ||
diff --git a/keyboards/minidox/keymaps/alairock/rules.mk b/keyboards/minidox/keymaps/alairock/rules.mk new file mode 100644 index 000000000..cd7ab91c2 --- /dev/null +++ b/keyboards/minidox/keymaps/alairock/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. Do not enable this with audio at the same time. | ||
2 | EXTRAKEY_ENABLE = yes | ||