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
This commit is contained in:
Graham P Heath 2018-09-15 12:12:11 -05:00 committed by Drashna Jaelre
parent b1f11636c6
commit db35065e14
3 changed files with 19 additions and 12 deletions

View File

@ -1,7 +1,4 @@
#ifndef CONFIG_USER_H #pragma once
#define CONFIG_USER_H
#include "../../config.h"
#ifdef AUDIO_ENABLE #ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(PLANCK_SOUND) #define STARTUP_SONG SONG(PLANCK_SOUND)
@ -39,8 +36,6 @@
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
//#define MIDI_TONE_KEYCODE_OCTAVES 2 //#define MIDI_TONE_KEYCODE_OCTAVES 2
#endif
#define TAPPING_TERM 200 #define TAPPING_TERM 200
#undef BACKLIGHT_LEVELS #undef BACKLIGHT_LEVELS

View File

@ -21,8 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONFIG_USER_H #ifndef CONFIG_USER_H
#define CONFIG_USER_H #define CONFIG_USER_H
#define FLIP_HALF
#include "keyboards/lets_split/config.h" #include "keyboards/lets_split/config.h"
/* Use I2C or Serial, not both */ /* Use I2C or Serial, not both */

View File

@ -19,6 +19,7 @@ enum custom_keycodes {
CONFUSED, CONFUSED,
CRY, CRY,
CLAP, CLAP,
ELIP,
FLIP, FLIP,
FNGLEFT, FNGLEFT,
FNGRIGHT, FNGRIGHT,
@ -35,6 +36,7 @@ enum custom_keycodes {
THMBDN, THMBDN,
THMBUP, THMBUP,
TOUNGE, TOUNGE,
THANKS,
WINK WINK
}; };
@ -114,19 +116,19 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Emoji Layer /* Emoji Layer
* *
* HYPR0 Q ;-) E 🤣 :-P Y U :'-( FLIP P * HYPR0 Q ;-) E 🤣 :-P 🙏🏼 U :'-( FLIP P
* *
* HYPR1 👆 SHRUG GRIN :-( G <3 :-) k LLAP ; * HYPR1 👆 SHRUG GRIN :-( G <3 :-) k LLAP ;
* *
* HYPR2🎶^🎶💭^💭 👏 | :-\ 🐛 n :-D SHIT . / * HYPR2🎶^🎶💭^💭 👏 | :-\ 🐛 n :-D SHIT ... /
* *
* Brig- Sleep Brig+ 👈 👎 | 👍 👉 * Brig- Sleep Brig+ 👈 👎 | 👍 👉
* *
*/ */
[_EMOJI] = LAYOUT_ortho_4x12( [_EMOJI] = LAYOUT_ortho_4x12(
HYPR_0, _______, WINK, _______, ROFL, TOUNGE, _______, _______, CRY, FLIP, _______, _______ , HYPR_0, _______, WINK, _______, ROFL, TOUNGE, THANKS, _______, CRY, FLIP, _______, _______ ,
HYPR_1, ABOVE, SHRUG, GRIN, FROWN, _______, HEART, JOY, _______, LLAP, _______, _______ , HYPR_1, ABOVE, SHRUG, GRIN, FROWN, _______, HEART, JOY, _______, LLAP, _______, _______ ,
HYPR_2, SING, THINK, CLAP, CONFUSED, BUG, _______, _______, SHIT, _______, _______, _______ , HYPR_2, SING, THINK, CLAP, CONFUSED, BUG, _______, _______, SHIT, ELIP, _______, _______ ,
_______, _______, _______, _______, KC_SLCK, KC_SLEP, KC_SLEP, KC_PAUS, FNGLEFT, THMBDN, THMBUP, FNGRIGHT _______, _______, _______, _______, KC_SLCK, KC_SLEP, KC_SLEP, KC_PAUS, FNGLEFT, THMBDN, THMBUP, FNGRIGHT
), ),
}; };
@ -174,6 +176,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
return false; return false;
break; break;
case ELIP:
if (record->event.pressed) {
SEND_STRING("...");
}
return false;
break;
case FLIP: case FLIP:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("&fliptable;"); SEND_STRING("&fliptable;");
@ -246,6 +254,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
return false; return false;
break; break;
case THANKS:
if (record->event.pressed) {
SEND_STRING("&thanks;");
}
return false;
break;
case THINK: case THINK:
if (record->event.pressed) { if (record->event.pressed) {
SEND_STRING("_think_"); SEND_STRING("_think_");