Modifying Trackpoint speed on the fly by holding down a modifier

Hello! Absolutely loving my UHK. I’m hoping to be able to have a different trackpoint sensitivity (higher speed) when holding down left shift (while still maintaining the functionality of left shift). I’ve been playing around a fair bit but haven’t been able to figure out how to accomplish this. Any suggestions are deeply appreciated.

Thanks everyone!

Hi!

Macro commands will do the trick.

Either a simple variant using mouse keys acceleration modifier (which simply doubles the speed):

startMouse accelerate
holdKey iLS
stopMouse accelerate

Or finer control via the set command. E.g.:

set module.trackpoint.speed 1.5
holdKey iLS
set module.trackpoint.speed 0.8

For more info, see firmware/doc-dev/user-guide.md at master · UltimateHackingKeyboard/firmware · GitHub and firmware/doc-dev/reference-manual.md at master · UltimateHackingKeyboard/firmware · GitHub

4 Likes

You can also do this in the UI with the following option, though it doesn’t give you the same precision as the macro

(He wants the key to act as an acceleration modifier and shift at the same time.)

1 Like

Amazing! This is exactly what I was looking for, thank you so much. If I wanted to do this for a different key, like space for example, where is the documentation showing the “iLS” equivalent? I looked on GitHub and wasn’t able to find it. Thanks again!

For a list of key abbreviations, see the grammar in the reference manual linked above - search for SHORTCUT and SCANCODE_ABBREV. For space, it’s holdKey space.

For a user friendly explanation, see the user guide and search for basic principles.

For a more formal and exhaustive explanation, search the reference manual for MODMASK, SHORTCUT, holdKey and composition modes.

2 Likes

Many thanks. You rock! And so does this keyboard!

1 Like