aboutsummaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorDeastinY <DeastinY@users.noreply.github.com>2018-08-19 21:30:28 +0200
committerDrashna Jaelre <drashna@live.com>2018-08-19 12:30:28 -0700
commit10b4591d88c2573ee3bdf99d195856f66c4899c3 (patch)
treece4ce64cf14aec309dab1da64f91a8aaa3c84c49 /keyboards
parentfe687af54d9a6810ded8bb4dd959eca9fe3e847c (diff)
downloadqmk_firmware-10b4591d88c2573ee3bdf99d195856f66c4899c3.tar.gz
qmk_firmware-10b4591d88c2573ee3bdf99d195856f66c4899c3.zip
Keymap: Added deastiny layout for contra [based on dvorak type II] (#3673)
* Added deastiny layout for contra [based on dvorak type II] * added questionmark and slash to another layer * added pragma once
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/contra/keymaps/deastiny/config.h37
-rw-r--r--keyboards/contra/keymaps/deastiny/keymap.c142
-rw-r--r--keyboards/contra/keymaps/deastiny/readme.md56
3 files changed, 235 insertions, 0 deletions
diff --git a/keyboards/contra/keymaps/deastiny/config.h b/keyboards/contra/keymaps/deastiny/config.h
new file mode 100644
index 000000000..8757eb70d
--- /dev/null
+++ b/keyboards/contra/keymaps/deastiny/config.h
@@ -0,0 +1,37 @@
1#pragma once
2
3#ifdef AUDIO_ENABLE
4 #define STARTUP_SONG SONG(PLANCK_SOUND)
5 // #define STARTUP_SONG SONG(NO_SOUND)
6
7 #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
8 SONG(COLEMAK_SOUND), \
9 SONG(DVORAK_SOUND) \
10 }
11#endif
12
13#define MUSIC_MASK (keycode != KC_NO)
14
15/*
16 * MIDI options
17 */
18
19/* Prevent use of disabled MIDI features in the keymap */
20//#define MIDI_ENABLE_STRICT 1
21
22/* enable basic MIDI features:
23 - MIDI notes can be sent when in Music mode is on
24*/
25
26#define MIDI_BASIC
27
28/* enable advanced MIDI features:
29 - MIDI notes can be added to the keymap
30 - Octave shift and transpose
31 - Virtual sustain, portamento, and modulation wheel
32 - etc.
33*/
34//#define MIDI_ADVANCED
35
36/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
37//#define MIDI_TONE_KEYCODE_OCTAVES 2
diff --git a/keyboards/contra/keymaps/deastiny/keymap.c b/keyboards/contra/keymaps/deastiny/keymap.c
new file mode 100644
index 000000000..846cbe9c7
--- /dev/null
+++ b/keyboards/contra/keymaps/deastiny/keymap.c
@@ -0,0 +1,142 @@
1/* Copyright 2015-2017 Jack Humbert
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
17#include QMK_KEYBOARD_H
18#include "keymap_extras/keymap_german.h"
19
20extern keymap_config_t keymap_config;
21
22enum planck_layers {
23 _DVORAK,
24 _LOWER,
25 _RAISE,
26 _ADJUST
27};
28
29enum planck_keycodes {
30 DVORAK = SAFE_RANGE,
31 LOWER,
32 RAISE
33};
34
35const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
36
37/**
38,-----------------------------------------------------------------------------------.
39 | ESC | Ü | , | . | P | Y | F | G | C | T | Z | Bksp |
40 |------+------+------+------+------+-------------+------+------+------+------+------|
41 | TAB | A | O | E | I | U | H | D | R | N | S | L |
42 |------+------+------+------+------+------|------+------+------+------+------+------|
43 | Shift| Ä | Ö | Q | J | K | X | B | M | W | V |Enter |
44 |------+------+------+------+------+------+------+------+------+------+------+------|
45 | CTRL | GUI | Alt | MOD |Lower | Space |Raise | Left |Right | Up |Down |
46 `-----------------------------------------------------------------------------------'
47**/
48 [_DVORAK] = LAYOUT_planck_mit(
49 KC_ESC, DE_UE, DE_COMM, DE_DOT, DE_P, DE_Y, DE_F, DE_G, DE_C, DE_T, DE_Z, KC_BSPC,
50 KC_TAB, DE_A, DE_O, DE_E, DE_I, DE_U, DE_H, DE_D, DE_R, DE_N, DE_S, DE_L,
51 KC_LSFT, DE_AE, DE_OE, DE_Q, DE_J, DE_K, DE_X, DE_B, DE_M, DE_W, DE_V, KC_ENT ,
52 KC_LCTL, KC_LGUI, KC_LALT, MO(3), LOWER, KC_SPC, RAISE, KC_LEFT, KC_RIGHT, KC_UP, KC_DOWN
53 ),
54
55 /* Lower
56 * ,-----------------------------------------------------------------------------------.
57 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del |
58 * |------+------+------+------+------+-------------+------+------+------+------+------|
59 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
60 * |------+------+------+------+------+------|------+------+------+------+------+------|
61 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | |
62 * |------+------+------+------+------+------+------+------+------+------+------+------|
63 * | | | | | | | | Next | Vol- | Vol+ | Play |
64 * `-----------------------------------------------------------------------------------'
65 */
66 [_LOWER] = LAYOUT_planck_mit(
67 DE_TILD, DE_EXLM, DE_AT, DE_HASH, DE_DLR, DE_PERC, DE_CIRC, DE_AMPR, DE_ASTR, DE_LPRN, DE_RPRN, KC_DEL,
68 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, DE_UNDS, DE_PLUS, DE_LCBR, DE_RCBR, DE_PIPE,
69 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), KC_HOME, KC_END, DE_QST,
70 _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
71 ),
72
73 /* Raise
74 * ,-----------------------------------------------------------------------------------.
75 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del |
76 * |------+------+------+------+------+-------------+------+------+------+------+------|
77 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
78 * |------+------+------+------+------+------|------+------+------+------+------+------|
79 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | |
80 * |------+------+------+------+------+------+------+------+------+------+------+------|
81 * | | | | | | | | Next | Vol- | Vol+ | Play |
82 * `-----------------------------------------------------------------------------------'
83 */
84 [_RAISE] = LAYOUT_planck_mit(
85 DE_GRV, DE_1, DE_2, DE_3, DE_4, DE_5, DE_6, DE_7, DE_8, DE_9, DE_0, KC_DEL,
86 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, DE_MINS, DE_EQL, DE_LBRC, DE_RBRC, DE_BSLS,
87 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, DE_SLSH,
88 _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY
89 ),
90
91 /* Adjust (MO(3))
92 * ,-----------------------------------------------------------------------------------.
93 * | | HOME | UP | END | | | | | | | | Del |
94 * |------+------+------+------+------+-------------+------+------+------+------+------|
95 * | | LEFT | DOWN | RIGHT| | | | | | | | |
96 * |------+------+------+------+------+------|------+------+------+------+------+------|
97 * | | | | | | | | | | | | |
98 * |------+------+------+------+------+------+------+------+------+------+------+------|
99 * | | | | | | | | | | | |
100 * `-----------------------------------------------------------------------------------'
101 */
102 [_ADJUST] = LAYOUT_planck_mit(
103 _______, KC_HOME, KC_UP, KC_END, _______, _______, _______, _______, _______, _______, _______, KC_DEL ,
104 _______, KC_LEFT, KC_DOWN, KC_RIGHT, _______, _______, _______, _______, _______, _______, _______, _______,
105 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
106 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
107 )
108
109};
110
111bool process_record_user(uint16_t keycode, keyrecord_t *record) {
112 switch (keycode) {
113 case DVORAK:
114 if (record->event.pressed) {
115 print("mode just switched to dvorak and this is a huge string\n");
116 set_single_persistent_default_layer(_DVORAK);
117 }
118 return false;
119 break;
120 case LOWER:
121 if (record->event.pressed) {
122 layer_on(_LOWER);
123 update_tri_layer(_LOWER, _RAISE, _ADJUST);
124 } else {
125 layer_off(_LOWER);
126 update_tri_layer(_LOWER, _RAISE, _ADJUST);
127 }
128 return false;
129 break;
130 case RAISE:
131 if (record->event.pressed) {
132 layer_on(_RAISE);
133 update_tri_layer(_LOWER, _RAISE, _ADJUST);
134 } else {
135 layer_off(_RAISE);
136 update_tri_layer(_LOWER, _RAISE, _ADJUST);
137 }
138 return false;
139 break;
140 }
141 return true;
142}
diff --git a/keyboards/contra/keymaps/deastiny/readme.md b/keyboards/contra/keymaps/deastiny/readme.md
new file mode 100644
index 000000000..61d722847
--- /dev/null
+++ b/keyboards/contra/keymaps/deastiny/readme.md
@@ -0,0 +1,56 @@
1# A Dvorak Type II based board
2
3As I switched from a Poker II some keys are based on my experience there.
4
5
6## DVORAK (Normal) Layer
7```
8,-----------------------------------------------------------------------------------.
9 | ESC | Ü | , | . | P | Y | F | G | C | T | Z | Bksp |
10 |------+------+------+------+------+-------------+------+------+------+------+------|
11 | TAB | A | O | E | I | U | H | D | R | N | S | L |
12 |------+------+------+------+------+------|------+------+------+------+------+------|
13 | Shift| Ä | Ö | Q | J | K | X | B | M | W | V |Enter |
14 |------+------+------+------+------+------+------+------+------+------+------+------|
15 | CTRL | OS | Alt | MO(3)|Lower | Space |Raise | Left |Right | Up |Down |
16 `-----------------------------------------------------------------------------------'
17```
18
19## Lower
20```
21,-----------------------------------------------------------------------------------.
22 | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
23 |------+------+------+------+------+-------------+------+------+------+------+------|
24 | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | |
25 |------+------+------+------+------+------|------+------+------+------+------+------|
26 | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | Home | End | ? |
27 |------+------+------+------+------+------+------+------+------+------+------+------|
28 | | | | | | | | Next | Vol- | Vol+ | Play |
29 `-----------------------------------------------------------------------------------'
30```
31
32## Raise
33```
34,-----------------------------------------------------------------------------------.
35 | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
36 |------+------+------+------+------+-------------+------+------+------+------+------|
37 | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
38 |------+------+------+------+------+------|------+------+------+------+------+------|
39 | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / |Pg Up |Pg Dn | / |
40 |------+------+------+------+------+------+------+------+------+------+------+------|
41 | | | | | | | | Next | Vol- | Vol+ | Play |
42 `-----------------------------------------------------------------------------------'
43```
44
45## Adjust (MO(3))
46```
47 ,-----------------------------------------------------------------------------------.
48 | | HOME | UP | END | | | | | | | | Del |
49 |------+------+------+------+------+-------------+------+------+------+------+------|
50 | | LEFT | DOWN | RIGHT| | | | | | | | |
51 |------+------+------+------+------+------|------+------+------+------+------+------|
52 | | | | | | | | | | | | |
53 |------+------+------+------+------+------+------+------+------+------+------+------|
54 | | | | | | | | | | | |
55 `-----------------------------------------------------------------------------------'
56``` \ No newline at end of file