From cfc62b7c240bbc3a9e09a62ddf89b597b335b17c Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 27 Feb 2017 11:59:52 +0100 Subject: Update setbg-texample to use curl --- i3/bin/setbg-texample | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/i3/bin/setbg-texample b/i3/bin/setbg-texample index d5befd6..b8fc463 100755 --- a/i3/bin/setbg-texample +++ b/i3/bin/setbg-texample @@ -5,6 +5,8 @@ SCR_HEIGHT=1080 PADDING=50 FONT_SIZE=20 +CURL="curl -s" + function fail() { if [ -f ~/.bg.png ]; then feh --bg-max -B white ~/.bg.png @@ -24,7 +26,7 @@ PAGE=$RANDOM; let "PAGE %= 22"; let "PAGE += 1" # Fetch list of texamples cd /tmp -wget -qO texample.html "http://texample.net/tikz/examples/all/?page=$PAGE" +$CURL -o texample.html "http://texample.net/tikz/examples/all/?page=$PAGE" if [ $? -ne 0 ]; then fail; fi EXAMPLES="$(grep '^