Simple Cursor Trail
A fully customizable cursor trail for the Windows desktop.
Author: Ulrizza
A fully customizable cursor trail for the Windows desktop.
Intro
I always liked the original Windows cursor trail, but it was too limited, so I made this one. I personally enjoy it very much so I want to share it 😊
If you see any bug or want more settings/features, add an issue on the Github repo!
I cannot promise you anything because I don't have much free time but I enjoyed making this plugin so I'll do my best 🤘
Disclaimer: I used AI to make this project, I just wanted a custom cursor trail and now I have it so I'm happy. If you are bothered by that, just don't install it.
Installation
- Install Windhawk.
- Install Simple Cursor Trail from the Windhawk mods catalog, or import the
source (
CursorTrail.cpp) from this repository via the Windhawk mod editor.
Styles
This mod is intentionally minimal: it just draws a trail — no particles,
physics, or extra effects.
- Simple line: a polyline that follows the cursor; its width, color, and
opacity can change from head to tail.
- Cursor ghost: faded copies of the cursor image, each latched at the spot
where it spawned (they stay put and only fade out); directly inspired by the
classic Windows cursor-trail feature. Each copy keeps the exact cursor image
from when it was sampled, so an image change (e.g. arrow to I-beam) appears
gradually along the trail.
By contrast, Mouse Trail follows the
cursor with special effects from a full D3D11 particle/physics engine, while
Cursor Motion Blur only smears
the cursor at high speed.
Features
- Time based vs Size based trails.
- Timing: tail duration and inactivity timeout.
- Size: stroke width (Simple line) and copy size (Cursor ghost).
- Color: head-to-tail gradients, blend width, and ghost
recoloring.
- Hotkey: toggle the trail on/off with a customizable global hotkey.
- Always on top: draw the trail above the taskbar and Start menu (on by
default).
Settings
Style
Type of trail.
style: simple_line: a line whose width, color, and opacity can change along its length

style: cursor_ghost: faded copies of the cursor image, each latched where it spawned

Simple line options
Applies when Style is Simple line.
Trail mode
How the trail disappears.
simpleLineOptions.trail_mode: time_based: each part of the trail fades after the Tail duration

simpleLineOptions.trail_mode: size_based: keeps a fixed trail length even when the cursor stops

Time based
Applies when Trail mode is Time based.
Tail duration
How long each trail segment stays visible, in milliseconds. Minimum 20, maximum 10000.
100

300

1000

Size based
Applies when Trail mode is Size based.
Tail length
Maximum trail length in pixels. Minimum 20, maximum 10000.
100

500

1000

Timeout
Milliseconds of inactivity before the trail starts fading (using the Time based tail duration). 0 = trail always visible.
0

500

1000

Width
Values (head to tail)
Comma-separated stroke widths in pixels from head to tail (e.g. "2,1" for a tapered trail, or "10,1,10,1" for a pulsing trail). Each value gets an equal share; repeat to widen (e.g. "2,2,2,2,1" = 80% at 2, 20% at 1). Minimum 1.
5

5,0

1,1,1,10

10,1,10,1,10,1

