/tpmiddle-rs

Rust port of https://github.com/tene0/tpmiddle

Primary LanguageRust

CI

tpmiddle-rs

tpmiddle-rs is a Rust port of tene0/tpmiddle with some improvements.

Features

Lightweight

It doesn't need ThinkPad TrackPoint Keyboard software since it directly communicates with the keyboard. You only need a tpmiddle-rs.exe.

Configure the keyboard with CLI

It sends commands to the keyboard on its startup to set following configurations:

  • --fn-lock enables fn lock (--no-fn-lock to disable it).
  • --sensitivity 1-9 sets TrackPoint sensitivity.

Smooth scrolling (Experimental)

It disables native middle button on its startup to intercept all middle button events. You can set scrolling controller by passing --scroll <controller> options to the program.

  • classic: It just bypasses middle button events. It would feel same with ThinkPad preferred scrolling.
  • smooth: It tries to smoothen discrete middle button events.

How to install

Download tpmiddle-rs.exe here https://github.com/foriequal0/tpmiddle-rs/releases and make a shortcut to Startup folder.

  1. Remove ThinkPad TrackPoint Keyboard software and reboot.
  2. Press Win + R key, type shell:startup, then select OK. Startup folder will show up.
  3. Drag and drop downloaded tpmiddle-rs.exe to the folder while pressing Alt key.
  4. Right click the created shortcut, click Properties.
  5. Append some configuration flags such as --fn-lock, --scroll smooth to Target. Flags should be separated by a whitespace.
  6. Press Ok button to save the shortcut.
  7. You can activate it now by double clicking the shortcut without reboot.

How to remove

  1. Terminate tpmiddle-rs.exe
    1. Press Alt + Ctrl + Delete, click Task Manager
    2. Press More Details, click Details tab.
    3. Find tpmiddle-rs.exe, click End Task.
  2. Remove tpmiddle-rs.exe
    1. Remove the shortcut from Startup folder.
    2. Remove tpmiddle-rs.exe.
  3. Pull the USB dongle, and put it again.
  4. Reinstall ThinkPad TrackPoint Keyboard software if you want.