Skip to content
SumirSethPublic

About

Custom touchpad gestures for Windows: bind edge slides, corner holds, swipes, taps, pinches and twists to any action

Topics

Resources

Contributing

Stars

33 stars

Watchers

1 watching

Forks

Repository files navigation

Touch logo

Touch

Custom touchpad gestures for Windows.

Latest release Downloads CI MIT license Windows 10 and 11 Made with Rust

Download · Features · FAQ · Build · Contributing

Touch settings window, dark theme

Slide along an edge to change the volume, hold a corner to pause music, swipe with three fingers to switch tabs, and choose what every gesture does.

Windows gives Precision Touchpads a handful of fixed 3- and 4-finger gestures. Touch adds edges, corners, pinches and twists, and each of them can do whatever you like. Pointer movement, scrolling and clicks stay exactly as Windows does them.

Touch is one native Rust executable. It runs headless in the tray at about 13 MB and uses no CPU while idle. It has no telemetry and no network access.

Features

Gestures

Gesture Default
Slide one finger along the right / top / bottom / left edge Brightness / volume / seek video / none
Hold one finger still in a corner Top-left: play/pause. Top-right: mute
3- and 4-finger swipes up, down, left, right None
3- and 4-finger taps None
4-finger twist, like turning a knob Volume
5-finger pinch in / out Task View
5-finger twist clockwise / anticlockwise Reopen tab / close tab

Actions

  • Presets: Task View, show desktop, switch or create virtual desktops, snap and minimise windows, Alt+Tab, close/reopen/next/previous tab, back/forward, copy/paste/undo/redo, search, notifications, quick settings, screenshot, lock, File Explorer and media keys.
  • Any keyboard shortcut: record it by pressing the keys.
  • Launch an app or file, or open a URL.
  • Continuous controls for edges and twists: volume, brightness, seek, horizontal scroll, zoom, tabs, virtual desktops, or your own pair of shortcuts. Sensitivity and direction are adjustable.

Also

  • A native settings window drawn on the GPU with GPUI. It follows your light or dark theme and accent colour, and opens only when you ask for it.
  • A Test button for every action. A gesture's row lights up when you perform it, which helps when you're learning the gestures.
  • Optional 3-finger drag. From the tray you can pause gestures and turn on start with Windows.
  • Settings are a readable JSON file.

Choosing an action, light theme General settings, dark theme

Install

  1. Download touch_X.Y.Z_x64-setup.exe from the latest release and run it. It installs for your user only and doesn't need administrator rights. An .msi is available for managed installs.
  2. Touch opens its settings and puts an icon in the tray. Click the icon to open settings again. Right-click it for Pause gestures, Start with Windows and Quit.

Note

Touch is not code-signed yet, so SmartScreen may say "Windows protected your PC". Select More info → Run anyway. Each release lists SHA256SUMS.txt, and every installer is built by GitHub Actions from the tagged commit.

Requirements: Windows 10 1809 or later, and a Precision Touchpad. Most laptops from the last several years have one. To check, open Settings → Bluetooth & devices → Touchpad. If it says "Your PC has a precision touchpad", you're set.

Important

Windows has its own 3- and 4-finger swipes and taps. If you give one of those to Touch, set the matching Windows gesture to Nothing under Settings → Bluetooth & devices → Touchpad → Three-finger / Four-finger gestures. Otherwise both run. Touch warns you when this applies, and the warning has a button that opens that page.

FAQ

Does Touch replace the touchpad driver or hook into Explorer?

No. Touch only listens to the touchpad through the standard Raw Input API, alongside Windows. It acts by sending ordinary keystrokes (SendInput), opening things with ShellExecute, and setting brightness through WMI. It installs no drivers, hooks or injected DLLs, and needs no administrator rights.

A gesture does two things at once.

Windows is handling it too. Set the Windows gesture for that finger count to Nothing (see above).

Edge slides don't trigger.

Land your finger inside the edge strip, then slide along the edge. The strip is 6 mm wide by default; you can change it under General. Landing in the middle and moving to the edge counts as normal pointer movement on purpose.

3-, 4- or 5-finger gestures don't fire, but edges and corners do.

Some touchpads send every finger in one report, and 0.1.0 reads only the first finger. A fix is on its way. Until it ships, please open an issue with your laptop and touchpad model.

Brightness doesn't change.

Brightness works on built-in laptop screens that support WMI brightness. External monitors usually don't.

Seek doesn't work in my video player.

Seek presses the Left and Right arrow keys, so the player must have focus. YouTube, Netflix, VLC and most other players skip with those keys. For a player that uses other keys, choose Custom keys.

Where are my settings? How do I uninstall?

Settings live in %APPDATA%\Touch\config.json. Uninstall from Settings → Apps → Installed apps, then delete that folder too if you want a clean slate.

Build from source

You need Windows 10 or 11 x64, Rust (stable, MSVC) and the Visual Studio Build Tools with the Desktop development with C++ workload, including a Windows SDK.

git clone https://github.com/SumirSeth/touch
cd touch
cargo run -p touch          # debug builds keep a console for logs
cargo test --workspace      # recognisers are tested on synthetic frames; no touchpad needed

Quit an installed Touch from the tray first. Only one copy runs at a time, and a second launch only opens the first one's settings.

To build the installers (NSIS .exe and .msi, written to target/installers/):

powershell -ExecutionPolicy Bypass -File app/scripts/package.ps1

How it works

touch.exe is a headless agent that holds the gesture engine and the tray icon. The settings window is the same executable started with --settings, and it exits when you close it. The engine registers for Precision Touchpad reports with RIDEV_INPUTSINK on its own thread. It turns each scan of the pad into a frame of contacts in millimetres and feeds it to pure recognisers. Their events go to an action worker, which carries them out.

crates/engine/    gestures_engine: touchpad input, gesture recognisers, actions, config
app/              touch.exe: the tray agent, and the GPUI settings window (--settings)
app/vendor/gpui/  GPUI 0.2.2 with small Windows patches (see PATCH.md)
docs/             design notes and screenshots

The full design is in docs/app-spec.md.

Roadmap

Ideas, not promises. Upvote or comment on an issue if you want one:

  • Per-app gesture profiles
  • Code-signed installers and a winget package
  • More gestures, such as 2-finger edge swipes and double taps in corners

Contributing

Bug reports, gesture ideas and pull requests are welcome. Read CONTRIBUTING.md first. Questions go in Discussions. Touchpads differ, so bug reports need your laptop and touchpad model.

License

MIT © Sumir Seth. GPUI is used under the Apache-2.0 license (app/vendor/gpui/LICENSE-APACHE).

About

Custom touchpad gestures for Windows: bind edge slides, corner holds, swipes, taps, pinches and twists to any action

Topics

Resources

Contributing

Stars

33 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Contributors

Languages