An open API service indexing awesome lists of open source software.

https://github.com/alxndr13/ghostty-shaders


https://github.com/alxndr13/ghostty-shaders

ghostty ghostty-terminal shaders

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

          

# Ghostty Shaders

This is a collection of Ghostty shaders which I adapted for my personal use.

## Adaptive Cursor Trail Blaze

**File**: [./adaptive-cursor-trail-blaze.glsl](./adaptive-cursor-trail-blaze.glsl)

A Ghostty shader that creates a cursor trail effect with adaptive intensity based on movement distance.

> [!NOTE]
> based on: https://github.com/hackr-sh/ghostty-shaders/blob/3d7e56a3c46b2b6ba552ee338e35dc52b33042fa/cursor_blaze.glsl

### Key Differences from Original

- **Distance-based intensity scaling**: Trail effect adapts to cursor movement distance - subtle trails for small movements (1-2 characters), full effect for larger movements
- **Adaptive thresholds**: Uses `MIN_DISTANCE` (0.02) and `MAX_DISTANCE` (0.08) to scale trail intensity from 20% to 100%
- **Color scheme**: Uses Catppuccin Frappe Blue instead of Peach for the trail color

This prevents overwhelming visual effects during normal typing while maintaining the full blaze effect for longer cursor movements.

## License

MIT