make chroma refinements for v1.3.0

This commit is contained in:
2025-11-12 23:54:52 -08:00
parent 8533d4cb78
commit ee48eaa4ae
10 changed files with 1660 additions and 12 deletions

17
scripts/render.sh Normal file → Executable file
View File

@@ -4,12 +4,14 @@
set -euo pipefail
w=${1:?width}; h=${2:?height}
out="kitty-$(date +%Y%m%d-%H%M%S).png"
shift 2 || true
out=${3:?file};
#out="kitty-$(date +%Y%m%d-%H%M%S).png"
shift 3 || true
# spawn a kitty window w/ a mark
title="kitty-$(date +%s%N)"
kitty --title "$title" "$@" &
sock="$XDG_RUNTIME_DIR/kitty-$title.sock"
kitty -o allow_remote_control=yes --listen-on "unix:$sock" --title "$title" "$@" &
# create a targeted rule for the marked window and resize
sleep 2
@@ -24,12 +26,15 @@ read gx gy _ < <(awk -F'[ ,x]' '{print $1,$2}' <<<"$geom")
read wx wy ww wh < <(awk -F'[ ,x]' '{print $1,$2,$3,$4}' <<<"$wgeom")
inner_geom="$((gx+wx)),$((gy+wy)) ${ww}x${wh}"
echo title=$title
echo geom=$geom
echo out=$out
echo "+ title=$title"
echo "+ geom=$geom"
echo "+ out=$out"
# take a screenshot
mkdir -p "$(dirname "$out")"
grim -g "$inner_geom" "$out"
echo "saved: $out"
# close the kitty window
kitty @ --to "unix:$sock" close-window

27
scripts/screens.sh Normal file → Executable file
View File

@@ -1,18 +1,33 @@
#!/usr/bin/env bash
# usage: screens.sh prefix
set -euo pipefail
prefix=${1:-}
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
render_script="$script_dir/render.sh"
biomes=(alpine badlands chaparral savanna grassland tundra)
modes=(light dark)
#biomes=(alpine)
#modes=(light dark)
biomes=(alpine)
modes=(dark)
for biome in "${biomes[@]}"; do
for mode in "${modes[@]}"; do
symconf config -m "$mode" -s "default-$biome-monobiome"
sleep 5
"$render_script" 800 600 nvim \
echo "Applying $biome-$mode theme"
symconf config \
-a kitty,nvim \
-m "$mode" \
-s "default-$biome-monobiome" \
-T font=Berkeley
sleep 2
echo "Taking screenshot..."
"$render_script" 800 600 "images/render/$prefix-$biome-$mode.png" nvim \
+':highlight Cursor blend=100' \
+':set guicursor=n:block-Cursor' \
+':silent! setlocal nonumber nocursorline signcolumn=no foldcolumn=no' \
examples/runner.py
+':lua vim.diagnostic.config({virtual_text=false,signs=false,underline=false})' \
examples/class.py
done
done