]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Keymap: Grahampheath: telophase fix and keymaps (#3888)
authorGraham P Heath <graham.p.heath@gmail.com>
Sat, 15 Sep 2018 17:12:11 +0000 (12:12 -0500)
committerDrashna Jaelre <drashna@live.com>
Sat, 15 Sep 2018 17:12:11 +0000 (10:12 -0700)
* 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

keyboards/planck/keymaps/grahampheath/config.h
layouts/community/ortho_4x12/grahampheath/config.h
layouts/community/ortho_4x12/grahampheath/keymap.c

index 1c842420bb2c5d19ba3733bf7669e2e1485f1600..db24d273a4dc1e18eb66350832d5b788ce8f351c 100644 (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
index 21d647921c0e6fdc72fb0843f77c8ca4d68a4e1f..8bc3d7762df8e8b3d044056d88df94d8d589a426 100644 (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 */
index e2421e9a7ed4ca4531eb5855bfbf8df6f5aee56e..0b84b66eb88905fce0ab36cc5a651a60f8b74bc1 100644 (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_");