From c966a7bb95242f5a53ff161b53ac8dab56eba012 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Fri, 8 Apr 2016 10:42:37 +0200 Subject: Reorganised bg stuff --- bin/setbg-texample | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 bin/setbg-texample (limited to 'bin/setbg-texample') diff --git a/bin/setbg-texample b/bin/setbg-texample new file mode 100755 index 0000000..3721944 --- /dev/null +++ b/bin/setbg-texample @@ -0,0 +1,29 @@ +#!/bin/bash + +SCR_WIDTH=1980 +SCR_HEIGHT=1080 +PADDING=50 +FONT_SIZE=20 + +let "SCR_WIDTH -= 2 * $PADDING" +let "SCR_WIDTH /= 2" +let "SCR_HEIGHT -= 2 * $PADDING" + +PAGE=$RANDOM; let "PAGE %= 22"; let "PAGE += 1" + +cd /tmp +wget -qO texample.html "http://texample.net/tikz/examples/all/?page=$PAGE" +EXAMPLES="$(grep '^