aboutsummaryrefslogtreecommitdiff
path: root/keyboards/contra
diff options
context:
space:
mode:
authorBramver <BramVer@users.noreply.github.com>2018-10-29 18:45:17 +0100
committerDrashna Jaelre <drashna@live.com>2018-10-29 10:45:17 -0700
commit1e96346f289ea235fc418ddc45203a599fd00c08 (patch)
tree57412f727ccf6026efc91079a3d7a9d996046f9c /keyboards/contra
parent6a629e5d0d4ed5903afa361568da8daeddc1b090 (diff)
downloadqmk_firmware-1e96346f289ea235fc418ddc45203a599fd00c08.tar.gz
qmk_firmware-1e96346f289ea235fc418ddc45203a599fd00c08.zip
Keymap: Added personal Contra layout. (#4235)
* Added personal Contra layout. * Update keyboards/contra/keymaps/bramver/rules.mk Co-Authored-By: BramVer <bramvereertbrugghen@live.be> * Update keyboards/contra/keymaps/bramver/keymap.c Co-Authored-By: BramVer <bramvereertbrugghen@live.be> * Update keyboards/contra/keymaps/bramver/keymap.c Co-Authored-By: BramVer <bramvereertbrugghen@live.be> * Reformatted layers to use the layout format.
Diffstat (limited to 'keyboards/contra')
-rw-r--r--keyboards/contra/keymaps/bramver/README.md35
-rwxr-xr-xkeyboards/contra/keymaps/bramver/config.h9
-rw-r--r--keyboards/contra/keymaps/bramver/keymap.c126
-rwxr-xr-xkeyboards/contra/keymaps/bramver/rules.mk6
4 files changed, 176 insertions, 0 deletions
diff --git a/keyboards/contra/keymaps/bramver/README.md b/keyboards/contra/keymaps/bramver/README.md
new file mode 100644
index 000000000..5327beba7
--- /dev/null
+++ b/keyboards/contra/keymaps/bramver/README.md
@@ -0,0 +1,35 @@
1# Contra layout
2
3My current setup consists of a very simple base layer, numbers layer, mouse layer and emoji layer.
4Still many options, but time will tell if changes are needed.
5
6## Keymap
7
8```
9#define SP_MSE LT(_MOUSE, KC_SPC)
10
11
12BASE layer
13 { KC_GESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC },
14 { KC_TAB , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN , KC_ENT },
15 { KC_LSFT , KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH , KC_QUOT },
16 { KC_LCTL , KC_GRV , KC_LALT , KC_LGUI , MO(1) , SP_MSE , SP_MSE , KC_LEFT , KC_DOWN , KC_UP , KC_RGHT , MO(2) },
17
18LOWER layer
19 { _______ , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_DEL },
20 { _______ , KC_F1 , KC_F2 , KC_F3 , KC_LBRC , KC_MINS , KC_EQL , KC_RBRC , KC_F7 , KC_F8 , KC_F9 , _______ },
21 { _______ , KC_F4 , KC_F5 , KC_F6 , KC_HOME , KC_BSLS , KC_MPLY , KC_END , KC_F10 , KC_F11 , KC_F12 , _______ },
22 { _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ },
23
24EMOJI layer
25 { _______ , X(CLAP) , X(CUM) , X(BNIS) , X(BUTT) , X(CAR) , X(FIRE) , X(REDB) , X(MONY) , X(HNDR) , X(SOS) , _______ },
26 { _______ , X(CELE) , X(PRAY) , X(NAIL) , X(OK) , X(THNK) , X(UNAM) , X(HEYE) , X(COOL) , X(EYES) , X(SMIR) , _______ },
27 { _______ , X(TRIU) , X(SCRM) , X(VOMI) , X(DTIV) , X(EXPL) , X(HAIR) , X(DANC) , X(STRN) , X(LEFT) , X(RGHT) , _______ },
28 { _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ },
29
30MOUSE layer
31 { _______ , KC_WH_L , KC_BTN1 , KC_MS_U , KC_BTN2 , KC_WH_U , KC_WH_U , KC_BTN1 , KC_MS_U , KC_BTN2 , KC_WH_L , _______ },
32 { _______ , KC_WH_R , KC_MS_L , KC_MS_D , KC_MS_R , KC_WH_D , KC_WH_D , KC_MS_L , KC_MS_D , KC_MS_R , KC_WH_R , _______ },
33 { _______ , KC_VOLD , KC_VOLU , KC_MPRV , KC_MNXT , KC_MPLY , KC_MPLY , KC_MPRV , KC_MNXT , KC_VOLD , KC_VOLU , _______ },
34 { _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ },
35``` \ No newline at end of file
diff --git a/keyboards/contra/keymaps/bramver/config.h b/keyboards/contra/keymaps/bramver/config.h
new file mode 100755
index 000000000..de2a9b0ee
--- /dev/null
+++ b/keyboards/contra/keymaps/bramver/config.h
@@ -0,0 +1,9 @@
1#pragma once
2
3#define MOUSEKEY_DELAY 0
4#define MOUSEKEY_INTERVAL 16
5#define MOUSEKEY_MAX_SPEED 7
6#define MOUSEKEY_TIME_TO_MAX 60
7#define MOUSEKEY_WHEEL_MAX_SPEED 8
8#define MOUSEKEY_WHEEL_TIME_TO_MAX 40
9#define MOUSEKEY_WHEEL_DELAY 0
diff --git a/keyboards/contra/keymaps/bramver/keymap.c b/keyboards/contra/keymaps/bramver/keymap.c
new file mode 100644
index 000000000..8ccaf686b
--- /dev/null
+++ b/keyboards/contra/keymaps/bramver/keymap.c
@@ -0,0 +1,126 @@
1/* Copyright 2018 darm
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#include QMK_KEYBOARD_H
17
18enum emoji_map {
19 UNAM, // unamused 😒
20 HEYE, // smiling face with heart shaped eyes 😍
21 OK, // ok hand sign 👌
22 SMIR, // smirk 😏
23 PRAY, // pray 🙏
24 CELE, // celebration 🙌
25 COOL, // smile with sunglasses 😎
26 EYES, // eyes
27 THNK, // BIG THONK
28 NAIL, // Nailcare
29 SOS, // Vuile sos
30 REDB, // Red B
31 HNDR, // 100
32 MONY,
33 FIRE,
34 CAR,
35 BUTT,
36 BNIS,
37 CUM,
38 CLAP,
39 TRIU, // Fart from nose
40 SCRM,
41 VOMI,
42 DTIV, // Detective
43 EXPL, // Brainsplosion
44 HAIR, // Haircut
45 DANC, // Salsa dancer
46 STRN, // Stronk
47 LEFT, // Point Left
48 RGHT, // Point Right
49};
50
51const uint32_t PROGMEM unicode_map[] = {
52 [UNAM] = 0x1F612,
53 [HEYE] = 0x1f60d,
54 [OK] = 0x1F44C,
55 [SMIR] = 0x1F60F,
56 [PRAY] = 0x1F64F,
57 [CELE] = 0x1F64C,
58 [COOL] = 0x1F60E,
59 [EYES] = 0x1F440,
60 [THNK] = 0x1F914,
61 [NAIL] = 0x1F485,
62 [SOS] = 0x1F198,
63 [REDB] = 0x1F171,
64 [HNDR] = 0x1F4AF,
65 [MONY] = 0x1F480,
66 [FIRE] = 0x1F525,
67 [CAR] = 0x1F697,
68 [BUTT] = 0x1F351,
69 [BNIS] = 0x1F346,
70 [CUM] = 0x1F4A6,
71 [CLAP] = 0x1F44F,
72 [TRIU] = 0x1F624,
73 [SCRM] = 0x1F631,
74 [VOMI] = 0x1F92E,
75 [DTIV] = 0x1F575,
76 [EXPL] = 0x1F92F,
77 [HAIR] = 0x2640,
78 [DANC] = 0x1F483,
79 [STRN] = 0x1F4AA,
80 [LEFT] = 0x1F448,
81 [RGHT] = 0x1F449,
82};
83
84// Layer shorthand
85#define _BASE 0
86#define _LOWER 1
87#define _EMOJI 2
88#define _MOUSE 3
89
90#define SP_MSE LT(_MOUSE, KC_SPC)
91
92const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
93
94 [_BASE] = LAYOUT_ortho_4x12(
95 KC_GESC , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSPC ,
96 KC_TAB , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN , KC_ENT ,
97 KC_LSFT , KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM , KC_DOT , KC_SLSH , KC_QUOT ,
98 KC_LCTL , KC_GRV , KC_LALT , KC_LGUI , MO(1) , SP_MSE , SP_MSE , KC_LEFT , KC_DOWN , KC_UP , KC_RGHT , MO(2)
99 ),
100
101 [_LOWER] = LAYOUT_ortho_4x12(
102 _______ , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_DEL ,
103 _______ , KC_F1 , KC_F2 , KC_F3 , KC_LBRC , KC_MINS , KC_EQL , KC_RBRC , KC_F7 , KC_F8 , KC_F9 , _______ ,
104 _______ , KC_F4 , KC_F5 , KC_F6 , KC_HOME , KC_BSLS , KC_MPLY , KC_END , KC_F10 , KC_F11 , KC_F12 , _______ ,
105 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______
106 ),
107
108 [_EMOJI] = LAYOUT_ortho_4x12(
109 _______ , X(CLAP) , X(CUM) , X(BNIS) , X(BUTT) , X(CAR) , X(FIRE) , X(REDB) , X(MONY) , X(HNDR) , X(SOS) , _______ ,
110 _______ , X(CELE) , X(PRAY) , X(NAIL) , X(OK) , X(THNK) , X(UNAM) , X(HEYE) , X(COOL) , X(EYES) , X(SMIR) , _______ ,
111 _______ , X(TRIU) , X(SCRM) , X(VOMI) , X(DTIV) , X(EXPL) , X(HAIR) , X(DANC) , X(STRN) , X(LEFT) , X(RGHT) , _______ ,
112 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______
113 ),
114
115 [_MOUSE] = LAYOUT_ortho_4x12(
116 _______ , KC_WH_L , KC_BTN1 , KC_MS_U , KC_BTN2 , KC_WH_U , KC_WH_U , KC_BTN1 , KC_MS_U , KC_BTN2 , KC_WH_L , _______ ,
117 _______ , KC_WH_R , KC_MS_L , KC_MS_D , KC_MS_R , KC_WH_D , KC_WH_D , KC_MS_L , KC_MS_D , KC_MS_R , KC_WH_R , _______ ,
118 _______ , KC_VOLD , KC_VOLU , KC_MPRV , KC_MNXT , KC_MPLY , KC_MPLY , KC_MPRV , KC_MNXT , KC_VOLD , KC_VOLU , _______ ,
119 _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______ , _______
120 )
121
122};
123
124void matrix_init_user(void) {
125 set_unicode_input_mode(UC_LNX);
126}
diff --git a/keyboards/contra/keymaps/bramver/rules.mk b/keyboards/contra/keymaps/bramver/rules.mk
new file mode 100755
index 000000000..925b1c2b2
--- /dev/null
+++ b/keyboards/contra/keymaps/bramver/rules.mk
@@ -0,0 +1,6 @@
1MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
2EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
3NKRO_ENABLE = yes # USB Nkey Rollover
4UNICODEMAP_ENABLE = yes # Unicode
5BOOTLOADER = atmel-dfu
6