Create A Custom Hyper Key

Note: If you just need a cassic Hyper Key (i.E. press Caps Lock to press ctrl + opt + cmd + shift (optional)) follow the standard instructions here: Defining a Hyper Key · GitBook

Custom Hyper Key Tutorial

In v5.221 I have made some improvements to key sequences that allow you to create custom, reliable Hyper Keys for almost any keyboard key. These custom Hyper Keys can include exactly the modifier keys you want. They require a little bit of setup, thus I have created this tutorial.

In this video I show how to:

  • Create a Hyper Key that is triggered by pressing the Right-Shift-Key
  • This custom Hyper Key presses ctrl and option
  • Execute an action if Right-Shift has been pressed briefly without triggering any other shortcut.

The example shared in the video can be downloaded here:
custom_hyper2.bttpreset (12.0 KB)

Steps required:

  • Disable the key you want to use as custom hyper key by remapping it to do nothing via "Automations, Named & Other Triggers => Remap Key"
  • Create separate Key Sequences for key down and key up.
  • Optionally create an additional Key Sequence for Key Down and Key Up, that one is triggered if the Hyper Key has only been pressed briefly.

image

This is very good. :smiley: It eliminates a lot of questions. Assuming you can find the button.

The actual function looks interesting, but unfortunately a dummy like me doesn't understand it straight away.

In your example, the right shift function is eliminated?

correct, in this example the right shift is replaced by a custom hyper key that presses opt+ctrl

Ok, if that's what someone wants, why not. I couldn't do without the right shift function. :man_shrugging:

But I could imagine the following:

  • R shift pressed short, but long enough to type a capital letter (normal function).

  • And a little longer pressed and held, then presses the modifiers.

But yes, everyone as he needs it. :slightly_smiling_face:

Yep, I for example rarely use the right-shift key :slight_smile: However this is just an example. You can remap any key you don't use exactly like this.

Here is an other interesting example on what is possible with the recent improvements. Note, this requites 5.220.

It remaps the enter key to a hyper key - but only if the right shift key is pressed first. As soon as you let go of the shift key, the enter key reverts to its standard behavior. Both right-shift and enter work as usual if they are pressed individually:

rightshift_enter_hyperkey3.bttpreset (10.4 KB)

This is done by using a key sequence that triggers on shift-down, which then disables the enter key by remapping it to "no key". Then there are two more key sequences that make convert the disabled enter key into a hyper key.

1 Like