A beautiful, customizable cursor trail effect that works across your entire desktop. Features dual rendering engines optimized for different platforms and extensive customization options.
- Cross-platform compatibility (Windows, Linux, macOS)
- Dual rendering engines:
- Windows: Native Win32 API with guaranteed top-level transparent overlay
- Linux/macOS: OpenGL-based rendering
- True transparency with no black squares or artifacts
- Smooth cursor tracking with interpolated trail effects
- Extensive customization - size, texture, fade time, particle count, and more
- Low CPU usage with optimized rendering
- Click-through support - doesn't interfere with other applications
- Configuration system - file-based and command-line options
This implementation specifically addresses Windows 11 transparency and overlay issues:
- ✅ Guaranteed top-level display - Always visible above all applications
- ✅ True transparency - No black background artifacts
- ✅ Proper overlay behavior - Works as a background overlay, not a full-screen app
- ✅ Native Windows integration - Uses Win32 layered windows for optimal performance
Customize your cursor trail to fit your style:
- Texture: Use any PNG image as the trail particle
- Size: Adjust particle size (1-100 pixels)
- Spawn Frequency: Control trail density (lower = denser trail)
- Particle Count: Set maximum number of trail particles (1-10000)
- Fade Time: How long particles last (0.1-10 seconds)
- Fade Rate: How fast particles disappear (0.01-1.0 per frame)
Create a config.ini file in the same directory as the executable:
# Cursor Trail Configuration
# Trail appearance
spriteSize=15.0 # Size of trail particles (pixels)
texture=cursortrail.png # Path to trail texture image
# Trail behavior
fadeTime=1.0 # How long particles last (seconds)
fadeRate=0.05 # How fast particles fade per frame (0.0-1.0)
spawnFrequency=6.0 # Spawn interval - lower = denser trail (pixels)
maxParticles=2048 # Maximum number of particlesThe repository includes several example configurations to get you started:
config.ini- Default balanced settingsconfig-dense.ini- Dense, long-lasting trail with 6000 particlesconfig-minimal.ini- Subtle, quick-fading minimalist trailconfig-large.ini- Large 40px particles with wider spacingconfig-rainbow.ini- Guide for using custom colorful textures
Load any example: CursorTrail.exe --config config-dense.ini
Override configuration on-the-fly:
# Basic usage
CursorTrail.exe
# Customize via command line
CursorTrail.exe --size 30 --particles 4096 --density 3.0
# Load custom config
CursorTrail.exe --config my_config.ini
# Generate config file
CursorTrail.exe --save-config my_config.ini
# Show all options
CursorTrail.exe --helpAvailable Parameters:
--size <value>- Set sprite size (default: 15)--texture <path>- Set texture path (default: cursortrail.png)--fade-time <value>- Set fade time (default: 1.0)--fade-rate <value>- Set fade rate (default: 0.05)--density <value>- Set spawn density (default: 6.0)--particles <value>- Set max particles (default: 2048)--config <file>- Load config from file--save-config <file>- Save current config to file
You can download a pre-compiled Windows executable from the GitHub Actions artifacts. Look for the latest successful build and download the cursor-trail-windows-x64 artifact.
- Install CMake and Visual Studio 2022
- Clone the repository
- Run the build commands:
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022" -A x64
cmake --build . --config Release- Install CMake and GLFW development libraries
- Clone the repository
- Run the build commands:
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make- Windows: Double-click
CursorTrail.exe- automatically uses native overlay - Linux/macOS: Run
./CursorTrailfrom terminal - uses OpenGL rendering
- Run with default settings:
CursorTrail.exe - Try different sizes:
CursorTrail.exe --size 25 - Make it denser:
CursorTrail.exe --density 3.0 - More particles:
CursorTrail.exe --particles 4096
- Create a
config.inifile in the executable directory - Edit the values to your preference
- Run the application - it will automatically load your config
Move your cursor to see the trail effect. To exit, close the application window or press Ctrl+C.
This project features a complete rewrite for Windows 11 compatibility:
- Native Win32 overlay instead of problematic OpenGL transparency
- Guaranteed top-level positioning - no more hidden trails
- True transparency - eliminates black square artifacts
- Global cursor tracking using Windows API for system-wide trail
See WINDOWS11_FIX.md for detailed technical information.
| Platform | Technology | Transparency | Overlay Support |
|---|---|---|---|
| Windows | Win32 + GDI+ | Perfect | Guaranteed |
| Linux | OpenGL + GLFW | Good | Limited |
| macOS | OpenGL + GLFW | Good | Limited |
The Windows implementation uses layered windows with true alpha blending for the most reliable cursor trail experience on modern Windows systems.
