aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscillope <jvrosenman@gmail.com>2018-05-04 14:10:24 -0400
committerDrashna Jaelre <drashna@live.com>2018-05-04 11:10:24 -0700
commit1ef819ba96b64cf569e893791f16a377dfb86888 (patch)
treea83e15fed96dee25a494f946e1268726a38e64f6
parent72ea1fd972540a6c5013b9e23d37829105b44b33 (diff)
downloadqmk_firmware-1ef819ba96b64cf569e893791f16a377dfb86888.tar.gz
qmk_firmware-1ef819ba96b64cf569e893791f16a377dfb86888.zip
Add "oscillope" layout for the Orthodox (#2893)
* Initial layout for the Orthodox * Added handy programming macros * Swapped raise/lower and os/alt to make it easier to reach the more used keys.
-rw-r--r--keyboards/orthodox/keymaps/oscillope/config.h41
-rw-r--r--keyboards/orthodox/keymaps/oscillope/keymap.c101
-rw-r--r--keyboards/orthodox/keymaps/oscillope/rules.mk3
3 files changed, 145 insertions, 0 deletions
diff --git a/keyboards/orthodox/keymaps/oscillope/config.h b/keyboards/orthodox/keymaps/oscillope/config.h
new file mode 100644
index 000000000..3b1fd5000
--- /dev/null
+++ b/keyboards/orthodox/keymaps/oscillope/config.h
@@ -0,0 +1,41 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6Copyright 2017 Art Ortenburger
7
8This program is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along 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_common.h"
26
27/* Use I2C or Serial, not both */
28
29// #define USE_SERIAL
30#define USE_I2C
31
32/* Select hand configuration */
33
34// #define MASTER_LEFT
35// #define MASTER_RIGHT
36// #define EE_HANDS
37
38#define TAPPING_TERM 200
39#define TAPPING_TOGGLE 3
40
41#endif
diff --git a/keyboards/orthodox/keymaps/oscillope/keymap.c b/keyboards/orthodox/keymaps/oscillope/keymap.c
new file mode 100644
index 000000000..28fea02c4
--- /dev/null
+++ b/keyboards/orthodox/keymaps/oscillope/keymap.c
@@ -0,0 +1,101 @@
1/*
2This is the keymap for the keyboard
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6Copyright 2017 Art Ortenburger
7
8This program is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 2 of the License, or
11(at your option) any later version.
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#include "orthodox.h"
23#include "action_layer.h"
24#include "eeconfig.h"
25
26extern keymap_config_t keymap_config;
27
28// Each layer gets a name for readability, which is then used in the keymap matrix below.
29// The underscores don't mean anything - you can have a layer called STUFF or any other name.
30// Layer names don't all need to be of the same length, obviously, and you can also skip them
31// entirely and just use numbers.
32#define _QWERTY 0
33#define _LOWER 1
34#define _RAISE 2
35#define _NAV 3
36
37enum custom_keycodes {
38 QWERTY = SAFE_RANGE,
39 LOWER,
40 RAISE,
41 NAV,
42 CC_ARRW,
43 CC_PRN,
44 CC_BRC,
45 CC_CBR,
46};
47
48// Fillers to make layering more clear
49#define _______ KC_TRNS
50#define XXXXXXX KC_NO
51
52#define NAV_TAP LT(_NAV, KC_SPC)
53
54const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
55
56 [_QWERTY] = KEYMAP( \
57 KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, \
58 KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, TT(_RAISE), TT(_LOWER), TT(_LOWER), TT(_RAISE), KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, \
59 KC_GRV, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_BSPC, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI, NAV_TAP, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT \
60 ),
61
62 [_LOWER] = KEYMAP( \
63 KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
64 KC_INS, _______, _______, CC_PRN, CC_BRC, CC_CBR, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, \
65 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, KC_MPRV, KC_MPLY, KC_MNXT, KC_VOLD, KC_VOLU \
66 ),
67
68 [_RAISE] = KEYMAP( \
69 KC_CAPS, KC_AMPR, KC_ASTR, KC_UNDS, KC_LPRN, KC_RPRN, KC_7, KC_8, KC_9, KC_EQL, _______, _______, \
70 _______, KC_DLR, KC_PERC, KC_CIRC, KC_LBRC, KC_RBRC, _______, _______, _______, _______, KC_4, KC_5, KC_6, KC_MINS, KC_PLUS, _______, \
71 CC_ARRW, KC_EXLM, KC_AT, KC_HASH, KC_LCBR, KC_RCBR, _______, _______, _______, _______, _______, KC_0, KC_1, KC_2, KC_3, KC_DOT, KC_BSLS, KC_PIPE \
72 ),
73
74 [_NAV] = KEYMAP( \
75 _______, _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, _______, _______, _______, _______, _______, _______, \
76 _______, _______, KC_MPRV, KC_MSTP, KC_MPLY, KC_MNXT, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, _______, \
77 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
78 )
79
80
81};
82
83bool process_record_user(uint16_t keycode, keyrecord_t *record) {
84 if (record->event.pressed) {
85 switch(keycode) {
86 case CC_ARRW:
87 SEND_STRING("->");
88 return false;
89 case CC_PRN:
90 SEND_STRING("()"SS_TAP(X_LEFT));
91 return false;
92 case CC_BRC:
93 SEND_STRING("[]"SS_TAP(X_LEFT));
94 return false;
95 case CC_CBR:
96 SEND_STRING("{}"SS_TAP(X_LEFT));
97 return false;
98 }
99 }
100 return true;
101}
diff --git a/keyboards/orthodox/keymaps/oscillope/rules.mk b/keyboards/orthodox/keymaps/oscillope/rules.mk
new file mode 100644
index 000000000..fb77881d9
--- /dev/null
+++ b/keyboards/orthodox/keymaps/oscillope/rules.mk
@@ -0,0 +1,3 @@
1SUBPROJECT_rev1 = no
2COMMAND_ENABLE = no
3MOUSEKEY_ENABLE = no