aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham P Heath <graham.p.heath@gmail.com>2018-09-15 12:12:11 -0500
committerDrashna Jaelre <drashna@live.com>2018-09-15 10:12:11 -0700
commitdb35065e1431246b5297e644a867ee6f5449a6f4 (patch)
tree561da959c7ebb42887d11c745842e246704cbd5d
parentb1f11636c63694f0e94504e5752e963c73f86c3b (diff)
downloadqmk_firmware-db35065e1431246b5297e644a867ee6f5449a6f4.tar.gz
qmk_firmware-db35065e1431246b5297e644a867ee6f5449a6f4.zip
Keymap: Grahampheath: telophase fix and keymaps (#3888)
* add my config * fix backlight, clean up that code * group background code, restore static var * qwerty is supposed to be in the middle * wrap layer change backlight in ifdef * backlight levels and some more 'emojis'. * Restructure to make it possible to press cmd ent on the right side of the board with one hand. * Expose the period through the number layer. Add Hyper keys to mouse layer * reduce mouse speed * add a : -P key * Thumbs up and down, remove some keys that are duplicated via function keys, clean up * fix build issues * add various emoji * duplicate default Meira keymaps * Miera updates * add documented but unmapped emoji * Sound for the Meira, was stumped by a file size! Thanks drashna! * add docs * docs * revert lib changes... * clean up * clean up * remove make file * Fixes missing key * clean up * add my lets split * add more emoji * add the telophase board (unofficially, I guess...) * add missing files * add/reset files * Review feedback implementation: Not needed. Add #define FLIP_HALF to your config.h file instead. * Review feedback implementation: All of these includes should be replaced with #include QMK_KEYBOARD_H. * Review feedback implementation: [FAILING] You may want to use LAYOUT_ortho_4x12 instead, and move this to /layouts/community/ortho_4x12/ instead. That way, you can use the same keymap for all of the boards. * clean up * add a key for command tilde (osx loves it) * at least its building again * remove adjusts and migrate layer switching to MO(_LAYER) * update the telophase readme * update the telophase readme * grahampheaths -> grahampheath * ONEHAND_ENABLE -> SWAP_HANDS_ENABLE * convert lets split to use ortho_4x12 * Move lets split keyboard layout into community/ortho_4x12 * make telophase use LAYOUT() * I did it?! * Add clap and grin * swap tabs and back and forward * whitespace * Add ellipsis and thanks emoji * Move flip_half to telophase config (conflicts with lets split layout) * Use #pragma once instead of config_user_h * remove unused stuff
-rw-r--r--keyboards/planck/keymaps/grahampheath/config.h7
-rw-r--r--layouts/community/ortho_4x12/grahampheath/config.h2
-rw-r--r--layouts/community/ortho_4x12/grahampheath/keymap.c22
3 files changed, 19 insertions, 12 deletions
diff --git a/keyboards/planck/keymaps/grahampheath/config.h b/keyboards/planck/keymaps/grahampheath/config.h
index 1c842420b..db24d273a 100644
--- a/keyboards/planck/keymaps/grahampheath/config.h
+++ b/keyboards/planck/keymaps/grahampheath/config.h
@@ -1,7 +1,4 @@
1#ifndef CONFIG_USER_H 1#pragma once
2#define CONFIG_USER_H
3
4#include "../../config.h"
5 2
6#ifdef AUDIO_ENABLE 3#ifdef AUDIO_ENABLE
7 #define STARTUP_SONG SONG(PLANCK_SOUND) 4 #define STARTUP_SONG SONG(PLANCK_SOUND)
@@ -39,8 +36,6 @@
39/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ 36/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
40//#define MIDI_TONE_KEYCODE_OCTAVES 2 37//#define MIDI_TONE_KEYCODE_OCTAVES 2
41 38
42#endif
43
44#define TAPPING_TERM 200 39#define TAPPING_TERM 200
45 40
46#undef BACKLIGHT_LEVELS 41#undef BACKLIGHT_LEVELS
diff --git a/layouts/community/ortho_4x12/grahampheath/config.h b/layouts/community/ortho_4x12/grahampheath/config.h
index 21d647921..8bc3d7762 100644
--- a/layouts/community/ortho_4x12/grahampheath/config.h
+++ b/layouts/community/ortho_4x12/grahampheath/config.h
@@ -21,8 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
21#ifndef CONFIG_USER_H 21#ifndef CONFIG_USER_H
22#define CONFIG_USER_H 22#define CONFIG_USER_H
23 23
24#define FLIP_HALF
25
26#include "keyboards/lets_split/config.h" 24#include "keyboards/lets_split/config.h"
27 25
28/* Use I2C or Serial, not both */ 26/* Use I2C or Serial, not both */
diff --git a/layouts/community/ortho_4x12/grahampheath/keymap.c b/layouts/community/ortho_4x12/grahampheath/keymap.c
index e2421e9a7..0b84b66eb 100644
--- a/layouts/community/ortho_4x12/grahampheath/keymap.c
+++ b/layouts/community/ortho_4x12/grahampheath/keymap.c
@@ -19,6 +19,7 @@ enum custom_keycodes {
19 CONFUSED, 19 CONFUSED,
20 CRY, 20 CRY,
21 CLAP, 21 CLAP,
22 ELIP,
22 FLIP, 23 FLIP,
23 FNGLEFT, 24 FNGLEFT,
24 FNGRIGHT, 25 FNGRIGHT,
@@ -35,6 +36,7 @@ enum custom_keycodes {
35 THMBDN, 36 THMBDN,
36 THMBUP, 37 THMBUP,
37 TOUNGE, 38 TOUNGE,
39 THANKS,
38 WINK 40 WINK
39}; 41};
40 42
@@ -114,19 +116,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
114 116
115/* Emoji Layer 117/* Emoji Layer
116 * ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ 118 * ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐
117 * │HYPR0│ Q │ ;-) │ E │ 🤣 │ :-P │ Y │ U │:'-( │FLIP │ P │ │ 119 * │HYPR0│ Q │ ;-) │ E │ 🤣 │ :-P │ 🙏🏼 │ U │:'-( │FLIP │ P │ │
118 * ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ 120 * ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
119 * │HYPR1│ 👆 │SHRUG│ GRIN│ :-( │ G │ <3 │ :-) │ k │LLAP │ ; │ │ 121 * │HYPR1│ 👆 │SHRUG│ GRIN│ :-( │ G │ <3 │ :-) │ k │LLAP │ ; │ │
120 * ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤ 122 * ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
121 * │HYPR2│🎶^🎶│💭^💭│ 👏 | :-\ │ 🐛 │ n │ :-D │ SHIT│ . │ / │ │ 123 * │HYPR2│🎶^🎶│💭^💭│ 👏 | :-\ │ 🐛 │ n │ :-D │ SHIT│ ... │ / │ │
122 * ├─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┼─────┼─────┼─────┼─────┤ 124 * ├─────┼─────┼─────┼─────┼─────┼─────┴─────┼─────┼─────┼─────┼─────┼─────┤
123 * │ │ │ │ │Brig-│ Sleep │Brig+│ 👈 │ 👎 | 👍 │ 👉 │ 125 * │ │ │ │ │Brig-│ Sleep │Brig+│ 👈 │ 👎 | 👍 │ 👉 │
124 * └─────┴─────┴─────┴─────┴─────┴───────────┴─────┴─────┴─────┴─────┴─────┘ 126 * └─────┴─────┴─────┴─────┴─────┴───────────┴─────┴─────┴─────┴─────┴─────┘
125 */ 127 */
126[_EMOJI] = LAYOUT_ortho_4x12( 128[_EMOJI] = LAYOUT_ortho_4x12(
127 HYPR_0, _______, WINK, _______, ROFL, TOUNGE, _______, _______, CRY, FLIP, _______, _______ , 129 HYPR_0, _______, WINK, _______, ROFL, TOUNGE, THANKS, _______, CRY, FLIP, _______, _______ ,
128 HYPR_1, ABOVE, SHRUG, GRIN, FROWN, _______, HEART, JOY, _______, LLAP, _______, _______ , 130 HYPR_1, ABOVE, SHRUG, GRIN, FROWN, _______, HEART, JOY, _______, LLAP, _______, _______ ,
129 HYPR_2, SING, THINK, CLAP, CONFUSED, BUG, _______, _______, SHIT, _______, _______, _______ , 131 HYPR_2, SING, THINK, CLAP, CONFUSED, BUG, _______, _______, SHIT, ELIP, _______, _______ ,
130 _______, _______, _______, _______, KC_SLCK, KC_SLEP, KC_SLEP, KC_PAUS, FNGLEFT, THMBDN, THMBUP, FNGRIGHT 132 _______, _______, _______, _______, KC_SLCK, KC_SLEP, KC_SLEP, KC_PAUS, FNGLEFT, THMBDN, THMBUP, FNGRIGHT
131), 133),
132}; 134};
@@ -174,6 +176,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
174 } 176 }
175 return false; 177 return false;
176 break; 178 break;
179 case ELIP:
180 if (record->event.pressed) {
181 SEND_STRING("...");
182 }
183 return false;
184 break;
177 case FLIP: 185 case FLIP:
178 if (record->event.pressed) { 186 if (record->event.pressed) {
179 SEND_STRING("&fliptable;"); 187 SEND_STRING("&fliptable;");
@@ -246,6 +254,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
246 } 254 }
247 return false; 255 return false;
248 break; 256 break;
257 case THANKS:
258 if (record->event.pressed) {
259 SEND_STRING("&thanks;");
260 }
261 return false;
262 break;
249 case THINK: 263 case THINK:
250 if (record->event.pressed) { 264 if (record->event.pressed) {
251 SEND_STRING("_think_"); 265 SEND_STRING("_think_");