Low Level Key Remap

4.974 alpha adds a new feature for low level remapping of specific keyboard keys.
This will really remap your keys, so the system will think that a specific key is now a different key. This is only for pretty specific scenarios (e.g. if you want to transform right-shift into forward delete or similar)

There are two ways to trigger it:

  • The new trigger type "Remap Keyboard Key" in the "Automations, Named & Other Triggers" section
  • The predefined action "Remap Keyboard Key (Low Level)"

This example would remap the a key to the b key:

You can also make it remap only on specific keyboards by providing the keyboard name.

Interesting new feature. I'll have to think about how to leverage this. Is it relevant to this use case? Add Tilda to the List of Predefined Keyboard Shortcut

no it won't help in this case. It does just remap the physical location of a key but not its meaning / output.

1 Like

go it, thanks for clarifying!

Rereading my sentence it doesn't really make sense though :slight_smile: It of course changes the output of the key that has been remapped, but it can only change it to keys that exist - and I don't think there is a dedicated tilde key. (e.g. if you remap right-shift to "grave_accent_and_tilde" on a german keyboard layout it will now produce the < character.)

1 Like

I tried changing a to b, as in your example, and that worked. But when I remap Right Option to Fn, nothing happens. Neither when set as a trigger nor as an action.

By the way, is Fn supposed to function as the Globe key on an Apple keyboard?

there are multiple fn, make sure to use the „fn / function key“ one, that seems to be the correct one for current macs - and yes it works like globe

I tried both "Fn / function key" and "keyboard_fn", but neither worked. If I remap Right Option to something like "A," it works. However, if I remap "E" to "Fn / function key", it doesn’t work either. Clearly, the issue lies with the Fn key.

I even tried switching my Czech QWERTZ layout to US English QWERTY to see if that might be causing the problem, but it didn’t help. It also doesn’t matter whether I use the internal or external keyboard, the issue remains the same.

ah appaently there are two different fn key modes. One acts as a normal key and one as a modifier.

In 4.978 I have added the one that acts like the normal modifier key
it's called "standard globe / fn / function as modifier"

I’m not worthy of such quick development. :slight_smile: It seems to be working. I can now remap Right Ctrl to Globe, and the shortcuts assigned to it are functioning as intended. Thanks a lot!

is it meant to replace functionality provided by Karabiner?

not really, it‘s just for remapping keys at a low level.
If you use Karabiner just for that, then yes, you might be able to use BTT instead.

You can also achieve some interesting things when remapping a key to do nothing - when doing this it can still be recognized by BTT‘s Key Sequences feature

can I map caps lock to hyper with this and have key sequences in BTT recognize caps lock as hyper directly?

For that better use the built-in "act as hyper key" action and assign it to a capslock shortcut:

we already went over this last year haha, thing is I want to use that hyper key in Key Sequences; not direct shortcuts as I want to mimic layer-like functionality.

for this reason, I switched to karabiner elements for hyperkey related functionality. i also use karabiner for implementing colemak dh instead of qwerty since the macos one doesn't work all the time

can you quickly describe again what you mean by layer like? Most likely this is now possible with BTT - but no need to switch from Karabiner if it works!

i am always interested in minimising my use of tools :smiley:

something like this:

I press caps lock + w to activate "Window Management Layer" and then I can let go of 'w' (or not) and then press a key like 'k' to center my currently focused window

1 Like

ah I see.

I think it could be done by using the "BTTLastUsedKeyboardShortcut" in a condition like this (so basically checking whether the last shortcut was hyper+w), but definitely more work to set up than in Karabiner!

1 Like