1#!/bin/bash
2
3echo -e '\033kTerminal\033\\'
4
5echo "" > ../../tint2.wiki/screenshots.md
6
7for f in ../themes/*tint2rc
8do
9  reset
10  echo $f
11  name=$(basename -s .tint2rc $f)
12  ( ( sleep 1 ; import -window tint2 ../../tint2.wiki/screenshots/${name}.png ; echo "Screenshot taken for ${name}!" ) &)
13  ../build/tint2 -c $f
14  sleep 1
15  echo -e "### [${name}](https://gitlab.com/o9000/tint2/blob/master/themes/$(basename $f))\n" >> ../../tint2.wiki/screenshots.md
16  echo -e "![${name}](https://gitlab.com/o9000/tint2/wikis/screenshots/${name}.png)\n" >> ../../tint2.wiki/screenshots.md
17done
18