Margin
Your touchpad has edges. Put them to work.
Slide along an edge for volume, brightness, seeking or Alt+Tab. Press, tap or hold a corner to run anything. You choose what each one does, even per app, and the middle stays a normal touchpad. Free and open source, for Windows and Linux.
You can download and install it by running this in PowerShell:
irm https://raw.githubusercontent.com/arxhr007/margin/main/scripts/install.ps1 | iexWindows 10/11 with a precision touchpad Β· margin.exe (0.6 MB) Β· Linux

What it does
The strip around your touchpad, turned into controls you pick.
Slide an edge
Volume, screen brightness, seeking a video, scrolling, zoom, switching windows or virtual desktops, skipping tracks, or your own shortcut. Split an edge in two for two of them.
Press or tap a corner
One, two or three presses or taps, or a hold, each run a different action: mute, screenshot, lock, open an app or website, press a shortcut, run a command.
You choose, per app
Click an edge or corner on the touchpad map and pick what it does, for all apps or just one (Windows): seek in your video player, switch tabs in your browser.
Stays out of the way
Taps, palms, scrolling and multi-finger gestures pass through. The middle of the touchpad stays a normal touchpad, and Margin can step aside in full-screen games (Windows).
Tiny and native
One program of about 0.6 MB, nothing else to install. Windows 10/11 and Linux, Wayland or X11.
Private
No network access, no telemetry, no account. It reads the touchpad and saves your settings, nothing more.
Quick start
Install, then left-click the tray icon (Windows) or run margin settings (Linux).
# Windows 10 / 11, in PowerShell
irm https://raw.githubusercontent.com/arxhr007/margin/main/scripts/install.ps1 | iex# Linux (x86_64, systemd)
curl -fsSL https://raw.githubusercontent.com/arxhr007/margin/main/scripts/install.sh | shDocumentation
From the first slide to editing settings.json by hand.
Download
Windows and Linux downloads, checksums and code signing.
Install
One-line installers, options, building from source, uninstalling.
Using Margin
Edges, corners, press and hold, touch or click, the defaults.
Custom keys
Send your own shortcuts from an edge, with presets.
Per-app settings
Different actions while a particular app is in front (Windows).
Settings file
settings.json by hand: every field, live reload, mistakes.
Linux
The service, permissions and what differs from Windows.
Troubleshooting
When a slide or press does nothing, and other fixes.
How it works
Raw Input, evdev, the gesture engine, building and testing.
Code signing policy
How Windows releases are built and signed.
Privacy policy
Margin collects nothing; what it stores on your computer.