diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2015-10-27 22:00:52 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-27 22:00:52 -0400 |
| commit | d9f08e6177271594fa573993d9f4dbc2d98c7416 (patch) | |
| tree | 98096a91e8625cef8578bd21fed471bef23e955a /quantum/keymap_common.h | |
| parent | 909d30553fb0324cd021ebfb523e750b0009c636 (diff) | |
| download | qmk_firmware-d9f08e6177271594fa573993d9f4dbc2d98c7416.tar.gz qmk_firmware-d9f08e6177271594fa573993d9f4dbc2d98c7416.zip | |
toggle and hold-tap action shortcuts
Diffstat (limited to 'quantum/keymap_common.h')
| -rw-r--r-- | quantum/keymap_common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h index b1df4eb0f..100300e81 100644 --- a/quantum/keymap_common.h +++ b/quantum/keymap_common.h | |||
| @@ -172,8 +172,18 @@ extern const uint16_t fn_actions[]; | |||
| 172 | // Set default layer - 256 layer max | 172 | // Set default layer - 256 layer max |
| 173 | #define DF(layer) (layer | 0x5300) | 173 | #define DF(layer) (layer | 0x5300) |
| 174 | 174 | ||
| 175 | // Toggle to layer - 256 layer max | ||
| 176 | #define TG(layer) (layer | 0x5400) | ||
| 177 | |||
| 175 | #define MIDI(n) (n | 0x6000) | 178 | #define MIDI(n) (n | 0x6000) |
| 176 | 179 | ||
| 180 | // H-old, T-ap - 256 keycode max | ||
| 181 | #define HT(mod, kc) (kc | 0x7000 | ((mod & 0xF) << 8)) | ||
| 182 | #define CTL_T(kc) HT(0x1, kc) | ||
| 183 | #define SFT_T(kc) HT(0x2, kc) | ||
| 184 | #define ALT_T(kc) HT(0x4, kc) | ||
| 185 | #define GUI_T(kc) HT(0x8, kc) | ||
| 186 | |||
| 177 | // For sending unicode codes. | 187 | // For sending unicode codes. |
| 178 | // You may not send codes over 1FFF -- this supports most of UTF8. | 188 | // You may not send codes over 1FFF -- this supports most of UTF8. |
| 179 | // To have a key that sends out Œ, go UC(0x0152) | 189 | // To have a key that sends out Œ, go UC(0x0152) |
