From 89dfed99cbf3eda5d35afe8fb3d01e696d782c1e Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Wed, 27 May 2026 23:41:43 +0300 Subject: [PATCH] ghostty: add cursor shader --- modules/user/ghostty.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/user/ghostty.nix b/modules/user/ghostty.nix index fa0875e..7f5c783 100644 --- a/modules/user/ghostty.nix +++ b/modules/user/ghostty.nix @@ -1,11 +1,23 @@ -{ +{ config, pkgs, ... }: let + ghosttyWithGL = (config.lib.nixGL.wrap pkgs.ghostty); + shaders = pkgs.fetchFromGitHub { + owner = "sahaj-b"; + repo = "ghostty-cursor-shaders"; + rev = "06d4e90fb5410e9c4d0b3131584060adddf89406"; + hash = "sha256-G/UIr1bKnxn1AcHl/4FL/jou6b7M2VeREslYVELxdmw="; + }; +in { programs.ghostty = { enable = true; enableZshIntegration = true; + package = ghosttyWithGL; + settings = { confirm-close-surface = false; copy-on-select = false; title-report = true; + + custom-shader = "${shaders}/cursor_warp.glsl"; }; }; } \ No newline at end of file