aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Sandven <christian.sandven@kindly.ai>2021-08-22 07:11:56 +0200
committerGitHub <noreply@github.com>2021-08-21 22:11:56 -0700
commit9a51076859f00c28749bc8e1627e7f09263f3a88 (patch)
treef350c524dba94d16ef3d532933430c22e58f899e
parentb1b6fe1c3da1de17e56fc65499c61886cb0a298a (diff)
downloadqmk_firmware-9a51076859f00c28749bc8e1627e7f09263f3a88.tar.gz
qmk_firmware-9a51076859f00c28749bc8e1627e7f09263f3a88.zip
[Keyboard] Keyprez bison (#14100)
Co-authored-by: Ryan <fauxpark@gmail.com>
-rw-r--r--keyboards/keyprez/bison/bison.c35
-rw-r--r--keyboards/keyprez/bison/bison.h99
-rw-r--r--keyboards/keyprez/bison/config.h158
-rw-r--r--keyboards/keyprez/bison/info.json308
-rw-r--r--keyboards/keyprez/bison/keymaps/default/keymap.c226
-rw-r--r--keyboards/keyprez/bison/keymaps/default/readme.md1
-rw-r--r--keyboards/keyprez/bison/keymaps/default_6_6/keymap.c226
-rw-r--r--keyboards/keyprez/bison/keymaps/default_6_6/readme.md1
-rw-r--r--keyboards/keyprez/bison/keymaps/default_6_8/keymap.c226
-rw-r--r--keyboards/keyprez/bison/keymaps/default_6_8/readme.md1
-rw-r--r--keyboards/keyprez/bison/keymaps/default_8_6/keymap.c226
-rw-r--r--keyboards/keyprez/bison/keymaps/default_8_6/readme.md1
-rw-r--r--keyboards/keyprez/bison/readme.md21
-rw-r--r--keyboards/keyprez/bison/rules.mk25
14 files changed, 1554 insertions, 0 deletions
diff --git a/keyboards/keyprez/bison/bison.c b/keyboards/keyprez/bison/bison.c
new file mode 100644
index 000000000..66b86dfc9
--- /dev/null
+++ b/keyboards/keyprez/bison/bison.c
@@ -0,0 +1,35 @@
1/* Copyright 2021 csandven
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 "bison.h"
18
19bool encoder_update_kb(uint8_t index, bool clockwise) {
20 if (!encoder_update_user(index, clockwise)) { return false; }
21 if (index == 0) {
22 if (clockwise) {
23 tap_code(KC_VOLU);
24 } else {
25 tap_code(KC_VOLD);
26 }
27 } else if (index == 1) {
28 if (clockwise) {
29 tap_code(KC_PGDOWN);
30 } else {
31 tap_code(KC_PGUP);
32 }
33 }
34 return true;
35}
diff --git a/keyboards/keyprez/bison/bison.h b/keyboards/keyprez/bison/bison.h
new file mode 100644
index 000000000..74b7bae98
--- /dev/null
+++ b/keyboards/keyprez/bison/bison.h
@@ -0,0 +1,99 @@
1/* Copyright 2021 csandven
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#pragma once
18
19#include "quantum.h"
20
21#define LAYOUT( \
22 L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, R07, \
23 L10, L11, L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, R16, R17, \
24 L20, L21, L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, R26, R27, \
25 L30, L31, L32, L33, L34, L35, L36, L37, L44, R40, R30, R31, R32, R33, R34, R35, R36, R37, \
26 L40, L41, L42, L43, R41, R42, R43, R44 \
27 ) \
28 { \
29 { L07, L06, L05, L04, L03, L02, L01, L00 }, \
30 { L17, L16, L15, L14, L13, L12, L11, L10 }, \
31 { L27, L26, L25, L24, L23, L22, L21, L20 }, \
32 { L37, L36, L35, L34, L33, L32, L31, L30 }, \
33 { L43, L42, L41, L40, L44, KC_NO, KC_NO, KC_NO }, \
34 { R00, R01, R02, R03, R04, R05, R06, R07 }, \
35 { R10, R11, R12, R13, R14, R15, R16, R17 }, \
36 { R20, R21, R22, R23, R24, R25, R26, R27 }, \
37 { R30, R31, R32, R33, R34, R35, R36, R37 }, \
38 { R41, R42, R43, R44, R40, KC_NO, KC_NO } \
39 }
40
41#define LAYOUT_6_8( \
42 L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, R07, \
43 L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, R16, R17, \
44 L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, R26, R27, \
45 L32, L33, L34, L35, L36, L37, L44, R40, R30, R31, R32, R33, R34, R35, R36, R37, \
46 L40, L41, L42, L43, R41, R42, R43, R44 \
47 ) \
48 { \
49 { L07, L06, L05, L04, L03, L02, KC_NO, KC_NO }, \
50 { L17, L16, L15, L14, L13, L12, KC_NO, KC_NO }, \
51 { L27, L26, L25, L24, L23, L22, KC_NO, KC_NO }, \
52 { L37, L36, L35, L34, L33, L32, KC_NO, KC_NO }, \
53 { L43, L42, L41, L40, L44, KC_NO, KC_NO, KC_NO }, \
54 { R00, R01, R02, R03, R04, R05, R06, R07 }, \
55 { R10, R11, R12, R13, R14, R15, R16, R17 }, \
56 { R20, R21, R22, R23, R24, R25, R26, R27 }, \
57 { R30, R31, R32, R33, R34, R35, R36, R37 }, \
58 { R41, R42, R43, R44, R40, KC_NO, KC_NO } \
59 }
60
61#define LAYOUT_8_6( \
62 L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, \
63 L10, L11, L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, \
64 L20, L21, L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, \
65 L30, L31, L32, L33, L34, L35, L36, L37, L44, R40, R30, R31, R32, R33, R34, R35, \
66 L40, L41, L42, L43, R41, R42, R43, R44 \
67 ) \
68 { \
69 { L07, L06, L05, L04, L03, L02, L01, L00 }, \
70 { L17, L16, L15, L14, L13, L12, L11, L10 }, \
71 { L27, L26, L25, L24, L23, L22, L21, L20 }, \
72 { L37, L36, L35, L34, L33, L32, L31, L30 }, \
73 { L43, L42, L41, L40, L44, KC_NO, KC_NO, KC_NO }, \
74 { R00, R01, R02, R03, R04, R05, KC_NO, KC_NO }, \
75 { R10, R11, R12, R13, R14, R15, KC_NO, KC_NO }, \
76 { R20, R21, R22, R23, R24, R25, KC_NO, KC_NO }, \
77 { R30, R31, R32, R33, R34, R35, KC_NO, KC_NO }, \
78 { R41, R42, R43, R44, R40, KC_NO, KC_NO } \
79 }
80
81#define LAYOUT_6_6( \
82 L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, \
83 L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, \
84 L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, \
85 L32, L33, L34, L35, L36, L37, L44, R40, R30, R31, R32, R33, R34, R35, \
86 L40, L41, L42, L43, R41, R42, R43, R44 \
87 ) \
88 { \
89 { L07, L06, L05, L04, L03, L02, KC_NO, KC_NO }, \
90 { L17, L16, L15, L14, L13, L12, KC_NO, KC_NO }, \
91 { L27, L26, L25, L24, L23, L22, KC_NO, KC_NO }, \
92 { L37, L36, L35, L34, L33, L32, KC_NO, KC_NO }, \
93 { L43, L42, L41, L40, L44, KC_NO, KC_NO, KC_NO }, \
94 { R00, R01, R02, R03, R04, R05, KC_NO, KC_NO }, \
95 { R10, R11, R12, R13, R14, R15, KC_NO, KC_NO }, \
96 { R20, R21, R22, R23, R24, R25, KC_NO, KC_NO }, \
97 { R30, R31, R32, R33, R34, R35, KC_NO, KC_NO }, \
98 { R41, R42, R43, R44, R40, KC_NO, KC_NO } \
99 }
diff --git a/keyboards/keyprez/bison/config.h b/keyboards/keyprez/bison/config.h
new file mode 100644
index 000000000..a85e33c7e
--- /dev/null
+++ b/keyboards/keyprez/bison/config.h
@@ -0,0 +1,158 @@
1/*
2Copyright 2021 csandven
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0x0000
25#define DEVICE_VER 0x0001
26#define MANUFACTURER csandven
27#define PRODUCT bison
28
29/* key matrix size */
30#define MATRIX_ROWS 10
31#define MATRIX_COLS 8
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { D2, F7, B1, B3, D7 }
44#define MATRIX_COL_PINS { D3, E6, B2, B4, D4, F6, F5, F4 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL */
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55//#define LED_NUM_LOCK_PIN B0
56//#define LED_CAPS_LOCK_PIN B1
57//#define LED_SCROLL_LOCK_PIN B2
58//#define LED_COMPOSE_PIN B3
59//#define LED_KANA_PIN B4
60
61//#define BACKLIGHT_PIN B7
62//#define BACKLIGHT_LEVELS 3
63//#define BACKLIGHT_BREATHING
64
65//#define RGB_DI_PIN E2
66//#ifdef RGB_DI_PIN
67//# define RGBLED_NUM 16
68//# define RGBLIGHT_HUE_STEP 8
69//# define RGBLIGHT_SAT_STEP 8
70//# define RGBLIGHT_VAL_STEP 8
71//# define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
72//# define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
73/*== all animations enable ==*/
74//# define RGBLIGHT_ANIMATIONS
75/*== or choose animations ==*/
76//# define RGBLIGHT_EFFECT_BREATHING
77//# define RGBLIGHT_EFFECT_RAINBOW_MOOD
78//# define RGBLIGHT_EFFECT_RAINBOW_SWIRL
79//# define RGBLIGHT_EFFECT_SNAKE
80//# define RGBLIGHT_EFFECT_KNIGHT
81//# define RGBLIGHT_EFFECT_CHRISTMAS
82//# define RGBLIGHT_EFFECT_STATIC_GRADIENT
83//# define RGBLIGHT_EFFECT_RGB_TEST
84//# define RGBLIGHT_EFFECT_ALTERNATING
85/*== customize breathing effect ==*/
86/*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
87//# define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
88/*==== use exp() and sin() ====*/
89//# define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
90//# define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
91//#endif
92
93#define ENCODERS_PAD_A { B6 }
94#define ENCODERS_PAD_B { B5 }
95#define ENCODERS_PAD_A_RIGHT { B5 }
96#define ENCODERS_PAD_B_RIGHT { B6 }
97#define ENCODER_RESOLUTION 4
98
99/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
100#define DEBOUNCE 5
101
102/* define if matrix has ghost (lacks anti-ghosting diodes) */
103//#define MATRIX_HAS_GHOST
104
105/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
106#define LOCKING_SUPPORT_ENABLE
107/* Locking resynchronize hack */
108#define LOCKING_RESYNC_ENABLE
109
110/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
111 * This is useful for the Windows task manager shortcut (ctrl+shift+esc).
112 */
113//#define GRAVE_ESC_CTRL_OVERRIDE
114
115/*
116 * Force NKRO
117 *
118 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
119 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
120 * makefile for this to work.)
121 *
122 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
123 * until the next keyboard reset.
124 *
125 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
126 * fully operational during normal computer usage.
127 *
128 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
129 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
130 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
131 * power-up.
132 *
133 */
134//#define FORCE_NKRO
135
136/*
137 * Feature disable options
138 * These options are also useful to firmware size reduction.
139 */
140
141/* disable debug print */
142//#define NO_DEBUG
143
144/* disable print */
145//#define NO_PRINT
146
147/* disable action features */
148//#define NO_ACTION_LAYER
149//#define NO_ACTION_TAPPING
150//#define NO_ACTION_ONESHOT
151
152/* disable these deprecated features by default */
153#define NO_ACTION_MACRO
154#define NO_ACTION_FUNCTION
155
156/* Bootmagic Lite key configuration */
157//#define BOOTMAGIC_LITE_ROW 0
158//#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/keyprez/bison/info.json b/keyboards/keyprez/bison/info.json
new file mode 100644
index 000000000..58de9b1ae
--- /dev/null
+++ b/keyboards/keyprez/bison/info.json
@@ -0,0 +1,308 @@
1{
2 "keyboard_name": "bison",
3 "url": "",
4 "maintainer": "Christian Sandven",
5 "width": 18,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label": "F1", "x": 0, "y": 0},
11 {"label": "F2", "x": 1, "y": 0},
12 {"label": "~", "x": 2, "y": 0},
13 {"label": "1", "x": 3, "y": 0},
14 {"label": "2", "x": 4, "y": 0},
15 {"label": "3", "x": 5, "y": 0},
16 {"label": "4", "x": 6, "y": 0},
17 {"label": "5", "x": 7, "y": 0},
18 {"label": "6", "x": 10, "y": 0},
19 {"label": "7", "x": 11, "y": 0},
20 {"label": "8", "x": 12, "y": 0},
21 {"label": "9", "x": 13, "y": 0},
22 {"label": "0", "x": 14, "y": 0},
23 {"label": "-", "x": 15, "y": 0},
24 {"label": "=", "x": 16, "y": 0},
25 {"label": "Del", "x": 17, "y": 0},
26
27 {"label": "F3", "x": 0, "y": 1},
28 {"label": "F4", "x": 1, "y": 1},
29 {"label": "Tab", "x": 2, "y": 1},
30 {"label": "Q", "x": 3, "y": 1},
31 {"label": "W", "x": 4, "y": 1},
32 {"label": "E", "x": 5, "y": 1},
33 {"label": "R", "x": 6, "y": 1},
34 {"label": "T", "x": 7, "y": 1},
35 {"label": "Y", "x": 10, "y": 1},
36 {"label": "U", "x": 11, "y": 1},
37 {"label": "I", "x": 12, "y": 1},
38 {"label": "O", "x": 13, "y": 1},
39 {"label": "P", "x": 14, "y": 1},
40 {"label": "[", "x": 15, "y": 1},
41 {"label": "]", "x": 16, "y": 1},
42 {"label": "\\", "x": 17, "y": 1},
43
44 {"label": "F5", "x": 0, "y": 2},
45 {"label": "F6", "x": 1, "y": 2},
46 {"label": "Esc", "x": 2, "y": 2},
47 {"label": "A", "x": 3, "y": 2},
48 {"label": "S", "x": 4, "y": 2},
49 {"label": "D", "x": 5, "y": 2},
50 {"label": "F", "x": 6, "y": 2},
51 {"label": "G", "x": 7, "y": 2},
52 {"label": "H", "x": 10, "y": 2},
53 {"label": "J", "x": 11, "y": 2},
54 {"label": "K", "x": 12, "y": 2},
55 {"label": "L", "x": 13, "y": 2},
56 {"label": ";", "x": 14, "y": 2},
57 {"label": "'", "x": 15, "y": 2},
58 {"label": "BS", "x": 16, "y": 2},
59 {"label": "FN", "x": 17, "y": 2},
60
61 {"label": "F7", "x": 0, "y": 3},
62 {"label": "F8", "x": 1, "y": 3},
63 {"label": "Shift", "x": 2, "y": 3},
64 {"label": "Z", "x": 3, "y": 3},
65 {"label": "X", "x": 4, "y": 3},
66 {"label": "C", "x": 5, "y": 3},
67 {"label": "V", "x": 6, "y": 3},
68 {"label": "B", "x": 7, "y": 3},
69 {"label": "Mute", "x": 8, "y": 3},
70 {"label": "MPLY", "x": 9, "y": 3},
71 {"label": "N", "x": 10, "y": 3},
72 {"label": "M", "x": 11, "y": 3},
73 {"label": ",", "x": 12, "y": 3},
74 {"label": ".", "x": 13, "y": 3},
75 {"label": "/", "x": 14, "y": 3},
76 {"label": "Enter", "x": 15, "y": 3},
77 {"label": "Home", "x": 16, "y": 3},
78 {"label": "End", "x": 17, "y": 3},
79
80 {"label": "OS", "x": 1.75, "y": 4},
81 {"label": "Alt", "x": 2.75, "y": 4},
82 {"label": "Lower", "x": 3.75, "y": 4},
83 {"label": "BS", "x": 4.75, "y": 4, "w": 1.5},
84 {"label": "", "x": 7.75, "y": 4, "w": 1.5},
85 {"label": "Raise", "x": 9.25, "y": 4},
86 {"label": "Alt", "x": 10.25, "y": 4},
87 {"label": "OS", "x": 11.25, "y": 4}
88 ]
89 },
90
91 "LAYOUT_6_8": {
92 "layout": [
93 {"label": "~", "x": 2, "y": 0},
94 {"label": "1", "x": 3, "y": 0},
95 {"label": "2", "x": 4, "y": 0},
96 {"label": "3", "x": 5, "y": 0},
97 {"label": "4", "x": 6, "y": 0},
98 {"label": "5", "x": 7, "y": 0},
99 {"label": "6", "x": 10, "y": 0},
100 {"label": "7", "x": 11, "y": 0},
101 {"label": "8", "x": 12, "y": 0},
102 {"label": "9", "x": 13, "y": 0},
103 {"label": "0", "x": 14, "y": 0},
104 {"label": "-", "x": 15, "y": 0},
105 {"label": "=", "x": 16, "y": 0},
106 {"label": "Del", "x": 17, "y": 0},
107
108 {"label": "Tab", "x": 2, "y": 1},
109 {"label": "Q", "x": 3, "y": 1},
110 {"label": "W", "x": 4, "y": 1},
111 {"label": "E", "x": 5, "y": 1},
112 {"label": "R", "x": 6, "y": 1},
113 {"label": "T", "x": 7, "y": 1},
114 {"label": "Y", "x": 10, "y": 1},
115 {"label": "U", "x": 11, "y": 1},
116 {"label": "I", "x": 12, "y": 1},
117 {"label": "O", "x": 13, "y": 1},
118 {"label": "P", "x": 14, "y": 1},
119 {"label": "[", "x": 15, "y": 1},
120 {"label": "]", "x": 16, "y": 1},
121 {"label": "\\", "x": 17, "y": 1},
122
123 {"label": "Esc", "x": 2, "y": 2},
124 {"label": "A", "x": 3, "y": 2},
125 {"label": "S", "x": 4, "y": 2},
126 {"label": "D", "x": 5, "y": 2},
127 {"label": "F", "x": 6, "y": 2},
128 {"label": "G", "x": 7, "y": 2},
129 {"label": "H", "x": 10, "y": 2},
130 {"label": "J", "x": 11, "y": 2},
131 {"label": "K", "x": 12, "y": 2},
132 {"label": "L", "x": 13, "y": 2},
133 {"label": ";", "x": 14, "y": 2},
134 {"label": "'", "x": 15, "y": 2},
135 {"label": "BS", "x": 16, "y": 2},
136 {"label": "FN", "x": 17, "y": 2},
137
138 {"label": "Shift", "x": 2, "y": 3},
139 {"label": "Z", "x": 3, "y": 3},
140 {"label": "X", "x": 4, "y": 3},
141 {"label": "C", "x": 5, "y": 3},
142 {"label": "V", "x": 6, "y": 3},
143 {"label": "B", "x": 7, "y": 3},
144 {"label": "Mute", "x": 8, "y": 3},
145 {"label": "MPLY", "x": 9, "y": 3},
146 {"label": "N", "x": 10, "y": 3},
147 {"label": "M", "x": 11, "y": 3},
148 {"label": ",", "x": 12, "y": 3},
149 {"label": ".", "x": 13, "y": 3},
150 {"label": "/", "x": 14, "y": 3},
151 {"label": "Enter", "x": 15, "y": 3},
152 {"label": "Home", "x": 16, "y": 3},
153 {"label": "End", "x": 17, "y": 3},
154
155 {"label": "OS", "x": 1.75, "y": 4},
156 {"label": "Alt", "x": 2.75, "y": 4},
157 {"label": "Lower", "x": 3.75, "y": 4},
158 {"label": "BS", "x": 4.75, "y": 4, "w": 1.5},
159 {"label": "", "x": 7.75, "y": 4, "w": 1.5},
160 {"label": "Raise", "x": 9.25, "y": 4},
161 {"label": "Alt", "x": 10.25, "y": 4},
162 {"label": "OS", "x": 11.25, "y": 4}
163 ]
164 },
165
166 "LAYOUT_8_6": {
167 "layout": [
168 {"label": "F1", "x": 0, "y": 0},
169 {"label": "F2", "x": 1, "y": 0},
170 {"label": "~", "x": 2, "y": 0},
171 {"label": "1", "x": 3, "y": 0},
172 {"label": "2", "x": 4, "y": 0},
173 {"label": "3", "x": 5, "y": 0},
174 {"label": "4", "x": 6, "y": 0},
175 {"label": "5", "x": 7, "y": 0},
176 {"label": "6", "x": 10, "y": 0},
177 {"label": "7", "x": 11, "y": 0},
178 {"label": "8", "x": 12, "y": 0},
179 {"label": "9", "x": 13, "y": 0},
180 {"label": "0", "x": 14, "y": 0},
181 {"label": "Del", "x": 15, "y": 0},
182
183 {"label": "F3", "x": 0, "y": 1},
184 {"label": "F4", "x": 1, "y": 1},
185 {"label": "Tab", "x": 2, "y": 1},
186 {"label": "Q", "x": 3, "y": 1},
187 {"label": "W", "x": 4, "y": 1},
188 {"label": "E", "x": 5, "y": 1},
189 {"label": "R", "x": 6, "y": 1},
190 {"label": "T", "x": 7, "y": 1},
191 {"label": "Y", "x": 10, "y": 1},
192 {"label": "U", "x": 11, "y": 1},
193 {"label": "I", "x": 12, "y": 1},
194 {"label": "O", "x": 13, "y": 1},
195 {"label": "P", "x": 14, "y": 1},
196 {"label": "BS", "x": 15, "y": 1},
197
198 {"label": "F5", "x": 0, "y": 2},
199 {"label": "F6", "x": 1, "y": 2},
200 {"label": "Esc", "x": 2, "y": 2},
201 {"label": "A", "x": 3, "y": 2},
202 {"label": "S", "x": 4, "y": 2},
203 {"label": "D", "x": 5, "y": 2},
204 {"label": "F", "x": 6, "y": 2},
205 {"label": "G", "x": 7, "y": 2},
206 {"label": "H", "x": 10, "y": 2},
207 {"label": "J", "x": 11, "y": 2},
208 {"label": "K", "x": 12, "y": 2},
209 {"label": "L", "x": 13, "y": 2},
210 {"label": ";", "x": 14, "y": 2},
211 {"label": "'", "x": 15, "y": 2},
212
213 {"label": "F7", "x": 0, "y": 3},
214 {"label": "F8", "x": 1, "y": 3},
215 {"label": "Shift", "x": 2, "y": 3},
216 {"label": "Z", "x": 3, "y": 3},
217 {"label": "X", "x": 4, "y": 3},
218 {"label": "C", "x": 5, "y": 3},
219 {"label": "V", "x": 6, "y": 3},
220 {"label": "B", "x": 7, "y": 3},
221 {"label": "Mute", "x": 8, "y": 3},
222 {"label": "MPLY", "x": 9, "y": 3},
223 {"label": "N", "x": 10, "y": 3},
224 {"label": "M", "x": 11, "y": 3},
225 {"label": ",", "x": 12, "y": 3},
226 {"label": ".", "x": 13, "y": 3},
227 {"label": "/", "x": 14, "y": 3},
228 {"label": "Enter", "x": 15, "y": 3},
229
230 {"label": "OS", "x": 1.75, "y": 4},
231 {"label": "Alt", "x": 2.75, "y": 4},
232 {"label": "Lower", "x": 3.75, "y": 4},
233 {"label": "BS", "x": 4.75, "y": 4, "w": 1.5},
234 {"label": "", "x": 7.75, "y": 4, "w": 1.5},
235 {"label": "Raise", "x": 9.25, "y": 4},
236 {"label": "Alt", "x": 10.25, "y": 4},
237 {"label": "FN", "x": 11.25, "y": 4}
238 ]
239 },
240
241 "LAYOUT_6_6": {
242 "layout": [
243 {"label": "~", "x": 2, "y": 0},
244 {"label": "1", "x": 3, "y": 0},
245 {"label": "2", "x": 4, "y": 0},
246 {"label": "3", "x": 5, "y": 0},
247 {"label": "4", "x": 6, "y": 0},
248 {"label": "5", "x": 7, "y": 0},
249 {"label": "6", "x": 10, "y": 0},
250 {"label": "7", "x": 11, "y": 0},
251 {"label": "8", "x": 12, "y": 0},
252 {"label": "9", "x": 13, "y": 0},
253 {"label": "0", "x": 14, "y": 0},
254 {"label": "Del", "x": 15, "y": 0},
255
256 {"label": "Tab", "x": 2, "y": 1},
257 {"label": "Q", "x": 3, "y": 1},
258 {"label": "W", "x": 4, "y": 1},
259 {"label": "E", "x": 5, "y": 1},
260 {"label": "R", "x": 6, "y": 1},
261 {"label": "T", "x": 7, "y": 1},
262 {"label": "Y", "x": 10, "y": 1},
263 {"label": "U", "x": 11, "y": 1},
264 {"label": "I", "x": 12, "y": 1},
265 {"label": "O", "x": 13, "y": 1},
266 {"label": "P", "x": 14, "y": 1},
267 {"label": "BS", "x": 15, "y": 1},
268
269 {"label": "Esc", "x": 2, "y": 2},
270 {"label": "A", "x": 3, "y": 2},
271 {"label": "S", "x": 4, "y": 2},
272 {"label": "D", "x": 5, "y": 2},
273 {"label": "F", "x": 6, "y": 2},
274 {"label": "G", "x": 7, "y": 2},
275 {"label": "H", "x": 10, "y": 2},
276 {"label": "J", "x": 11, "y": 2},
277 {"label": "K", "x": 12, "y": 2},
278 {"label": "L", "x": 13, "y": 2},
279 {"label": ";", "x": 14, "y": 2},
280 {"label": "'", "x": 15, "y": 2},
281
282 {"label": "Shift", "x": 2, "y": 3},
283 {"label": "Z", "x": 3, "y": 3},
284 {"label": "X", "x": 4, "y": 3},
285 {"label": "C", "x": 5, "y": 3},
286 {"label": "V", "x": 6, "y": 3},
287 {"label": "B", "x": 7, "y": 3},
288 {"label": "Mute", "x": 8, "y": 3},
289 {"label": "MPLY", "x": 9, "y": 3},
290 {"label": "N", "x": 10, "y": 3},
291 {"label": "M", "x": 11, "y": 3},
292 {"label": ",", "x": 12, "y": 3},
293 {"label": ".", "x": 13, "y": 3},
294 {"label": "/", "x": 14, "y": 3},
295 {"label": "Enter", "x": 15, "y": 3},
296
297 {"label": "OS", "x": 1.75, "y": 4},
298 {"label": "Alt", "x": 2.75, "y": 4},
299 {"label": "Lower", "x": 3.75, "y": 4},
300 {"label": "BS", "x": 4.75, "y": 4, "w": 1.5},
301 {"label": "", "x": 7.75, "y": 4, "w": 1.5},
302 {"label": "Raise", "x": 9.25, "y": 4},
303 {"label": "Alt", "x": 10.25, "y": 4},
304 {"label": "FN", "x": 11.25, "y": 4}
305 ]
306 }
307 }
308}
diff --git a/keyboards/keyprez/bison/keymaps/default/keymap.c b/keyboards/keyprez/bison/keymaps/default/keymap.c
new file mode 100644
index 000000000..fc1f34664
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default/keymap.c
@@ -0,0 +1,226 @@
1/* Copyright 2021 csandven
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _QWERTY,
21 _COLEMAK,
22 _LOWER,
23 _RAISE,
24 _HRM,
25 _FN,
26};
27
28enum custom_keycodes {
29 KC_QWRTY = SAFE_RANGE,
30 KC_COLMK,
31 KC_HRM,
32 KC_PRVWD,
33 KC_NXTWD
34};
35
36#define LOWER MO(_LOWER)
37#define RAISE MO(_RAISE)
38#define FN MO(_FN)
39#define ESC_CTL MT(MOD_LCTL, KC_ESC)
40#define HRM_LG MT(MOD_LGUI, KC_A)
41#define HRM_LA MT(MOD_LALT, KC_S)
42#define HRM_LC MT(MOD_LCTL, KC_D)
43#define HRM_LS MT(MOD_LSFT, KC_F)
44#define HRM_RG MT(MOD_RGUI, KC_SCLN)
45#define HRM_RA MT(MOD_RALT, KC_L)
46#define HRM_RC MT(MOD_RCTL, KC_K)
47#define HRM_RS MT(MOD_RSFT, KC_J)
48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 /*
51 * QWERTY
52 * ,-------------------------------------------------------. ,-------------------------------------------------------.
53 * | F1 | F2 | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - | = | DEL |
54 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
55 * | F3 | F4 | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ | ] | \ |
56 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
57 * | F5 | F6 | ESC | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' | BS | Fn |
58 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
59 * | F7 | F8 |LShift| Z | X | C | V | B | | | | N | M | , | . | / | Enter| Home | End |
60 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
61 * | LGUI | LAlt | LCTR |LOWER | BS / \Space |RAISE | RCTR | RAlt | RGUI |
62 * | | | | | / \ | | | | |
63 * `----------------------------------' '------''---------------------------'
64 */
65 [_QWERTY] = LAYOUT(
66 KC_F1, KC_F2, KC_GRV, 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_DEL ,
67 KC_F3, KC_F4, 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,
68 KC_F5, KC_F6, ESC_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSPC, FN,
69 KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_HOME, KC_END,
70 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, KC_RGUI
71 ),
72
73 /*
74 * COLEMAK
75 * ,-------------------------------------------------------. ,-------------------------------------------------------.
76 * | F1 | F2 | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - | = | DEL |
77 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
78 * | F3 | F4 | Tab | Q | W | F | P | G | | J | L | U | Y | ; | [ | ] | \ |
79 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
80 * | F5 | F6 | ESC | A | R | S | T | D |-------. ,-------| H | N | E | I | O | ' | BS | Fn |
81 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
82 * | F7 | F8 |LShift| Z | X | C | V | B | | | | K | M | , | . | / | Enter| Home | End |
83 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
84 * | LGUI | LAlt | LCTR |LOWER | BS / \Space \ |RAISE | RCTR | RAlt | RGUI |
85 * | | | | | / \ \ | | | | |
86 * `----------------------------------' '------''---------------------------'
87 */
88 [_COLEMAK] = LAYOUT(
89 KC_F1, KC_F2, KC_GRV, 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_DEL,
90 KC_F3, KC_F4, KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_BSLS,
91 KC_F5, KC_F6, ESC_CTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, KC_BSPC, FN,
92 KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, XXXXXXX,KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_HOME, KC_END,
93 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, KC_RGUI
94 ),
95
96 /*
97 * LOWER
98 * ,-------------------------------------------------------. ,-------------------------------------------------------.
99 * | | | | | | | | | | | | | | | | | |
100 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
101 * | | | | F1 | F2 | F3 | F4 | | | | | | | | | | |
102 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
103 * | | | | F5 | F6 | F7 | F8 | |-------. ,-------| LEFT | DOWN | UP | RIGHT| | | | |
104 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
105 * | | | | F9 | F10 | F11 | F12 | | | | | | | | | | | | |
106 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
107 * | | | | | / \ \ | | | | |
108 * | | | | | / \ \ | | | | |
109 * `----------------------------------' '------''---------------------------'
110 */
111 [_LOWER] = LAYOUT(
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
113 _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, _______, _______, _______, _______, _______,
114 _______, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______, _______,
115 _______, _______, _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
116 _______,_______, _______, _______, _______, _______, _______, _______
117 ),
118
119 /*
120 * RAISE
121 * ,-------------------------------------------------------. ,-------------------------------------------------------.
122 * | | | | | | | | | | | | | | | | | |
123 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
124 * | | | | F1 | F2 | F3 | F4 | | | | | PrevW| UP | NextW| | | |
125 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
126 * | | | | F5 | F6 | F7 | F8 | |-------. ,-------| | | LEFT | DOWN | RIGHT| | | |
127 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
128 * | | | | F9 | F10 | F11 | F12 | | | | | | | | | | | | |
129 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
130 * | | | | | / \ \ | | | | |
131 * | | | | | / \ \ | | | | |
132 * `----------------------------------' '------''---------------------------'
133 */
134 [_RAISE] = LAYOUT(
135 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
136 _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______,KC_PRVWD, KC_UP,KC_NXTWD, _______, _______, _______,
137 _______, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_LEFT, KC_DOWN,KC_RIGHT, _______, _______, _______,
138 _______, _______, _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
139 _______,_______, _______, _______, _______, _______, _______, _______
140 ),
141
142 /*
143 * HRM
144 * ,-------------------------------------------------------. ,-------------------------------------------------------.
145 * | | | | | | | | | | | | | | | | | |
146 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
147 * | | | | | | | | | | | | | | | | | |
148 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
149 * | | | |HRM_LG|HRM_LA|HRM_LC|HRM_LS| |-------. ,-------| |HRM_RS|HRM_RC|HRM_RA|HRM_RG| | | |
150 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
151 * | | | | | | | | | | | | | | | | | | | |
152 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
153 * | | | | | / \ \ | | | | |
154 * | | | | | / \ \ | | | | |
155 * `----------------------------------' '------''---------------------------'
156 */
157 [_HRM] = LAYOUT(
158 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
159 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
160 _______, _______, _______, HRM_LG, HRM_LA, HRM_LC, HRM_LS, _______, _______, HRM_RS, HRM_RC, HRM_RA, HRM_RG, _______, _______, _______,
161 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
162 _______,_______, _______, _______, _______, _______, _______, _______
163 ),
164
165 /*
166 * FN
167 * ,-------------------------------------------------------. ,-------------------------------------------------------.
168 * | | | | | | | | | | | | | | | | | |
169 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
170 * | | | |QWERTY| | | | | | | | | | | | | |
171 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
172 * | | | | | | | | |-------. ,-------|KC_HRM| | | | | | | |
173 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
174 * | | | | | |COLEMAK| | | | | | | | | | | | | |
175 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
176 * | | | | | / \ \ | | | | |
177 * | | | | | / \ \ | | | | |
178 * `----------------------------------' '------''---------------------------'
179 */
180 [_FN] = LAYOUT(
181 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
182 _______, _______, _______,KC_QWRTY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
183 _______, _______, _______, _______, _______, _______, _______, _______, KC_HRM, _______, _______, _______, _______, _______, _______, _______,
184 _______, _______, _______, _______, _______,KC_COLMK, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
185 _______,_______, _______, _______, _______, _______, _______, _______
186 ),
187};
188
189bool process_record_user(uint16_t keycode, keyrecord_t *record) {
190 switch (keycode) {
191 case KC_QWRTY:
192 if (record->event.pressed) {
193 set_single_persistent_default_layer(_QWERTY);
194 }
195 return false;
196 case KC_COLMK:
197 if (record->event.pressed) {
198 set_single_persistent_default_layer(_COLEMAK);
199 }
200 return false;
201 case KC_HRM:
202 if (record->event.pressed) {
203 set_single_persistent_default_layer(_HRM);
204 }
205 return false;
206 case KC_PRVWD:
207 if (record->event.pressed) {
208 register_mods(mod_config(MOD_LCTL));
209 register_code(KC_LEFT);
210 } else {
211 unregister_mods(mod_config(MOD_LCTL));
212 unregister_code(KC_LEFT);
213 }
214 break;
215 case KC_NXTWD:
216 if (record->event.pressed) {
217 register_mods(mod_config(MOD_LCTL));
218 register_code(KC_RIGHT);
219 } else {
220 unregister_mods(mod_config(MOD_LCTL));
221 unregister_code(KC_RIGHT);
222 }
223 break;
224 }
225 return true;
226}
diff --git a/keyboards/keyprez/bison/keymaps/default/readme.md b/keyboards/keyprez/bison/keymaps/default/readme.md
new file mode 100644
index 000000000..b8557bbc8
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for bison
diff --git a/keyboards/keyprez/bison/keymaps/default_6_6/keymap.c b/keyboards/keyprez/bison/keymaps/default_6_6/keymap.c
new file mode 100644
index 000000000..816cd2fda
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default_6_6/keymap.c
@@ -0,0 +1,226 @@
1/* Copyright 2021 csandven
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _QWERTY,
21 _COLEMAK,
22 _LOWER,
23 _RAISE,
24 _HRM,
25 _FN,
26};
27
28enum custom_keycodes {
29 KC_QWRTY = SAFE_RANGE,
30 KC_COLMK,
31 KC_HRM,
32 KC_PRVWD,
33 KC_NXTWD
34};
35
36#define LOWER MO(_LOWER)
37#define RAISE MO(_RAISE)
38#define FN MO(_FN)
39#define ESC_CTL MT(MOD_LCTL, KC_ESC)
40#define HRM_LG MT(MOD_LGUI, KC_A)
41#define HRM_LA MT(MOD_LALT, KC_S)
42#define HRM_LC MT(MOD_LCTL, KC_D)
43#define HRM_LS MT(MOD_LSFT, KC_F)
44#define HRM_RG MT(MOD_RGUI, KC_SCLN)
45#define HRM_RA MT(MOD_RALT, KC_L)
46#define HRM_RC MT(MOD_RCTL, KC_K)
47#define HRM_RS MT(MOD_RSFT, KC_J)
48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 /*
51 * QWERTY
52 * ,-----------------------------------------. ,-----------------------------------------.
53 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | DEL |
54 * |------+------+------+------+------+------| |------+------+------+------+------+------+
55 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | BS |
56 * |------+------+------+------+------+------| |------+------+------+------+------+------+
57 * | ESC | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
58 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+
59 * |LShift| Z | X | C | V | B | | | | N | M | , | . | / | Enter|
60 * `-----------------------------------------/-------/ \------\-----------------------------------------'
61 * | LGUI | LAlt | LCTR |LOWER | BS / \Space |RAISE | RCTR | RAlt | FN |
62 * | | | | | / \ | | | | |
63 * `----------------------------------' '------''---------------------------'
64 */
65 [_QWERTY] = LAYOUT_6_6(
66 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
67 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
68 ESC_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
69 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
70 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, FN
71 ),
72
73 /*
74 * COLEMAK
75 * ,-----------------------------------------. ,-----------------------------------------.
76 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | DEL |
77 * |------+------+------+------+------+------| |------+------+------+------+------+------+
78 * | Tab | Q | W | F | P | G | | J | L | U | Y | ; | BS |
79 * |------+------+------+------+------+------| |------+------+------+------+------+------+
80 * | ESC | A | R | S | T | D |-------. ,-------| H | N | E | I | O | ' |
81 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+
82 * |LShift| Z | X | C | V | B | | | | K | M | , | . | / | Enter|
83 * `-----------------------------------------/-------/ \------\-----------------------------------------'
84 * | LGUI | LAlt | LCTR |LOWER | BS / \Space \ |RAISE | RCTR | RAlt | FN |
85 * | | | | | / \ \ | | | | |
86 * `----------------------------------' '------''---------------------------'
87 */
88 [_COLEMAK] = LAYOUT_6_6(
89 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
90 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
91 ESC_CTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
92 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, XXXXXXX,KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
93 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, FN
94 ),
95
96 /*
97 * LOWER
98 * ,-----------------------------------------. ,-----------------------------------------.
99 * | | | | | | | | | | | | | |
100 * |------+------+------+------+------+------| |------+------+------+------+------+------+
101 * | | F1 | F2 | F3 | F4 | | | | | | [ | ] | \ |
102 * |------+------+------+------+------+------| |------+------+------+------+------+------+
103 * | | F5 | F6 | F7 | F8 | |-------. ,-------| LEFT | DOWN | UP | RIGHT| | |
104 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+
105 * | | F9 | F10 | F11 | F12 | | | | | Home | | | End | | |
106 * `-----------------------------------------/-------/ \------\-----------------------------------------'
107 * | | | | | / \ \ | | | | |
108 * | | | | | / \ \ | | | | |
109 * `----------------------------------' '------''---------------------------'
110 */
111 [_LOWER] = LAYOUT_6_6(
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
113 _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS,
114 _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______,
115 _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,KC_HOME, _______, _______, KC_END, _______, _______,
116 _______,_______, _______, _______, _______, _______, _______, _______
117 ),
118
119 /*
120 * RAISE
121 * ,-----------------------------------------. ,-------------------------------------------------------.
122 * | | | | | | | | | | | | | | | |
123 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
124 * | | F1 | F2 | F3 | F4 | | | | | PrevW| UP | NextW| | | |
125 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
126 * | | F5 | F6 | F7 | F8 | |-------. ,-------| | | LEFT | DOWN | RIGHT| | | |
127 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
128 * | | F9 | F10 | F11 | F12 | | | | | | | | | | | | |
129 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
130 * | | | | | / \ \ | | | | |
131 * | | | | | / \ \ | | | | |
132 * `----------------------------------' '------''---------------------------'
133 */
134 [_RAISE] = LAYOUT_6_6(
135 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
136 _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______,KC_PRVWD, KC_UP,KC_NXTWD, _______,
137 _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_LEFT, KC_DOWN,KC_RIGHT, _______,
138 _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,_______, _______, _______, _______, _______, _______,
139 _______,_______, _______, _______, _______, _______, _______, _______
140 ),
141
142 /*
143 * HRM
144 * ,-----------------------------------------. ,-------------------------------------------------------.
145 * | | | | | | | | | | | | | | | |
146 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
147 * | | | | | | | | | | | | | | | |
148 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
149 * | |HRM_LG|HRM_LA|HRM_LC|HRM_LS| |-------. ,-------| |HRM_RS|HRM_RC|HRM_RA|HRM_RG| | | |
150 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
151 * | | | | | | | | | | | | | | | | | |
152 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
153 * | | | | | / \ \ | | | | |
154 * | | | | | / \ \ | | | | |
155 * `----------------------------------' '------''---------------------------'
156 */
157 [_HRM] = LAYOUT_6_6(
158 _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
159 _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
160 _______, HRM_LG, HRM_LA, HRM_LC, HRM_LS, _______, _______, HRM_RS, HRM_RC, HRM_RA, HRM_RG, _______,
161 _______, _______, _______, _______,_______, _______, _______, _______,_______, _______, _______, _______, _______, _______,
162 _______,_______, _______, _______, _______, _______, _______, _______
163 ),
164
165 /*
166 * FN
167 * ,-----------------------------------------. ,-------------------------------------------------------.
168 * | | | | | | | | | | | | | | | |
169 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
170 * | |QWERTY| | | | | | | | | | | | | |
171 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
172 * | | | | | | |-------. ,-------|KC_HRM| | | | | | | |
173 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
174 * | | | |COLEMAK| | | | | | | | | | | | | |
175 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
176 * | | | | | / \ \ | | | | |
177 * | | | | | / \ \ | | | | |
178 * `----------------------------------' '------''---------------------------'
179 */
180 [_FN] = LAYOUT_6_6(
181 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
182 _______,KC_QWRTY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
183 _______, _______, _______, _______, _______, _______, KC_HRM, _______, _______, _______, _______, _______,
184 _______, _______, _______,KC_COLMK, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______,
185 _______,_______, _______, _______, _______, _______, _______, _______
186 ),
187};
188
189bool process_record_user(uint16_t keycode, keyrecord_t *record) {
190 switch (keycode) {
191 case KC_QWRTY:
192 if (record->event.pressed) {
193 set_single_persistent_default_layer(_QWERTY);
194 }
195 return false;
196 case KC_COLMK:
197 if (record->event.pressed) {
198 set_single_persistent_default_layer(_COLEMAK);
199 }
200 return false;
201 case KC_HRM:
202 if (record->event.pressed) {
203 set_single_persistent_default_layer(_HRM);
204 }
205 return false;
206 case KC_PRVWD:
207 if (record->event.pressed) {
208 register_mods(mod_config(MOD_LCTL));
209 register_code(KC_LEFT);
210 } else {
211 unregister_mods(mod_config(MOD_LCTL));
212 unregister_code(KC_LEFT);
213 }
214 break;
215 case KC_NXTWD:
216 if (record->event.pressed) {
217 register_mods(mod_config(MOD_LCTL));
218 register_code(KC_RIGHT);
219 } else {
220 unregister_mods(mod_config(MOD_LCTL));
221 unregister_code(KC_RIGHT);
222 }
223 break;
224 }
225 return true;
226}
diff --git a/keyboards/keyprez/bison/keymaps/default_6_6/readme.md b/keyboards/keyprez/bison/keymaps/default_6_6/readme.md
new file mode 100644
index 000000000..b8557bbc8
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default_6_6/readme.md
@@ -0,0 +1 @@
# The default keymap for bison
diff --git a/keyboards/keyprez/bison/keymaps/default_6_8/keymap.c b/keyboards/keyprez/bison/keymaps/default_6_8/keymap.c
new file mode 100644
index 000000000..c42ee631d
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default_6_8/keymap.c
@@ -0,0 +1,226 @@
1/* Copyright 2021 csandven
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _QWERTY,
21 _COLEMAK,
22 _LOWER,
23 _RAISE,
24 _HRM,
25 _FN,
26};
27
28enum custom_keycodes {
29 KC_QWRTY = SAFE_RANGE,
30 KC_COLMK,
31 KC_HRM,
32 KC_PRVWD,
33 KC_NXTWD
34};
35
36#define LOWER MO(_LOWER)
37#define RAISE MO(_RAISE)
38#define FN MO(_FN)
39#define ESC_CTL MT(MOD_LCTL, KC_ESC)
40#define HRM_LG MT(MOD_LGUI, KC_A)
41#define HRM_LA MT(MOD_LALT, KC_S)
42#define HRM_LC MT(MOD_LCTL, KC_D)
43#define HRM_LS MT(MOD_LSFT, KC_F)
44#define HRM_RG MT(MOD_RGUI, KC_SCLN)
45#define HRM_RA MT(MOD_RALT, KC_L)
46#define HRM_RC MT(MOD_RCTL, KC_K)
47#define HRM_RS MT(MOD_RSFT, KC_J)
48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 /*
51 * QWERTY
52 * ,-----------------------------------------. ,-------------------------------------------------------.
53 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - | = | DEL |
54 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
55 * | Tab | Q | W | E | R | T | | Y | U | I | O | P | [ | ] | \ |
56 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
57 * | ESC | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' | BS | Fn |
58 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
59 * |LShift| Z | X | C | V | B | | | | N | M | , | . | / | Enter| Home | End |
60 * `----------------------------------------/-------/ \------\-------------------------------------------------------'
61 * | LGUI | LAlt | LCTR |LOWER | BS / \Space \ |RAISE | RCTR | RAlt | RGUI |
62 * | | | | | / \ \ | | | | |
63 * `----------------------------------' '------''---------------------------'
64 */
65 [_QWERTY] = LAYOUT_6_8(
66 KC_GRV, 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_DEL,
67 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,
68 ESC_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSPC, FN,
69 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_HOME, KC_END,
70 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, KC_RGUI
71 ),
72
73 /*
74 * COLEMAK
75 * ,-----------------------------------------. ,-------------------------------------------------------.
76 * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | - | = | DEL |
77 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
78 * | Tab | Q | W | F | P | G | | J | L | U | Y | ; | [ | ] | \ |
79 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
80 * | ESC | A | R | S | T | D |-------. ,-------| H | N | E | I | O | ' | BS | Fn |
81 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
82 * |LShift| Z | X | C | V | B | | | | K | M | , | . | / | Enter| Home | End |
83 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
84 * | LGUI | LAlt | LCTR |LOWER | BS / \Space \ |RAISE | RCTR | RAlt | RGUI |
85 * | | | | | / \ \ | | | | |
86 * `----------------------------------' '------''---------------------------'
87 */
88 [_COLEMAK] = LAYOUT_6_8(
89 KC_GRV, 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_DEL,
90 KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_LBRC, KC_RBRC, KC_BSLS,
91 ESC_CTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, KC_BSPC, FN,
92 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, XXXXXXX,KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_HOME, KC_END,
93 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, KC_RGUI
94 ),
95
96 /*
97 * LOWER
98 * ,-----------------------------------------. ,-------------------------------------------------------.
99 * | | | | | | | | | | | | | | | |
100 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
101 * | | F1 | F2 | F3 | F4 | | | | | | | | | | |
102 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
103 * | | F5 | F6 | F7 | F8 | |-------. ,-------| LEFT | DOWN | UP | RIGHT| | | | |
104 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
105 * | | F9 | F10 | F11 | F12 | | | | | | | | | | | | |
106 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
107 * | | | | | / \ \ | | | | |
108 * | | | | | / \ \ | | | | |
109 * `----------------------------------' '------''---------------------------'
110 */
111 [_LOWER] = LAYOUT_6_8(
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
113 _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, _______, _______, _______, _______, _______,
114 _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______, _______, _______,
115 _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
116 _______,_______, _______, _______, _______, _______, _______, _______
117 ),
118
119 /*
120 * RAISE
121 * ,-----------------------------------------. ,-------------------------------------------------------.
122 * | | | | | | | | | | | | | | | |
123 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
124 * | | F1 | F2 | F3 | F4 | | | | | PrevW| UP | NextW| | | |
125 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
126 * | | F5 | F6 | F7 | F8 | |-------. ,-------| | | LEFT | DOWN | RIGHT| | | |
127 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
128 * | | F9 | F10 | F11 | F12 | | | | | | | | | | | | |
129 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
130 * | | | | | / \ \ | | | | |
131 * | | | | | / \ \ | | | | |
132 * `----------------------------------' '------''---------------------------'
133 */
134 [_RAISE] = LAYOUT_6_8(
135 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
136 _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______,KC_PRVWD, KC_UP,KC_NXTWD, _______, _______, _______,
137 _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_LEFT, KC_DOWN,KC_RIGHT, _______, _______, _______,
138 _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
139 _______,_______, _______, _______, _______, _______, _______, _______
140 ),
141
142 /*
143 * HRM
144 * ,-----------------------------------------. ,-------------------------------------------------------.
145 * | | | | | | | | | | | | | | | |
146 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
147 * | | | | | | | | | | | | | | | |
148 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
149 * | |HRM_LG|HRM_LA|HRM_LC|HRM_LS| |-------. ,-------| |HRM_RS|HRM_RC|HRM_RA|HRM_RG| | | |
150 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
151 * | | | | | | | | | | | | | | | | | |
152 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
153 * | | | | | / \ \ | | | | |
154 * | | | | | / \ \ | | | | |
155 * `----------------------------------' '------''---------------------------'
156 */
157 [_HRM] = LAYOUT_6_8(
158 _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
159 _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
160 _______, HRM_LG, HRM_LA, HRM_LC, HRM_LS, _______, _______, HRM_RS, HRM_RC, HRM_RA, HRM_RG, _______, _______, _______,
161 _______, _______, _______, _______,_______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
162 _______,_______, _______, _______, _______, _______, _______, _______
163 ),
164
165 /*
166 * FN
167 * ,-----------------------------------------. ,-------------------------------------------------------.
168 * | | | | | | | | | | | | | | | |
169 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
170 * | |QWERTY| | | | | | | | | | | | | |
171 * |------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
172 * | | | | | | |-------. ,-------|KC_HRM| | | | | | | |
173 * |------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
174 * | | | |COLEMAK| | | | | | | | | | | | | |
175 * `-----------------------------------------/-------/ \------\-------------------------------------------------------'
176 * | | | | | / \ \ | | | | |
177 * | | | | | / \ \ | | | | |
178 * `----------------------------------' '------''---------------------------'
179 */
180 [_FN] = LAYOUT_6_8(
181 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
182 _______,KC_QWRTY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
183 _______, _______, _______, _______, _______, _______, KC_HRM, _______, _______, _______, _______, _______, _______, _______,
184 _______, _______, _______,KC_COLMK, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
185 _______,_______, _______, _______, _______, _______, _______, _______
186 ),
187};
188
189bool process_record_user(uint16_t keycode, keyrecord_t *record) {
190 switch (keycode) {
191 case KC_QWRTY:
192 if (record->event.pressed) {
193 set_single_persistent_default_layer(_QWERTY);
194 }
195 return false;
196 case KC_COLMK:
197 if (record->event.pressed) {
198 set_single_persistent_default_layer(_COLEMAK);
199 }
200 return false;
201 case KC_HRM:
202 if (record->event.pressed) {
203 set_single_persistent_default_layer(_HRM);
204 }
205 return false;
206 case KC_PRVWD:
207 if (record->event.pressed) {
208 register_mods(mod_config(MOD_LCTL));
209 register_code(KC_LEFT);
210 } else {
211 unregister_mods(mod_config(MOD_LCTL));
212 unregister_code(KC_LEFT);
213 }
214 break;
215 case KC_NXTWD:
216 if (record->event.pressed) {
217 register_mods(mod_config(MOD_LCTL));
218 register_code(KC_RIGHT);
219 } else {
220 unregister_mods(mod_config(MOD_LCTL));
221 unregister_code(KC_RIGHT);
222 }
223 break;
224 }
225 return true;
226}
diff --git a/keyboards/keyprez/bison/keymaps/default_6_8/readme.md b/keyboards/keyprez/bison/keymaps/default_6_8/readme.md
new file mode 100644
index 000000000..b8557bbc8
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default_6_8/readme.md
@@ -0,0 +1 @@
# The default keymap for bison
diff --git a/keyboards/keyprez/bison/keymaps/default_8_6/keymap.c b/keyboards/keyprez/bison/keymaps/default_8_6/keymap.c
new file mode 100644
index 000000000..173b9bc38
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default_8_6/keymap.c
@@ -0,0 +1,226 @@
1/* Copyright 2021 csandven
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _QWERTY,
21 _COLEMAK,
22 _LOWER,
23 _RAISE,
24 _HRM,
25 _FN,
26};
27
28enum custom_keycodes {
29 KC_QWRTY = SAFE_RANGE,
30 KC_COLMK,
31 KC_HRM,
32 KC_PRVWD,
33 KC_NXTWD
34};
35
36#define LOWER MO(_LOWER)
37#define RAISE MO(_RAISE)
38#define FN MO(_FN)
39#define ESC_CTL MT(MOD_LCTL, KC_ESC)
40#define HRM_LG MT(MOD_LGUI, KC_A)
41#define HRM_LA MT(MOD_LALT, KC_S)
42#define HRM_LC MT(MOD_LCTL, KC_D)
43#define HRM_LS MT(MOD_LSFT, KC_F)
44#define HRM_RG MT(MOD_RGUI, KC_SCLN)
45#define HRM_RA MT(MOD_RALT, KC_L)
46#define HRM_RC MT(MOD_RCTL, KC_K)
47#define HRM_RS MT(MOD_RSFT, KC_J)
48
49const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
50 /*
51 * QWERTY
52 * ,-------------------------------------------------------. ,-----------------------------------------.
53 * | F1 | F2 | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | DEL |
54 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+
55 * | F3 | F4 | Tab | Q | W | E | R | T | | Y | U | I | O | P | BS |
56 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+
57 * | F5 | F6 | ESC | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
58 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+
59 * | F7 | F8 |LShift| Z | X | C | V | B | | | | N | M | , | . | / | Enter|
60 * `-------------------------------------------------------/-------/ \------\-----------------------------------------'
61 * | LGUI | LAlt | LCTR |LOWER | BS / \Space |RAISE | RCTR | RAlt | FN |
62 * | | | | | / \ | | | | |
63 * `----------------------------------' '------''---------------------------'
64 */
65 [_QWERTY] = LAYOUT_8_6(
66 KC_F1, KC_F2, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
67 KC_F3, KC_F4, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
68 KC_F5, KC_F6, ESC_CTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
69 KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, KC_MPLY,KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
70 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, FN
71 ),
72
73 /*
74 * COLEMAK
75 * ,-------------------------------------------------------. ,-----------------------------------------.
76 * | F1 | F2 | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | DEL |
77 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+
78 * | F3 | F4 | Tab | Q | W | F | P | G | | J | L | U | Y | ; | BS |
79 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+
80 * | F5 | F6 | ESC | A | R | S | T | D |-------. ,-------| H | N | E | I | O | ' |
81 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+
82 * | F7 | F8 |LShift| Z | X | C | V | B | | | | K | M | , | . | / | Enter|
83 * `-------------------------------------------------------/-------/ \------\-----------------------------------------'
84 * | LGUI | LAlt | LCTR |LOWER | BS / \Space \ |RAISE | RCTR | RAlt | FN |
85 * | | | | | / \ \ | | | | |
86 * `----------------------------------' '------''---------------------------'
87 */
88 [_COLEMAK] = LAYOUT_8_6(
89 KC_F1, KC_F2, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL,
90 KC_F3, KC_F4, KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC,
91 KC_F5, KC_F6, ESC_CTL, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT,
92 KC_F7, KC_F8, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_MUTE, XXXXXXX,KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
93 KC_LGUI,KC_LALT, LOWER, KC_BSPC, KC_SPC, RAISE, KC_RALT, FN
94 ),
95
96 /*
97 * LOWER
98 * ,-------------------------------------------------------. ,-----------------------------------------.
99 * | | | | | | | | | | | | | | | |
100 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+
101 * | | | | F1 | F2 | F3 | F4 | | | | | | [ | ] | \ |
102 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+
103 * | | | | F5 | F6 | F7 | F8 | |-------. ,-------| LEFT | DOWN | UP | RIGHT| | |
104 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+
105 * | | | | F9 | F10 | F11 | F12 | | | | | Home | | | End | | |
106 * `-------------------------------------------------------/-------/ \------\-----------------------------------------'
107 * | | | | | / \ \ | | | | |
108 * | | | | | / \ \ | | | | |
109 * `----------------------------------' '------''---------------------------'
110 */
111 [_LOWER] = LAYOUT_8_6(
112 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
113 _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______, _______, KC_LBRC, KC_RBRC, KC_BSLS,
114 _______, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, _______, _______,
115 _______, _______, _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,KC_HOME, _______, _______, KC_END, _______, _______,
116 _______,_______, _______, _______, _______, _______, _______, _______
117 ),
118
119 /*
120 * RAISE
121 * ,-------------------------------------------------------. ,-------------------------------------------------------.
122 * | | | | | | | | | | | | | | | | | |
123 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
124 * | | | | F1 | F2 | F3 | F4 | | | | | PrevW| UP | NextW| | | |
125 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
126 * | | | | F5 | F6 | F7 | F8 | |-------. ,-------| | | LEFT | DOWN | RIGHT| | | |
127 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
128 * | | | | F9 | F10 | F11 | F12 | | | | | | | | | | | | |
129 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
130 * | | | | | / \ \ | | | | |
131 * | | | | | / \ \ | | | | |
132 * `----------------------------------' '------''---------------------------'
133 */
134 [_RAISE] = LAYOUT_8_6(
135 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
136 _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, _______,KC_PRVWD, KC_UP,KC_NXTWD, _______,
137 _______, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_LEFT, KC_DOWN,KC_RIGHT, _______,
138 _______, _______, _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______,_______, _______, _______, _______, _______, _______,
139 _______,_______, _______, _______, _______, _______, _______, _______
140 ),
141
142 /*
143 * HRM
144 * ,-------------------------------------------------------. ,-------------------------------------------------------.
145 * | | | | | | | | | | | | | | | | | |
146 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
147 * | | | | | | | | | | | | | | | | | |
148 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
149 * | | | |HRM_LG|HRM_LA|HRM_LC|HRM_LS| |-------. ,-------| |HRM_RS|HRM_RC|HRM_RA|HRM_RG| | | |
150 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
151 * | | | | | | | | | | | | | | | | | | | |
152 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
153 * | | | | | / \ \ | | | | |
154 * | | | | | / \ \ | | | | |
155 * `----------------------------------' '------''---------------------------'
156 */
157 [_HRM] = LAYOUT_8_6(
158 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
159 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______, _______, _______,
160 _______, _______, _______, HRM_LG, HRM_LA, HRM_LC, HRM_LS, _______, _______, HRM_RS, HRM_RC, HRM_RA, HRM_RG, _______,
161 _______, _______, _______, _______, _______, _______,_______, _______, _______, _______,_______, _______, _______, _______, _______, _______,
162 _______,_______, _______, _______, _______, _______, _______, _______
163 ),
164
165 /*
166 * FN
167 * ,-------------------------------------------------------. ,-------------------------------------------------------.
168 * | | | | | | | | | | | | | | | | | |
169 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
170 * | | | |QWERTY| | | | | | | | | | | | | |
171 * |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
172 * | | | | | | | | |-------. ,-------|KC_HRM| | | | | | | |
173 * |------+------+------+------+------+------+------+------| | | |------+------+------+------+------+------+------+------|
174 * | | | | | |COLEMAK| | | | | | | | | | | | | |
175 * `-------------------------------------------------------/-------/ \------\-------------------------------------------------------'
176 * | | | | | / \ \ | | | | |
177 * | | | | | / \ \ | | | | |
178 * `----------------------------------' '------''---------------------------'
179 */
180 [_FN] = LAYOUT_8_6(
181 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
182 _______, _______, _______,KC_QWRTY, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
183 _______, _______, _______, _______, _______, _______, _______, _______, KC_HRM, _______, _______, _______, _______, _______,
184 _______, _______, _______, _______, _______,KC_COLMK, _______, _______, _______, _______,_______, _______, _______, _______, _______, _______,
185 _______,_______, _______, _______, _______, _______, _______, _______
186 ),
187};
188
189bool process_record_user(uint16_t keycode, keyrecord_t *record) {
190 switch (keycode) {
191 case KC_QWRTY:
192 if (record->event.pressed) {
193 set_single_persistent_default_layer(_QWERTY);
194 }
195 return false;
196 case KC_COLMK:
197 if (record->event.pressed) {
198 set_single_persistent_default_layer(_COLEMAK);
199 }
200 return false;
201 case KC_HRM:
202 if (record->event.pressed) {
203 set_single_persistent_default_layer(_HRM);
204 }
205 return false;
206 case KC_PRVWD:
207 if (record->event.pressed) {
208 register_mods(mod_config(MOD_LCTL));
209 register_code(KC_LEFT);
210 } else {
211 unregister_mods(mod_config(MOD_LCTL));
212 unregister_code(KC_LEFT);
213 }
214 break;
215 case KC_NXTWD:
216 if (record->event.pressed) {
217 register_mods(mod_config(MOD_LCTL));
218 register_code(KC_RIGHT);
219 } else {
220 unregister_mods(mod_config(MOD_LCTL));
221 unregister_code(KC_RIGHT);
222 }
223 break;
224 }
225 return true;
226}
diff --git a/keyboards/keyprez/bison/keymaps/default_8_6/readme.md b/keyboards/keyprez/bison/keymaps/default_8_6/readme.md
new file mode 100644
index 000000000..b8557bbc8
--- /dev/null
+++ b/keyboards/keyprez/bison/keymaps/default_8_6/readme.md
@@ -0,0 +1 @@
# The default keymap for bison
diff --git a/keyboards/keyprez/bison/readme.md b/keyboards/keyprez/bison/readme.md
new file mode 100644
index 000000000..d537d9867
--- /dev/null
+++ b/keyboards/keyprez/bison/readme.md
@@ -0,0 +1,21 @@
1# bison
2
3![Imgur](https://i.imgur.com/FTOUHTqh.jpg)
4
5A split 60% ergonomic keyboard with a slight columnar stagger. Should provide an easy transition from a ortholinear keyboard to a split ergonomic keyboard.
6
7* Keyboard Maintainer: [csandven](https://github.com/csandven)
8* Hardware Supported: Pro micro compatible boards
9* Hardware Availability: *TBA*
10
11Make example for this keyboard (after setting up your build environment):
12
13 make bison:default
14
15Flashing example for this keyboard:
16
17 make bison:default:flash
18
19Simply click the reset button on the keyboard. Only the left button is needed if it is only a keymap update.
20
21See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
diff --git a/keyboards/keyprez/bison/rules.mk b/keyboards/keyprez/bison/rules.mk
new file mode 100644
index 000000000..632119a25
--- /dev/null
+++ b/keyboards/keyprez/bison/rules.mk
@@ -0,0 +1,25 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24SPLIT_KEYBOARD = yes
25ENCODER_ENABLE = yes