1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-29 00:21:57 +03:00
wezterm/ci/make-color-screen-shots.sh
Wez Furlong 30fc374ad8 docs: add colorschemes + screenshots
This includes a script to generate a screenshot from a wezterm
running the default config under X11.

It expects the iTerm2-Color-Schemes to be checked out alongside
the wezterm repo as it uses the dynamic color schemes scripts
to activate the schemes one by one and capture the display.
2020-10-20 00:40:25 -07:00

21 lines
462 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 1
xwd -id $WINID | convert "xwd:-" "png:$prefix/${scheme%.sh}.png"
done