1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 18:57:59 +03:00
wezterm/ci/make-color-screen-shots.sh
Wez Furlong 9e53462348 docs: adjust screenshots to include cursor color
Make sure the window is active when capturing all the screenshots.
2020-10-20 09:55:32 -07:00

21 lines
464 B
Bash
Executable File

#!/bin/bash
# Use eg: `xwininfo -int` to get the id of a wezterm
# and pass it to this script
WINID=$1
cd ../iTerm2-Color-Schemes/dynamic-colors
shots=../../wezterm/docs/colorschemes
for scheme in *.sh ; do
clear
echo $scheme
prefix=$shots/$(echo $scheme | cut -c1 | tr '[:upper:]' '[:lower:]')
mkdir -p $prefix
bash "./$scheme"
bash "../tools/screenshotTable.sh"
sleep 0.2
xwd -id $WINID | convert "xwd:-" "png:$prefix/${scheme%.sh}.png"
done