[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= res=
if [ -e /usr/bin/xrandr ]; if [ -e /usr/bin/xrandr ];
then then
res=$(xrandr | grep '\*' | awk '{print $1}') res=$(xrandr | grep '\*' | awk '{print $1}' | head -1)
else else
res=$(xdpyinfo | grep dimensions | awk '{print $2}') res=$(xdpyinfo | grep dimensions | awk '{print $2}')
fi fi
@ -118,7 +118,7 @@ then
mkdir $dirprefix; mkdir $dirprefix;
fi 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 echo Photo downloaded OK
#ls $fileprefix* | sort -r | tail -n +2 | xargs rm -f #ls $fileprefix* | sort -r | tail -n +2 | xargs rm -f
@ -130,7 +130,6 @@ fi
fixdbus fixdbus
if [[ -e /usr/bin/feh ]] if [[ -e /usr/bin/feh ]]
then then
DISPLAY=:0 feh --bg-center $todaywp DISPLAY=:0 feh --bg-center $todaywp