mirror of
https://github.com/wez/wezterm.git
synced 2024-12-25 22:33:52 +03:00
27217992f2
I really want to replace these with simple html to avoid bloating the repo too much over time.
23 lines
491 B
Bash
Executable File
23 lines
491 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
|
|
|
|
printf "\e]0;wezterm\e\\"
|
|
|
|
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
|
|
|