avoid using seq in awsetbg, and test for columns count argument of -m option.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
0116d739b5
commit
f38566bd97
|
@ -218,14 +218,21 @@ while [ $# -gt 0 ]; do
|
||||||
montage=`which montage`
|
montage=`which montage`
|
||||||
if test ! -z "$montage"; then
|
if test ! -z "$montage"; then
|
||||||
shift
|
shift
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "-m option need a columns argument"
|
||||||
|
exit # no more args
|
||||||
|
else
|
||||||
cols="$1"; shift
|
cols="$1"; shift
|
||||||
fns=""
|
fns=""
|
||||||
for i in `seq $cols`; do
|
i=$cols
|
||||||
fns="$fns $1";
|
while [ $i -gt 0 ]; do
|
||||||
done;
|
fns="$fns $1"
|
||||||
|
i=$(($i - 1))
|
||||||
|
done
|
||||||
shift
|
shift
|
||||||
$montage $fns -geometry +0+0 -tile ${cols}x $CONFIG_DIR/montage.png
|
$montage $fns -geometry +0+0 -tile ${cols}x $CONFIG_DIR/montage.png
|
||||||
wallpaper=$CONFIG_DIR/montage.png
|
wallpaper=$CONFIG_DIR/montage.png
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
shift
|
shift
|
||||||
echo "montage not found. Falling back to single image"
|
echo "montage not found. Falling back to single image"
|
||||||
|
|
Loading…
Reference in New Issue