foxygit / dotfiles Log in
commit 43f6dd8777a69e2d8674e3847116a02473f8a032
Author:     MrJensK <jens.se@icloud.com>
AuthorDate: Thu Aug 13 15:04:41 2026 +0200
Commit:     MrJensK <jens.se@icloud.com>
CommitDate: Thu Aug 13 15:04:41 2026 +0200

    install: copy icat-mini.sh to ~/.local/bin/icat, confirm graphics patch works
---
 README.md  | 5 ++++-
 install.sh | 7 +++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 4cf9f79..daa9ed2 100644
--- a/README.md
+++ b/README.md
@@ -155,7 +155,7 @@ building, in order — all sourced from [st.suckless.org/patches](https://st.suc
 | [`08-bold-is-not-bright.patch`](st-patches/08-bold-is-not-bright.patch) | Bold text no longer automatically renders in the bright color variant |
 | [`09-anysize.patch`](st-patches/09-anysize.patch) | Window can be resized to any pixel size instead of snapping to whole cells |
 | [`10-histsize-5000.patch`](st-patches/10-histsize-5000.patch) | Bumps the scrollback buffer from 2000 to 5000 lines (local tweak, not from upstream — matches the previous kitty `scrollback_lines`) |
-| [`11-kitty-graphics-protocol.patch`](st-patches/11-kitty-graphics-protocol.patch) | Inline image display via a subset of the [kitty graphics protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/) (works with `icat`, image.nvim, yazi, etc.). Needs `imlib2`/`zlib` (installed by `install.sh`). Hand-merged against the other patches — several hunks conflicted with boxdraw/vertcenter/anysize/blinking_cursor and were reconciled manually; build-verified but not visually tested (no X display in the dev sandbox) |
+| [`11-kitty-graphics-protocol.patch`](st-patches/11-kitty-graphics-protocol.patch) | Inline image display via a subset of the [kitty graphics protocol](https://sw.kovidgoyal.net/kitty/graphics-protocol/) (works with `icat`, image.nvim, yazi, etc.). Needs `imlib2`/`zlib` (installed by `install.sh`), plus `imagemagick` and `bc` at runtime for the bundled `icat` script. Hand-merged against the other patches — several hunks conflicted with boxdraw/vertcenter/anysize/blinking_cursor and were reconciled manually; confirmed working |

 [`config/st/config.def.h`](config/st/config.def.h) is copied over the patched
 source before building, so local tweaks survive a rebuild — edit it and
@@ -165,6 +165,9 @@ block cursor, JetBrainsMono Nerd Font, and 3 lines scrolled per mouse-wheel
 notch. Live font zoom is built into vanilla st — `Ctrl+Shift+PageUp`/`PageDown`
 to zoom, `Ctrl+Shift+Home` to reset — no patch needed.

+`install.sh` also installs `icat` (the patch's bundled `icat-mini.sh`) to
+`~/.local/bin/icat` — run `icat path/to/image.png` in st to display it inline.
+
 Image protocol shortcuts (from patch 11): `Ctrl+Shift+click` on an image
 previews it in `feh`, `Ctrl+Shift+middle-click` shows placement info in
 `less`, `Ctrl+Shift+F1` toggles graphics debug output, `Ctrl+Shift+F6` dumps
diff --git a/install.sh b/install.sh
index 9e2a9a0..51fcbfc 100755
--- a/install.sh
+++ b/install.sh
@@ -116,6 +116,13 @@ cp "$SCRIPT_DIR/config/st/config.def.h" config.def.h
 echo "==> Bygger och installerar st..."
 make
 sudo make install
+
+echo "==> Installerar icat (visa bilder i st via kitty graphics-protokollet)..."
+mkdir -p "$HOME/.local/bin"
+cp icat-mini.sh "$HOME/.local/bin/icat"
+chmod +x "$HOME/.local/bin/icat"
+echo "    icat-mini.sh -> ~/.local/bin/icat"
+
 cd "$BUILD_DIR"

 echo "==> Kopierar konfigfiler..."