Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.73 KB

File metadata and controls

46 lines (29 loc) · 1.73 KB

Ghostty Cursor Trails

Animated trail-effect for the text cursor in Ghostty terminal.

This repository features shaders designed to make it easier to track rapid cursor movement in your terminal and editors like Neovim. Reminiscent of the classic Neovide, these shaders are tuned to feel snappy and to the point. ;)

Tinkle

Tinkle provides a bunch of cool configuration options, whereas Wisp is a specially configured version of Tinkle (used by the author).

tinkle-cursor.mp4

Boo

Boo should be quite nice as well, but has less tweakable features than Twinkle.

boo-cursor.mp4

Note

If you are using the Line cursor (default in Ghostty), the effects from this shader will freeze when you unfocus the terminal as the cursor becomes a hollow block). You can prevent this by adding custom-shader-animation = always in your Ghostty config.

Usage

  1. Clone the repo into your ~/.config/ghostty/shaders directory:
git clone https://github.com/hced/ghostty-cursor-trails ~/.config/ghostty/shaders
  1. Enable it by adding this line in your ~/.config/ghostty/config:
custom-shader = shaders/ghostty-cursor-trails/boo-cursor.glsl
# ...
  1. Activate it by running this command line (Linux; use equivalent command for macOS/Windows):
systemctl reload --user app-com.mitchellh.ghostty.service  # reload Ghostty config

Acknowledgements

Inspired by Neovide cursor animations and partly derived from ghostty-cursor-shaders (Boo-Cursor).

License

MIT