aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryttyx <yttyx@users.noreply.github.com>2018-07-08 01:36:01 +0100
committerDrashna Jaelre <drashna@live.com>2018-07-07 17:36:01 -0700
commit978fa700d8dc7e857518be4af30ff06d1469ccd3 (patch)
treedb69646994a5e4cfd1e102ff2910d4bb4ef82b66
parent03766619d5646759182410f70d1a7f083c11e87d (diff)
downloadqmk_firmware-978fa700d8dc7e857518be4af30ff06d1469ccd3.tar.gz
qmk_firmware-978fa700d8dc7e857518be4af30ff06d1469ccd3.zip
Added my Balance 12 layout for Atreus (#3336)
* New Balance Twelve-based layout for the Atreus keyboard * Rearrange cursor keys. Fix layout comment typo. * Added Balance 12 layout for Atreus * Changes following review.
-rw-r--r--keyboards/atreus/keymaps/yttyx/README.md77
-rw-r--r--keyboards/atreus/keymaps/yttyx/config.h12
-rw-r--r--keyboards/atreus/keymaps/yttyx/keymap.c119
3 files changed, 208 insertions, 0 deletions
diff --git a/keyboards/atreus/keymaps/yttyx/README.md b/keyboards/atreus/keymaps/yttyx/README.md
new file mode 100644
index 000000000..9ed9d6239
--- /dev/null
+++ b/keyboards/atreus/keymaps/yttyx/README.md
@@ -0,0 +1,77 @@
1# Overview
2
3A Balance 12 layout for the Atreus keyboard.
4
5Balance 12 was created by Sasha Viminitz. Please see [this page](https://mathematicalmulticore.wordpress.com/the-keyboard-layout-project/)
6for some background on the design of the layout.
7
8* The variant used here is a mirror of the original for left-handers
9* The central column of punctuation keys has been moved elsewhere
10* Home positions for the left and right forefingers are *T* and *A* respectively
11
12## To build/flash
13
14> make atreus:yttyx:avrdude
15
16## Layers
17
18### Base:
19
20 .----------------------------------. .------------------------------.
21 | P | L | C | D | W | | U | O | Y | K | Q |
22 +------+------+------+-----+-------| |------+-----+-----+-----+-----|
23 | N | R | S | T | M | | A | E | I | H | V |
24 +------+------+------+-----+-------| |------+-----+-----+-----+-----|
25 | Z | J | F | G | B | | , | . | ; | X | - |
26 +------+------+------+-----+-------+---------+------+-----+-----+-----+-----|
27 | Shft | Ctl | Alt | BS | Space | L1 | R1 | Shft | R2 | Win | Ctl | Alt |
28 '---------------------------------------------------------------------------'
29
30### L1:
31
32 .---------------------------------. .--------------------------------.
33 | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
34 |------+------+------+----+-------| |------+----+-----+------+-------|
35 | Tab | ? | = | - | _ | | ' | " | + | * | Enter |
36 |------+------+------+----+-------| |------+----+-----+------+-------|
37 | Esc | ! | & | | | | , | . | ; | | - |
38 |------+------+------+----+-------+---------+------+----+-----+------+-------|
39 | Shft | Ctrl | Alt | Bk | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
40 '----------------------------------------------------------------------------'
41
42### R1:
43
44 .---------------------------------. .-------------------------------.
45 | < | > | { | } | @ | | $ | £ | | | R3 |
46 +------+------+-----+-----|-------| |------+----+-----+------+------|
47 | [ | ] | ( | ) | # | | ' | " | ~ | ` | Caps |
48 |------+------+-----+-----+-------| |------+----+-----+------+------|
49 | / | \ | ^ | | | % | | , | . | ; | | PScn |
50 |------+------+-----+-----+-------+---------+------+----+-----+------+------|
51 | Shft | Ctrl | Alt | Del | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
52 '---------------------------------------------------------------------------'
53
54### R2:
55
56 .-----------------------------------. .--------------------.-----------------.
57 | F12 | F11 | F10 | F9 | Copy | | Home | Up | End | PgUp | Insert |
58 |------+------+------+------+-------| |------+------+------+------+----------|
59 | F8 | F7 | F6 | F5 | Paste | | Left | Down | Right| PgDn | Enter |
60 |------+------+------+------+-------| |------+------+------+------+----------|
61 | F4 | F3 | F2 | F1 | Cut | | ^Tab | | Tab | | |
62 |------+------+------+------+-------+---------+------+------+------+------+----------|
63 | Shft | Ctrl | Alt | Del | Undo | L1 | R1 | Shft | R2 | Sup | Ctrl | WinRight |
64 '------------------------------------------------------------------------------------'
65
66### R3:
67
68 .----------------------------. .------------------------.
69 | RESET | | | | | | | | | | R3 |
70 |-------+----+-----+----+----| |----+----+----+----+----|
71 | | | | | | | | | | | |
72 |-------+----+-----+----+----| |----+----+----+----+----|
73 | | | | | | | | | | | |
74 |-------+----+-----+----+----+---------+----+----+----+----+----|
75 | | | | | | | | | | | | |
76 '---------------------------------------------------------------'
77
diff --git a/keyboards/atreus/keymaps/yttyx/config.h b/keyboards/atreus/keymaps/yttyx/config.h
new file mode 100644
index 000000000..68e0225e0
--- /dev/null
+++ b/keyboards/atreus/keymaps/yttyx/config.h
@@ -0,0 +1,12 @@
1#ifndef CONFIG_H
2#define CONFIG_H
3
4#define ONESHOT_TIMEOUT 500 // Time (in ms) before the one shot key is released
5
6// Disable some options to reduce firmware size
7#define NO_PRINT
8#define NO_ACTION_TAPPING
9#define NO_ACTION_MACRO
10#define NO_ACTION_FUNCTION
11
12#endif
diff --git a/keyboards/atreus/keymaps/yttyx/keymap.c b/keyboards/atreus/keymaps/yttyx/keymap.c
new file mode 100644
index 000000000..8773a9734
--- /dev/null
+++ b/keyboards/atreus/keymaps/yttyx/keymap.c
@@ -0,0 +1,119 @@
1
2#include QMK_KEYBOARD_H
3
4enum layers {
5 BASE, // Balance Twelve
6 L1, // (momentary)
7 R1, // (momentary)
8 R2, // (momentary)
9 R3 // (momentary)
10};
11
12#define xxxxxxx KC_NO
13#define _______ KC_TRNS
14
15// Aliases from replicaJunction's atreus layout
16#define KCX_LST LSFT(KC_TAB)
17#define KX_COPY LCTL(KC_C)
18#define KX_CUT LCTL(KC_X)
19#define KX_PAST LCTL(KC_V)
20#define KX_UNDO LCTL(KC_Z)
21
22#define KX_AT LSFT(KC_QUOT)
23#define KX_PIPE LSFT(KC_NUBS)
24#define KX_WINR LSFT(LGUI(KC_RGHT)) // Move window to next monitor (Windows)
25
26
27const uint16_t PROGMEM keymaps[][ MATRIX_ROWS ][ MATRIX_COLS ] = {
28
29 /* Balance Twelve mirror variant (left-handed)
30 .--------------------------------. .------------------------------.
31 | P | L | C | D | W | | U | O | Y | K | Q |
32 +------+------+-----+----+-------| |------+----+-----+------+-----|
33 | N | R | S | T | M | | A | E | I | H | V |
34 +------+------+-----+----+-------| |------+----+-----+------+-----|
35 | Z | J | F | G | B | | , | . | ; | X | - |
36 +------+------+-----+----+-------+---------+------+----+-----+------+-----|
37 | Shft | Ctrl | Alt | Bk | Space | L1 | R1 | Shft | R2 | Win | Ctrl | Alt |
38 '-------------------------------------------------------------------------'
39 */
40 [BASE] = LAYOUT(
41 KC_P, KC_L, KC_C, KC_D, KC_W, KC_U, KC_O, KC_Y, KC_K, KC_Q,
42 KC_N, KC_R, KC_S, KC_T, KC_M, KC_A, KC_E, KC_I, KC_H, KC_V,
43 KC_Z, KC_J, KC_F, KC_G, KC_B, KC_COMM, KC_DOT, KC_SCLN, KC_X, KC_MINS,
44 KC_LSFT, KC_LCTL, KC_LALT, KC_BSPC, KC_SPC, MO(L1), MO(R1), OSM(MOD_LSFT), MO(R2), KC_LWIN, KC_RCTL, KC_RALT
45 ),
46
47 /* L1
48 .---------------------------------. .--------------------------------.
49 | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 |
50 |------+------+------+----+-------| |------+----+-----+------+-------|
51 | Tab | ? | = | - | _ | | ' | " | + | * | Enter |
52 |------+------+------+----+-------| |------+----+-----+------+-------|
53 | Esc | ! | & | | | | , | . | ; | | - |
54 |------+------+------+----+-------+---------+------+----+-----+------+-------|
55 | Shft | Ctrl | Alt | Bk | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
56 '----------------------------------------------------------------------------'
57 */
58 [L1] = LAYOUT(
59 KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
60 KC_TAB, KC_QUES, KC_EQL, KC_MINS, KC_UNDS, KC_QUOT, LSFT(KC_2), KC_PLUS, KC_ASTR, KC_ENT,
61 KC_ESC, KC_EXLM, KC_AMPR, xxxxxxx, xxxxxxx, _______, _______, _______, xxxxxxx, _______,
62 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
63 ),
64
65 /* R1
66 .---------------------------------. .-------------------------------.
67 | < | > | { | } | @ | | $ | £ | | | R3 |
68 +------+------+-----+-----|-------| |------+----+-----+------+------|
69 | [ | ] | ( | ) | # | | ' | " | ~ | ` | Caps |
70 |------+------+-----+-----+-------| |------+----+-----+------+------|
71 | / | \ | ^ | | | % | | , | . | ; | | PScn |
72 |------+------+-----+-----+-------+---------+------+----+-----+------+------|
73 | Shft | Ctrl | Alt | Del | Space | L1 | R1 | Shft | R2 | Sup | Ctrl | Alt |
74 '---------------------------------------------------------------------------'
75 */
76 [R1] = LAYOUT(
77 KC_LABK, KC_RABK, KC_LCBR, KC_RCBR, KX_AT, KC_DLR, KC_HASH, xxxxxxx, xxxxxxx, MO(R3),
78 KC_LBRC, KC_RBRC, KC_LPRN, KC_RPRN, KC_NUHS, KC_QUOT, LSFT(KC_2), LSFT(KC_NUHS), KC_GRV, KC_CAPS,
79 KC_SLSH, KC_NUBS, KC_CIRC, KX_PIPE, KC_PERC, _______, _______, _______, xxxxxxx, KC_PSCR,
80 _______, _______, _______, KC_DEL, _______, _______, _______, _______, _______, _______, _______, _______
81 ),
82
83 /* R2
84 .-----------------------------------. .--------------------.-----------------.
85 | F12 | F11 | F10 | F9 | Copy | | Home | Up | End | PgUp | Insert |
86 |------+------+------+------+-------| |------+------+------+------+----------|
87 | F8 | F7 | F6 | F5 | Paste | | Left | Down | Right| PgDn | Enter |
88 |------+------+------+------+-------| |------+------+------+------+----------|
89 | F4 | F3 | F2 | F1 | Cut | | ^Tab | | Tab | | |
90 |------+------+------+------+-------+---------+------+------+------+------+----------|
91 | Shft | Ctrl | Alt | Del | Undo | L1 | R1 | Shft | R2 | Sup | Ctrl | WinRight |
92 '------------------------------------------------------------------------------------'
93 */
94 [R2] = LAYOUT(
95 KC_F12, KC_F11, KC_F10, KC_F9, KX_COPY, KC_HOME, KC_UP, KC_END, KC_PGUP, KC_INS,
96 KC_F8, KC_F7, KC_F6, KC_F5, KX_PAST, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, KC_ENT,
97 KC_F4, KC_F3, KC_F2, KC_F1, KX_CUT, KCX_LST, xxxxxxx, KC_TAB, xxxxxxx, xxxxxxx,
98 _______, _______, _______, KC_DEL, KX_UNDO, _______, _______, _______, _______, _______, _______, KX_WINR
99 ),
100
101 /* R3
102 .----------------------------. .------------------------.
103 | RESET | | | | | | | | | | R3 |
104 |-------+----+-----+----+----| |----+----+----+----+----|
105 | | | | | | | | | | | |
106 |-------+----+-----+----+----| |----+----+----+----+----|
107 | | | | | | | | | | | |
108 |-------+----+-----+----+----+---------+----+----+----+----+----|
109 | | | | | | | | | | | | |
110 '---------------------------------------------------------------'
111 */
112 [R3] = LAYOUT(
113 RESET, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, _______,
114 xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
115 xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx,
116 xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx, xxxxxxx
117 )
118};
119