[script]fix getMadame

This commit is contained in:
Mathieu Maret 2016-10-21 17:32:05 +02:00
parent 2c06b8566c
commit 173803c6b7

View File

@ -67,7 +67,7 @@ function resize {
res=
if [ -e /usr/bin/xrandr ];
then
res=$(xrandr | grep '\*' | awk '{print $1}')
res=$(xrandr | grep '\*' | awk '{print $1}' | head -1)
else
res=$(xdpyinfo | grep dimensions | awk '{print $2}')
fi
@ -118,7 +118,7 @@ then
mkdir $dirprefix;
fi
wget -O - "http://www.bonjourmadame.fr${page}" | grep -Eo "(http://www.bonjourmadame.fr/photo/[^\"]+)|(http://[0-9]+.media.tumblr.com/tumblr[^\"]+)" | head -n 1 | wget -q -i - -O $todaywp
wget -O - "http://www.bonjourmadame.fr${page}" | grep -Eo "(http://[0-9]+.media.tumblr.com/[0-9a-z]+/tumblr[^\"]+)" | head -n 1 | wget -q -i - -O $todaywp
echo Photo downloaded OK
#ls $fileprefix* | sort -r | tail -n +2 | xargs rm -f
@ -130,7 +130,6 @@ fi
fixdbus
if [[ -e /usr/bin/feh ]]
then
DISPLAY=:0 feh --bg-center $todaywp