aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfordmr <mrford17@gmail.com>2018-06-25 19:11:14 -0500
committerDrashna Jaelre <drashna@live.com>2018-06-25 17:11:14 -0700
commitfc975fc2556ac2c4bc98f45ace63f25ce90e2a53 (patch)
treed3474f6112b109dec468ffd813847c6421631f57
parent52906ad4ba4376cc57db7288ecc58c7c5850fc3b (diff)
downloadqmk_firmware-fc975fc2556ac2c4bc98f45ace63f25ce90e2a53.tar.gz
qmk_firmware-fc975fc2556ac2c4bc98f45ace63f25ce90e2a53.zip
New Pok3r Based Keymap (#3226)
* Create keymap.c Modified the default to be way more like a pok3r, already clear that it needs a better ctrl location. * Delete keymap.c * Create keymap.c Modified the default keymap to be more like a pok3r, clearly needs a better ctrl location and probably some other tweaks. * Add files via upload * Update keymap.c Parenthesis correction. * Parenthetical cleanup Forgot one... * Mods and numpad; cleanup Rework mods and numpad layer, remove superfluous declarations * comment define devlayer * Create readme.md Background and intention. * Updated to fit example * Update readme.md * Update rules.mk * Update config.h * Updated includes Replaced: #include "iris.h" #include "action_layer.h" #include "eeconfig.h" With: #include QMK_KEYBOARD_H * Update rules.mk Removed RGB enable declarations * Update rules.mk * Update keymap.c Spaced out on MINS and EQL. * Update rules.mk Removed unnecessary block. * Remove the RGB call Make would fail because of the RGB call that wasn't anywhere but here, cleaned that up from the default config. * Update keymap.c Added [ and ] since I'd forgotten them originally...
-rw-r--r--keyboards/iris/keymaps/s1carii/config.h34
-rw-r--r--keyboards/iris/keymaps/s1carii/keymap.c145
-rw-r--r--keyboards/iris/keymaps/s1carii/readme.md9
-rw-r--r--keyboards/iris/keymaps/s1carii/rules.mk2
4 files changed, 190 insertions, 0 deletions
diff --git a/keyboards/iris/keymaps/s1carii/config.h b/keyboards/iris/keymaps/s1carii/config.h
new file mode 100644
index 000000000..7186744b7
--- /dev/null
+++ b/keyboards/iris/keymaps/s1carii/config.h
@@ -0,0 +1,34 @@
1/*
2Copyright 2017 Danny Nguyen <danny@keeb.io>
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#ifndef CONFIG_USER_H
19#define CONFIG_USER_H
20
21#include "config_common.h"
22
23/* Use I2C or Serial, not both */
24
25#define USE_SERIAL
26// #define USE_I2C
27
28/* Select hand configuration */
29
30#define MASTER_LEFT
31// #define MASTER_RIGHT
32// #define EE_HANDS
33
34#endif
diff --git a/keyboards/iris/keymaps/s1carii/keymap.c b/keyboards/iris/keymaps/s1carii/keymap.c
new file mode 100644
index 000000000..dd993a9bc
--- /dev/null
+++ b/keyboards/iris/keymaps/s1carii/keymap.c
@@ -0,0 +1,145 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5#define _QWERTY 0
6#define _LOWER 1
7#define _RAISE 2
8#define _ADJUST 16
9
10enum custom_keycodes {
11 QWERTY = SAFE_RANGE,
12 LOWER,
13 RAISE,
14 ADJUST,
15};
16
17#define KC_ KC_TRNS
18#define _______ KC_TRNS
19
20#define KC_LOWR LOWER
21#define KC_RASE RAISE
22#define KC_RST RESET
23#define KC_DBUG DEBUG
24//#define KC_DEV DEVLAYER
25
26const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
27
28 [_QWERTY] = LAYOUT_kc(
29 //,----+----+----+--+-+----+----. ,----+----+-+--+----+----+----.
30 ESC , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 0 ,BSPC,
31 //|----+----+----+----+----+----| |----+----+----+----+----+----|
32 TAB , Q , W , E , R , T , Y , U , I , O , P ,BSLS,
33 //|----+----+----+----+----+----| |----+----+----+----+----+----|
34 LOWR, A , S , D , F , G , H , J , K , L ,SCLN,QUOT,
35 //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
36 LSFT, Z , X , C , V , B ,LGUI, RCMD, N , M ,COMM,DOT ,SLSH,RSFT,
37 //`----+----+----+--+-+----+----+----/ \----+----+----+-+--+----+----+----'
38 RCTL,ENT ,SPC , SPC ,RASE,RALT
39 // `----+----+----' `----+----+----'
40 ),
41
42 [_LOWER] = LAYOUT_kc(
43 //,----+----+----+--+-+----+----. ,----+----+-+--+----+----+----.
44 GRV , , , , , , , , ,MINS,EQL ,DEL ,
45 //|----+----+----+----+----+----| |----+----+----+----+----+----|
46 , , , , , , ,PGDN, UP ,PGUP,LBRC,RBRC,
47 //|----+----+----+----+----+----| |----+----+----+----+----+----|
48 ,VOLD,VOLU,MUTE, , , HOME,LEFT,DOWN,RGHT, , ,
49 //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
50 LSFT, , , , , ,LGUI, RCMD,END , , , ,PSCR,RSFT,
51 //`----+----+----+--+-+----+----+----/ \----+----+----+-+--+----+----+----'
52 RCTL,ENT ,SPC , SPC , ,RALT
53 // `----+----+----' `----+----+----'
54 ),
55
56 [_RAISE] = LAYOUT_kc(
57 //,----+----+----+--+-+----+----. ,----+----+-+--+----+----+----.
58 F12 , F1 , F2 , F3 , F4 , F5 , F6 , F7 , F8 , F9 ,F10 ,F11 ,
59 //|----+----+----+----+----+----| |----+----+----+----+----+----|
60 , , UP , , , , , P7 , P8 , P9 ,PSLS,PAST,
61 //|----+----+----+----+----+----| |----+----+----+----+----+----|
62 ,LEFT,DOWN,RGHT, , , , P4 , P5 , P6 ,PMNS,PPLS,
63 //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
64 , , , , , , , NLCK, , P1 , P2 , P3 ,PDOT,PENT,
65 //`----+----+----+--+-+----+----+----/ \----+----+----+-+--+----+----+----'
66 RCTL,ENT ,SPC , SPC , , P0
67 // `----+----+----' `----+----+----'
68 ),
69
70 [_ADJUST] = LAYOUT_kc(
71 //,----+----+----+--+-+----+----. ,----+----+-+--+----+----+----.
72 , , , , ,RST , , , , , , ,
73 //|----+----+----+----+----+----| |----+----+----+----+----+----|
74 , , , , ,DBUG, , , , , , ,
75 //|----+----+----+----+----+----| |----+----+----+----+----+----|
76 , , , , , , , , , , , ,
77 //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
78 , , , , , , , , , , , , , ,
79 //`----+----+----+--+-+----+----+----/ \----+----+----+-+--+----+----+----'
80 , , , , ,
81 // `----+----+----' `----+----+----'
82 )
83
84 /*
85 [_DEVLAYER] = LAYOUT_kc(
86 //,----+----+----+--+-+----+----. ,----+----+-+--+----+----+----.
87 , , , , , , , , , , , ,
88 //|----+----+----+----+----+----| |----+----+----+----+----+----|
89 , , , , , , , , , , , ,
90 //|----+----+----+----+----+----| |----+----+----+----+----+----|
91 , , , , , , , , , , , ,
92 //|----+----+----+----+----+----+----. ,----|----+----+----+----+----+----|
93 , , , , , , , , , , , , , ,
94 //`----+----+----+--+-+----+----+----/ \----+----+----+-+--+----+----+----'
95 , , , , ,
96 // `----+----+----' `----+----+----'
97 )
98*/
99
100};
101
102void persistent_default_layer_set(uint16_t default_layer) {
103 eeconfig_update_default_layer(default_layer);
104 default_layer_set(default_layer);
105}
106
107bool process_record_user(uint16_t keycode, keyrecord_t *record) {
108 switch (keycode) {
109 case QWERTY:
110 if (record->event.pressed) {
111 persistent_default_layer_set(1UL<<_QWERTY);
112 }
113 return false;
114 break;
115 case LOWER:
116 if (record->event.pressed) {
117 layer_on(_LOWER);
118 update_tri_layer(_LOWER, _RAISE, _ADJUST);
119 } else {
120 layer_off(_LOWER);
121 update_tri_layer(_LOWER, _RAISE, _ADJUST);
122 }
123 return false;
124 break;
125 case RAISE:
126 if (record->event.pressed) {
127 layer_on(_RAISE);
128 update_tri_layer(_LOWER, _RAISE, _ADJUST);
129 } else {
130 layer_off(_RAISE);
131 update_tri_layer(_LOWER, _RAISE, _ADJUST);
132 }
133 return false;
134 break;
135 case ADJUST:
136 if (record->event.pressed) {
137 layer_on(_ADJUST);
138 } else {
139 layer_off(_ADJUST);
140 }
141 return false;
142 break;
143 }
144 return true;
145}
diff --git a/keyboards/iris/keymaps/s1carii/readme.md b/keyboards/iris/keymaps/s1carii/readme.md
new file mode 100644
index 000000000..9b46e8670
--- /dev/null
+++ b/keyboards/iris/keymaps/s1carii/readme.md
@@ -0,0 +1,9 @@
1# Pok3r Based iris Keymap
2
3Pok3r was what got me into mechanical keyboards years ago and what has been my daily driver since, WhiteFox and the like being always on the periphery. As such, those keybinds are what is most natural and notably not in the default keymap configuration.
4
5Make example for this keymap (after setting up your build environment):
6
7 make iris/rev2:s1carii:avrdude
8
9See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information.
diff --git a/keyboards/iris/keymaps/s1carii/rules.mk b/keyboards/iris/keymaps/s1carii/rules.mk
new file mode 100644
index 000000000..5cf55d3d7
--- /dev/null
+++ b/keyboards/iris/keymaps/s1carii/rules.mk
@@ -0,0 +1,2 @@
1RGBLIGHT_ENABLE = no
2BACKLIGHT_ENABLE= no