1
0
Fork 0

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
#define CONFIG_USER_H
#include "../../config.h"
#pragma once
#ifdef AUDIO_ENABLE
#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) */
//#define MIDI_TONE_KEYCODE_OCTAVES 2
#endif
#define TAPPING_TERM 200
#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
#define CONFIG_USER_H
#define FLIP_HALF
#include "keyboards/lets_split/config.h"
/* Use I2C or Serial, not both */

View file

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