aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Chang <william@factual.com>2019-11-20 23:03:47 -0800
committerWilliam Chang <william@factual.com>2019-11-20 23:03:47 -0800
commit6bcaf01c3f4625c536f25ca5ab75fa0e136a598d (patch)
treefb8457034cd9c32d188aa726b2dad3c0c06e4961
parente7f4d56592b3975c38af329e77b4efd9108495e8 (diff)
downloadqmk_firmware-6bcaf01c3f4625c536f25ca5ab75fa0e136a598d.tar.gz
qmk_firmware-6bcaf01c3f4625c536f25ca5ab75fa0e136a598d.zip
add layout 2 and rename existing folder to layout 4
- renamed existing folder with directional layout to layout 4 - udpated existing readme - Added layout_60_2
-rw-r--r--keyboards/dz60/keymaps/billiams_layout2/build_flash.sh (renamed from keyboards/dz60/keymaps/billiams/build_flash.sh)6
-rw-r--r--keyboards/dz60/keymaps/billiams_layout2/config.h (renamed from keyboards/dz60/keymaps/billiams/config.h)0
-rw-r--r--keyboards/dz60/keymaps/billiams_layout2/keymap.c48
-rw-r--r--keyboards/dz60/keymaps/billiams_layout2/readme.md68
-rw-r--r--keyboards/dz60/keymaps/billiams_layout4/build_flash.sh9
-rw-r--r--keyboards/dz60/keymaps/billiams_layout4/config.h1
-rw-r--r--keyboards/dz60/keymaps/billiams_layout4/keymap.c48
-rw-r--r--keyboards/dz60/keymaps/billiams_layout4/readme.md71
8 files changed, 248 insertions, 3 deletions
diff --git a/keyboards/dz60/keymaps/billiams/build_flash.sh b/keyboards/dz60/keymaps/billiams_layout2/build_flash.sh
index e7a811144..db4882ec9 100644
--- a/keyboards/dz60/keymaps/billiams/build_flash.sh
+++ b/keyboards/dz60/keymaps/billiams_layout2/build_flash.sh
@@ -3,7 +3,7 @@
3# dfu-programmer atmega32u4 reset 3# dfu-programmer atmega32u4 reset
4 4
5# run this in the qmk_firmware directory 5# run this in the qmk_firmware directory
6make dz60:billiams 6make dz60:billiams_layout2
7dfu-programmer atmega32u4 erase --force && \ 7dfu-programmer atmega32u4 erase --force && \
8dfu-programmer atmega32u4 flash dz60_billiams.hex && \ 8dfu-programmer atmega32u4 flash dz60_billiams_layout2.hex && \
9dfu-programmer atmega32u4 reset \ No newline at end of file 9dfu-programmer atmega32u4 reset
diff --git a/keyboards/dz60/keymaps/billiams/config.h b/keyboards/dz60/keymaps/billiams_layout2/config.h
index 9560d51a6..9560d51a6 100644
--- a/keyboards/dz60/keymaps/billiams/config.h
+++ b/keyboards/dz60/keymaps/billiams_layout2/config.h
diff --git a/keyboards/dz60/keymaps/billiams_layout2/keymap.c b/keyboards/dz60/keymaps/billiams_layout2/keymap.c
new file mode 100644
index 000000000..6f0ae55d1
--- /dev/null
+++ b/keyboards/dz60/keymaps/billiams_layout2/keymap.c
@@ -0,0 +1,48 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 /* Qwerty
6 * ,-----------------------------------------------------------------------------------------.
7 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | Del |
8 * |-----------------------------------------------------------------------------------------+
9 * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | Bkspc |
10 * |-----------------------------------------------------------------------------------------+
11 * | Fn | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
12 * |-----------------------------------------------------------------------------------------+
13 * | Shift | Z | X | C | V | B | N | M | , | . | ?/ | Shift | ESC |
14 * |-----------------------------------------------------------------------------------------+
15 * | Ctrl | Alt | Cmd | Space | Cmd | Alt | Ctrl | Fn |
16 * `-----------------------------------------------------------------------------------------'
17 */
18
19 LAYOUT_60_2_function(
20 KC_GRAVE, 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_BSLS, KC_DEL,
21 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_BSPC,
22 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_ESCAPE,
24 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_RGUI, KC_RALT, KC_RCTL, MO(1)
25 ),
26
27 /* FN Layer
28 * ,-----------------------------------------------------------------------------------------.
29 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |Vol- |Vol+ |
30 * |-----------------------------------------------------------------------------------------+
31 * | |RBB T|RGB M| Hue-| Hue+| Sat-| Sat+| Val-| Val+| | | Mute| Prev | Next |
32 * |-----------------------------------------------------------------------------------------+
33 * | | | | | | | Left| Down| Up |Right| | | Play/Pause |
34 * |-----------------------------------------------------------------------------------------+
35 * | | | | | | | | |Scr- |Scr+ | | | |RESET|
36 * |-----------------------------------------------------------------------------------------+
37 * | | | | | | | | |
38 * `-----------------------------------------------------------------------------------------'
39 */
40
41 LAYOUT_60_2_function(
42 _______, 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__VOLDOWN, KC__VOLUP,
43 _______, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, _______, _______, KC_MUTE, KC_MRWD, KC_MFFD,
44 _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, KC_MPLY,
45 _______, _______, _______, _______, _______, _______, _______, KC_BRID, KC_BRIU, _______, _______, _______, RESET,
46 _______, _______, _______, _______, _______, _______, _______, _______
47 ),
48};
diff --git a/keyboards/dz60/keymaps/billiams_layout2/readme.md b/keyboards/dz60/keymaps/billiams_layout2/readme.md
new file mode 100644
index 000000000..bef96f467
--- /dev/null
+++ b/keyboards/dz60/keymaps/billiams_layout2/readme.md
@@ -0,0 +1,68 @@
1## Billiam's DZ60 60_2 layout (KBDFANS Layout 2 with split backspace and split right shift)
2
3This layout is optimized for MacOS and is for a Build 2 DZ60 with a 2U left shift, 1.75U right shift and no arrow cluster. Don't use this layout if you didn't get Build 2, you will enter a world of pain Donny.
4
5Settings:
6
7* The `CAPS LOCK` key is a function key.
8* The `ALT` and `CMD` keys are swapped to replicate the Mac layout.
9* RESET is available as `Fn`+ ` ESC`
10* Underglow toggle is available as `Fn` + `Q`. Yes your keyboard has lights even if you didn't get the LEDs. Bonus!
11* vim-style arrow key bindings H J K L in layer 1
12
13### Initial Installation
14
15I found the instructions to be longer than they had to be, and I ended up having to Google some steps anyway. These are the steps I took to get my keyboard setup, in case you are new to the process.
16
171. Clone the qmk_firmware repo locally
18```
19# Choose one:
20git clone git@github.com:qmk/qmk_firmware.git # OR
21git clone https://github.com/qmk/qmk_firmware.git
22```
232. Customize your layout by starting with a [keymap](https://github.com/qmk/qmk_firmware/tree/master/keyboards/dz60/keymaps). I copied [StephenGrier](https://github.com/qmk/qmk_firmware/tree/master/keyboards/dz60/keymaps/stephengrier)'s and modified it for DZ60 Build 4 and changed a few things, like the `grave` key, `ESC` and `/`.
24
253. Build your hex file
26```
27make dz60:billiams_layout2 # be in the qmk_firmware directory to do this
28```
29A hex file `dz60_billiams_layout2.hex` will be created in the base qmk_firmware directory
30
314. Before plugging in your keyboard into your computer, hold `SPACE` and `B` keys down
325. Holding those keys down, plug the keyboard into your computer, which will put the keyboard in bootlegger mode
336. If you are using [QMK toolbox](https://github.com/qmk/qmk_toolbox/releases), upload the .hex file you made above, select it and hit the flash button. For the love of all that is good and holy on Earth, don't hit the load button, that will load the default keymap and that's not what you want! Unless it is, in which case click away.
34
35Note: If you didn't follow my instructions in 4 and accidentally loaded the default keymap, then to `RESET` the keyboard and kick it into bootleg mode again, hold the `down arrow` key and `\`. The default layout is Build 1 and sets the `MENU` key on that build to `Fn`. `MENU` corresponds to `down arrow` in build 4. Note that you don't have to unplug the keyboard.
36
37Hope this helps!
38
39### 0 Qwerty
40```
41,-----------------------------------------------------------------------------------------.
42| ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | \ | DEL |
43|-----------------------------------------------------------------------------------------+
44| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
45|-----------------------------------------------------------------------------------------+
46| Fn | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
47|-----------------------------------------------------------------------------------------+
48| Shift | Z | X | C | V | B | N | M | , | . | ?/ | Shift | ESC |
49|-----------------------------------------------------------------------------------------+
50| Ctrl | Alt | Cmd | Space | Cmd | Alt | Ctrl | Fn |
51`-----------------------------------------------------------------------------------------'
52```
53
54### 1 Fn Layer
55```
56FN Layer
57,-----------------------------------------------------------------------------------------.
58| ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |Vol- |Vol+ |
59|-----------------------------------------------------------------------------------------+
60| |RBB T|RGB M| Hue-| Hue+| Sat-| Sat+| Val-| Val+| | | Mute | Prev | Next |
61|-----------------------------------------------------------------------------------------+
62| | | | | | | Left| Down| Up |Right| | | Play/Pause |
63|-----------------------------------------------------------------------------------------+
64| | | | | | | | |Scr- |Scr+ | | | | RESET |
65|-----------------------------------------------------------------------------------------+
66| | | | | | | | |
67`-----------------------------------------------------------------------------------------'
68```
diff --git a/keyboards/dz60/keymaps/billiams_layout4/build_flash.sh b/keyboards/dz60/keymaps/billiams_layout4/build_flash.sh
new file mode 100644
index 000000000..bcc9ee99b
--- /dev/null
+++ b/keyboards/dz60/keymaps/billiams_layout4/build_flash.sh
@@ -0,0 +1,9 @@
1# dfu-programmer atmega32u4 erase --force
2# dfu-programmer atmega32u4 flash /path/to/firmware.hex
3# dfu-programmer atmega32u4 reset
4
5# run this in the qmk_firmware directory
6make dz60:billiams_layout4
7dfu-programmer atmega32u4 erase --force && \
8dfu-programmer atmega32u4 flash dz60_billiams_layout4.hex && \
9dfu-programmer atmega32u4 reset
diff --git a/keyboards/dz60/keymaps/billiams_layout4/config.h b/keyboards/dz60/keymaps/billiams_layout4/config.h
new file mode 100644
index 000000000..9560d51a6
--- /dev/null
+++ b/keyboards/dz60/keymaps/billiams_layout4/config.h
@@ -0,0 +1 @@
#define GRAVE_ESC_GUI_OVERRIDE # Always send Escape if GUI is pressed
diff --git a/keyboards/dz60/keymaps/billiams_layout4/keymap.c b/keyboards/dz60/keymaps/billiams_layout4/keymap.c
new file mode 100644
index 000000000..b1c75d903
--- /dev/null
+++ b/keyboards/dz60/keymaps/billiams_layout4/keymap.c
@@ -0,0 +1,48 @@
1#include QMK_KEYBOARD_H
2
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4
5 /* Qwerty
6 * ,-----------------------------------------------------------------------------------------.
7 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc |
8 * |-----------------------------------------------------------------------------------------+
9 * | Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
10 * |-----------------------------------------------------------------------------------------+
11 * | Fn | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
12 * |-----------------------------------------------------------------------------------------+
13 * | Shift | Z | X | C | V | B | N | M | , | . |Tap(/) Shft| U | ESC |
14 * |-----------------------------------------------------------------------------------------+
15 * | Ctrl | Alt | Cmd | Space | Alt | Fn | L | D | R |
16 * `-----------------------------------------------------------------------------------------'
17 */
18
19 LAYOUT_directional(
20 KC_GRAVE, 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,
21 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,
22 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, _______, RSFT_T(KC_SLSH) , KC_UP, KC_ESCAPE,
24 KC_LCTL, KC_LALT, KC_LGUI, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT
25 ),
26
27 /* FN Layer
28 * ,-----------------------------------------------------------------------------------------.
29 * | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | DEL |
30 * |-----------------------------------------------------------------------------------------+
31 * | |RBB T|RGB M| Hue-| Hue+| Sat-| Sat+| Val-| Val+| Mute | Vol-| Vol+| Prev | Next |
32 * |-----------------------------------------------------------------------------------------+
33 * | | | | | | | Left| Down| Up |Right| | | Play/Pause |
34 * |-----------------------------------------------------------------------------------------+
35 * | | | | | | | | |Scr- |Scr+ | |PG_UP|RESET|
36 * |-----------------------------------------------------------------------------------------+
37 * | | | | | | | HOME|PG_DN| END |
38 * `-----------------------------------------------------------------------------------------'
39 */
40
41 LAYOUT_directional(
42 _______, 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,
43 _______, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, KC_MUTE, KC__VOLDOWN, KC__VOLUP, KC_MRWD, KC_MFFD,
44 _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______,
45 KC_MPLY, _______, _______, _______, _______, _______, _______, _______, _______, KC_BRID, KC_BRIU, _______, _______, KC_PGUP, RESET,
46 _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDOWN, KC_END
47 ),
48};
diff --git a/keyboards/dz60/keymaps/billiams_layout4/readme.md b/keyboards/dz60/keymaps/billiams_layout4/readme.md
new file mode 100644
index 000000000..37bbd6a65
--- /dev/null
+++ b/keyboards/dz60/keymaps/billiams_layout4/readme.md
@@ -0,0 +1,71 @@
1## Billiam's DZ60 Directional layout
2
3This layout is optimized for MacOS and is for a Build 4 DZ60 with a 2U left shift, 2U right shift and an arrow
4cluster in the bottom right. Don't use this layout if you didn't get Build 4, you will enter a world of pain Donny.
5
6Settings:
7
8* The `CAPS LOCK` key is replaced with a second function key.
9* The `ALT` and `CMD` keys are swapped to replicate the Mac layout.
10* Del is available as `Fn` + `Backspace`
11* `/ ?` are available when you tap the right shift. Otherwise RShift is shift when held down
12* RESET is available as `Fn`+ ` ESC`
13* Underglow toggle is available as `Fn` + `Q`. Yes your keyboard has lights even if you didn't get the LEDs. Bonus!
14* vim-style arrow key bindings H J K L in layer 1
15
16### Initial Installation
17
18I found the instructions to be longer than they had to be, and I ended up having to Google some steps anyway. These are the steps I took to get my keyboard setup, in case you are new to the process.
19
201. Clone the qmk_firmware repo locally
21```
22# Choose one:
23git clone git@github.com:qmk/qmk_firmware.git # OR
24git clone https://github.com/qmk/qmk_firmware.git
25```
262. Customize your layout by starting with a [keymap](https://github.com/qmk/qmk_firmware/tree/master/keyboards/dz60/keymaps). I copied [StephenGrier](https://github.com/qmk/qmk_firmware/tree/master/keyboards/dz60/keymaps/stephengrier)'s and modified it for DZ60 Build 4 and changed a few things, like the `grave` key, `ESC` and `/`.
27
283. Build your hex file
29```
30make dz60:billiams_layout4 # be in the qmk_firmware directory to do this
31```
32A hex file `dz60_billiams_layout4.hex` will be created in the base qmk_firmware directory
33
344. Before plugging in your keyboard into your computer, hold `SPACE` and `B` keys down
355. Holding those keys down, plug the keyboard into your computer, which will put the keyboard in bootlegger mode
366. If you are using [QMK toolbox](https://github.com/qmk/qmk_toolbox/releases), upload the .hex file you made above, select it and hit the flash button. For the love of all that is good and holy on Earth, don't hit the load button, that will load the default keymap and that's not what you want! Unless it is, in which case click away.
37
38Note: If you didn't follow my instructions in 4 and accidentally loaded the default keymap, then to `RESET` the keyboard and kick it into bootleg mode again, hold the `down arrow` key and `\`. The default layout is Build 1 and sets the `MENU` key on that build to `Fn`. `MENU` corresponds to `down arrow` in build 4. Note that you don't have to unplug the keyboard.
39
40Hope this helps!
41
42### 0 Qwerty
43```
44,-----------------------------------------------------------------------------------------.
45| ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bkspc |
46|-----------------------------------------------------------------------------------------+
47| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \ |
48|-----------------------------------------------------------------------------------------+
49| Fn | A | S | D | F | G | H | J | K | L | ; | ' | Enter |
50|-----------------------------------------------------------------------------------------+
51| Shift | Z | X | C | V | B | N | M | , | . | Tap:/ RSh | U | ESC |
52|-----------------------------------------------------------------------------------------+
53| Ctrl | Alt | Cmd | Space | Alt | Fn | L | D | R |
54`-----------------------------------------------------------------------------------------'
55```
56
57### 1 Fn Layer
58```
59FN Layer
60,-----------------------------------------------------------------------------------------.
61| ` | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | DEL |
62|-----------------------------------------------------------------------------------------+
63| |RBB T|RGB M| Hue-| Hue+| Sat-| Sat+| Val-| Val+| Mute | Vol-| Vol+| Prev | Next |
64|-----------------------------------------------------------------------------------------+
65| | | | | | | Left| Down| Up |Right| | | Play/Pause |
66|-----------------------------------------------------------------------------------------+
67| | | | | | | | |Scr- |Scr+ | | PG_UP |RESET|
68|-----------------------------------------------------------------------------------------+
69| | | | | | | HOME | PG_DN | END |
70`-----------------------------------------------------------------------------------------'
71```