Color
Values (head to tail)
Single hex (RRGGBB without #, e.g. 000000 for black) or comma-separated list for a gradient from head to tail (e.g. 000000,FF0000,FFFFFF for black->red->white). Each color gets an equal share; repeat to widen. Invalid entries fall back to black.
FF0000

FF0000,FF7F00,FFFF00,7FFF00,00FF00,00FFFF,0000FF,4B0082,8B00FF

Blend width
Percentage of each transition spent blending (0 = pure bands, 100 = full gradient). 50 with red,blue gives 25% hard red, 50% blend, 25% hard blue. Only applies with two or more colors.
0


50


100


Opacity
Values (head to tail)
Comma-separated opacity percentages (0-100) from head to tail (e.g. "100,0" for full fade, or "100,0,100" for a pulse). Each value gets an equal share; repeat to widen. Leave one value for uniform opacity.
100

100,0

100,0,100

Antialiasing
Smooth the trail edges.
on

off

Cursor ghost options
Applies when Style is Cursor ghost.
Trail mode
How the copies disappear.
ghostOptions.trail_mode: time_based: each copy fades after the Tail duration

ghostOptions.trail_mode: size_based: keeps a fixed number of copies even when the cursor stops

Time based
Applies when Trail mode is Time based.
Tail duration
How long each cursor copy stays visible, in milliseconds. Minimum 20, maximum 10000.
100

300

1000

Size based
Applies when Trail mode is Size based.
Copies
Number of cursor copies in the trail (Size based mode). Minimum 2, maximum 512.
5

20

50

Timeout
Milliseconds of inactivity before the trail starts fading (using the Time based tail duration). 0 = trail always visible.
500

Copy spacing
Extra distance in pixels added between cursor copies (0 = automatic, based on the copy count). Maximum 200.
10

25

Size
Values (head to tail)
Comma-separated size multipliers from head to tail (1 = same size, 0.8 = 80%, 2 = twice). Each value gets an equal share; repeat to widen (e.g. "1,0.5,1,0.5"). Avoid values above 1 (upscaled copies look pixelated); use the Windows cursor size setting to enlarge the cursor.
1

1,0

1,0.2,1,0.2

Opacity
Values (head to tail)
Comma-separated opacity percentages (0-100) from head to tail (e.g. "100,0" for full fade). Each value gets an equal share; repeat to widen.
100,0

100,20,100,20

Color
Values (head to tail)
Leave empty to keep the cursor's own colors. Otherwise a single hex (RRGGBB without #) or comma-separated list for a gradient from head to tail; pixels matching the Replace color are recolored to this value (FFFFFF makes white copies). Each color gets an equal share; repeat to widen. Invalid entries fall back to black. A single color disables Blend width.
(empty)



ff0000

ff00ff,00ffff,ffff00

Blend width
Percentage of each transition spent blending (0 = pure bands, 100 = full gradient). Only applies with two or more colors. (same principle as for the trail)
Replace
Only used when Color > Values is set.
Mode
Which cursor pixels to recolor.
ghostOptions.color.replace.mode: auto: the cursor's enclosed center color (ignoring the outline/contour; falls back to the largest area when nothing is enclosed)

ghostOptions.color.replace.mode: whole: every non-transparent pixel

ghostOptions.color.replace.mode: custom: the Custom color defined in the next setting (see below for examples)
Custom color
Original cursor color to replace with the Values color (used when Mode is Custom). Set 000000 to recolor a black cursor body, or FFFFFF to recolor a white outline.
ffffff

f7bb0e

000000

Enable/disable hotkey
Key
Press to toggle the trail on or off. Format: Modifier+Key (e.g. Ctrl+Alt+T). Modifiers: Ctrl, Alt, Shift, Win. At least one modifier is required. Leave empty to disable the hotkey.
Animation
Show a circle animation when the hotkey toggles the trail.

The animation is a circle outline (2px, in the cursor's color, centered on the trail start and following the cursor): it grows and fades out when disabling, and shrinks and fades in when enabling.
Trail offset
X
Fine-tune the trail origin horizontally in pixels (auto-centered by default, 0 = no adjustment)
Y
Fine-tune the trail origin vertically in pixels (auto-centered by default, 0 = no adjustment)
0 0

15 15

Always on top
Draw the trail above the taskbar, Start menu and other shell surfaces. Enabled by default. Explorer hosts a small transparent window in a higher Z-order band, and the trail is drawn into it. Turn off if it causes issues: turning it off unloads the Explorer side.
Without Always on top, the trail is drawn behind the taskbar and Start menu:

With Always on top:

Windows gives every window a fixed Z-order band, and a window in a lower band can never be drawn above a window in a higher one. The shell creates a hidden window with CreateWindowInBand, trying the UIAccess band first and falling back to the system-tools band; the trail process draws into it and falls back to its own overlay window if that is not possible.
Licence
This project is licensed under the MIT License. You're free to use, modify, and
redistribute the code as long as you keep the original copyright notice and
credit the author (Ulrizza). See LICENSE for the full text.
Part of this mod is adapted from
Cursor Motion Blur by
TheatriChris, Copyright (c) TheatriChris
(MIT): the overlay-window scaffolding, the fullscreen-game detection, and
parts of the render loop.
Part of this mod is adapted from
Pointer Afterimage Motion Blur by
sidlikesgrapess (Unlicense): the explorer-side band
window, its process-exit watch, and IsShellExplorer, used by Always on top.