aboutsummaryrefslogtreecommitdiff
path: root/bin/setbg
diff options
context:
space:
mode:
authorCamil Staps2016-04-08 10:42:37 +0200
committerCamil Staps2016-11-30 19:11:42 +0100
commitc966a7bb95242f5a53ff161b53ac8dab56eba012 (patch)
treeb03cad38dc7185b97300b15f8850a7b7f7175449 /bin/setbg
parentTeXample background (diff)
Reorganised bg stuff
Diffstat (limited to 'bin/setbg')
l---------[-rwxr-xr-x]bin/setbg23
1 files changed, 1 insertions, 22 deletions
diff --git a/bin/setbg b/bin/setbg
index 7343f35..d445e5c 100755..120000
--- a/bin/setbg
+++ b/bin/setbg
@@ -1,22 +1 @@
-#!/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"
-
-NR=$RANDOM
-let "NR %= 524"
-
-wget -qO- "http://pgfplots.sourceforge.net/example_$NR.pdf" | convert -size "x$SCR_HEIGHT" -density 300 - /tmp/bg.png
-wget -qO- "http://pgfplots.sourceforge.net/gallery.html" | sed -n "/example_$NR\.pdf/,/<\/div>/p" | tail -n +6 | head -n -1 | pygmentize -l latex -O font_size=$FONT_SIZE -o /tmp/bg-src.png
-
-montage -geometry "+$PADDING+$PADDING" /tmp/bg-src.png /tmp/bg.png "/tmp/bg-$NR.png"
-rm /tmp/bg{,-src}.png
-
-feh -B white --bg-max "/tmp/bg-$NR.png"
-
+setbg-texample \ No newline at end of file