From baa3655eed2157536dbefb14f3b9b535fe7b320b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Mon, 28 Sep 2026 12:37:26 +0200 Subject: Enable kitty 0.49 custom shaders Load cursor-trail-lightning, dim-inactive-windows, tab-change and focus-highlight. Override the bundled tab-change pipeline to use the iris reveal at 400ms instead of the 600ms wipe. The shaders dir is symlinked into ~/.config/kitty like the other files. Co-Authored-By: Claude Opus 5.5 --- README.md | 6 ++++-- kitty.conf | 3 +++ shaders/tab-change.pipeline | 9 +++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 shaders/tab-change.pipeline diff --git a/README.md b/README.md index 6eff2c4..2964fba 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,15 @@ My [kitty](https://sw.kovidgoyal.net/kitty/) terminal configuration. - `session.conf`: startup session (tabs and layouts) - `current-theme.conf`: colours, generated by `udt-palette` from the unified-desktop-theme project. Do not edit by hand. +- `shaders/`: custom shader pipelines (kitty >= 0.49), overriding the + bundled ones of the same name ## Install -Symlink the files into kitty's config dir: +Symlink the files and the shaders dir into kitty's config dir: ```sh -for f in kitty.conf session.conf current-theme.conf; do +for f in kitty.conf session.conf current-theme.conf shaders; do ln -sfn "$PWD/$f" ~/.config/kitty/$f done ``` diff --git a/kitty.conf b/kitty.conf index b39ea4b..b9e1fa4 100644 --- a/kitty.conf +++ b/kitty.conf @@ -34,6 +34,9 @@ cursor_trail 200 cursor_trail_decay 0.1 0.4 cursor_trail_start_threshold 2 +# custom shaders (kitty >= 0.49) +custom_shaders cursor-trail-lightning dim-inactive-windows tab-change focus-highlight + tab_bar_edge bottom tab_bar_style powerline tab_bar_align center diff --git a/shaders/tab-change.pipeline b/shaders/tab-change.pipeline new file mode 100644 index 0000000..001606e --- /dev/null +++ b/shaders/tab-change.pipeline @@ -0,0 +1,9 @@ +# Overrides the bundled tab-change pipeline: iris reveal, 400ms (default 600) +startgroup + animation_start tab-change + animation_stop 400 + animation_curve ease-out + animation_step 16 + var int ANIMATION_TYPE = 3 + shaders tab-change +endgroup -- cgit v1.2.3