diff options
Diffstat (limited to 'i3/bin/setbg-pgfplots')
-rwxr-xr-x | i3/bin/setbg-pgfplots | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/i3/bin/setbg-pgfplots b/i3/bin/setbg-pgfplots deleted file mode 100755 index bd66b4e..0000000 --- a/i3/bin/setbg-pgfplots +++ /dev/null @@ -1,24 +0,0 @@ -#!/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" - -# Test internet -timeout 4 wget -q --spider http://cloogle.org || setbg-backup || exit 1 - -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" |