From 48eb980c2a2b8a63be89d6c975fb7c0200eda394 Mon Sep 17 00:00:00 2001 From: Peter Eichinger Date: Mon, 18 Jan 2016 21:56:00 +0100 Subject: Add defines for CtrlAltGui modifiers --- quantum/keymap_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/quantum/keymap_common.h b/quantum/keymap_common.h index 2d8b29c777..3db40772e0 100644 --- a/quantum/keymap_common.h +++ b/quantum/keymap_common.h @@ -68,6 +68,7 @@ extern const uint16_t fn_actions[]; #define LGUI(kc) kc | 0x0800 #define HYPR(kc) kc | 0x0F00 #define MEH(kc) kc | 0x0700 +#define LCAG(kc) kc | 0x0D00 // Modifier Ctrl Alt and GUI #define RCTL(kc) kc | 0x1100 #define RSFT(kc) kc | 0x1200 @@ -193,6 +194,7 @@ extern const uint16_t fn_actions[]; #define GUI_T(kc) MT(0x8, kc) #define C_S_T(kc) MT(0x3, kc) // Control + Shift e.g. for gnome-terminal #define MEH_T(kc) MT(0x7, kc) // Meh is a less hyper version of the Hyper key -- doesn't include Win or Cmd, so just alt+shift+ctrl +#define LCAG_T(kc) MT(0xD, kc) // Left control alt and gui #define ALL_T(kc) MT(0xF, kc) // see http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/ // Dedicated keycode versions for Hyper and Meh, if you want to use them as standalone keys rather than mod-tap -- cgit v1.2.3 From 783eafac6e181fb6225d894edc083cdc3bfae9c8 Mon Sep 17 00:00:00 2001 From: Peter Eichinger Date: Mon, 18 Jan 2016 22:31:36 +0100 Subject: Readme for LCAG modifier combo and international characters with AutoHotkey --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 55fb76798b..1274c402d7 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Your keymap can include shortcuts to common operations (called "function actions * `RGUI(kc)` - applies right GUI (command/win) to *kc* * `HYPR(kc)` - applies Hyper (all modifiers) to *kc* * `MEH(kc)` - applies Meh (all modifiers except Win/Cmd) to *kc* +* `LCAG(kc)` - applies CtrlAltGui to *kc* You can also chain these, like this: @@ -89,6 +90,7 @@ We've added shortcuts to make common modifier/tap (mod-tap) mappings more compac * `ALT_T(kc)` - is LALT when held and *kc* when tapped * `GUI_T(kc)` - is LGUI when held and *kc* when tapped * `ALL_T(kc)` - is Hyper (all mods) when held and *kc* when tapped. To read more about what you can do with a Hyper key, see [this blog post by Brett Terpstra](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/) + * `LCAG_T(kc)` - is CtrlAltGui when held and *kc* when tapped * `MEH_T(kc)` - is like Hyper, but not as cool -- does not include the Cmd/Win key, so just sends Alt+Ctrl+Shift. ### Temporarily setting the default layer @@ -175,3 +177,23 @@ This is still a WIP, but check out `quantum/keymap_midi.c` to see what's happeni ## Bluetooth functionality This requires [some hardware changes](https://www.reddit.com/r/MechanicalKeyboards/comments/3psx0q/the_planck_keyboard_with_bluetooth_guide_and/?ref=search_posts), but can be enabled via the Makefile. The firmware will still output characters via USB, so be aware of this when charging via a computer. It would make sense to have a switch on the Bluefruit to turn it off at will. + +## International Characters on Windows + +[AutoHotkey](https://autohotkey.com) allows Windows users to create custom hotkeys amont others. + +The method does not require Unicode support in the keyboard itself but depends instead of AutoHotkey running in the background. + +First you need to select a modifier combination that is not in use by any of your programs. +CtrlAltWin is not used very widely and should therefore be perfect for this. +There is a macro defined for a mod-tab combo `LCAG_T`. +Add this mod-tab combo to a key on your keyboard, e.g.: `LCAG_T(KC_TAB)`. +This makes the key behave like a tab key if pressed and released immediately but changes it to the modifier if used with another key. + +In the default script of AutoHotkey you can define custom hotkeys. + + <^ Date: Mon, 18 Jan 2016 22:33:26 +0100 Subject: Fix code formatting in international characters readme entry --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1274c402d7..f46bd68e26 100644 --- a/README.md +++ b/README.md @@ -192,8 +192,8 @@ This makes the key behave like a tab key if pressed and released immediately but In the default script of AutoHotkey you can define custom hotkeys. - <^