2020-10-20 10:40:25 +03:00
|
|
|
#!/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
|
|
|
|
|
2022-04-05 18:18:01 +03:00
|
|
|
printf "\e]0;wezterm\e\\"
|
|
|
|
|
2020-10-20 10:40:25 +03:00
|
|
|
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"
|
2020-10-20 19:55:32 +03:00
|
|
|
sleep 0.2
|
2020-10-20 10:40:25 +03:00
|
|
|
xwd -id $WINID | convert "xwd:-" "png:$prefix/${scheme%.sh}.png"
|
|
|
|
done
|
|
|
|
|