From fe1247f121891da8962cabe2870dcd825d10f18f Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 21 May 2026 11:04:40 +0200 Subject: [PATCH] cursor animations Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- home/programs/ghostty/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/home/programs/ghostty/default.nix b/home/programs/ghostty/default.nix index 1258c91..70a019e 100644 --- a/home/programs/ghostty/default.nix +++ b/home/programs/ghostty/default.nix @@ -1,3 +1,12 @@ +{ pkgs, ... }: +let + cursorShaders = pkgs.fetchFromGitHub { + owner = "sahaj-b"; + repo = "ghostty-cursor-shaders"; + rev = "06d4e90fb5410e9c4d0b3131584060adddf89406"; + hash = "sha256-G/UIr1bKnxn1AcHl/4FL/jou6b7M2VeREslYVELxdmw="; + }; +in { home.sessionVariables = { TERMINAL = "ghostty"; @@ -18,6 +27,8 @@ clipboard-write = "allow"; copy-on-select = "clipboard"; app-notifications = false; + custom-shader = "${cursorShaders}/cursor_warp.glsl"; + custom-shader-animation = "always"; keybind = [ "ctrl+j=goto_split:left" "ctrl+i=goto_split:up"