снова я с этим что-то накосячил.
есь .conkyrc
TEXT
${if_match "${exec deadbeef --nowplaying %t}" != "nothing"}${if_existing /tmp/deadbeef/}\
\
${if_match "${exec deadbeef --nowplaying "%a - %t"}" == "${exec cat /tmp/deadbeef/db.log}"}\
${else}${execpi 1 /home/ratte/.config/conky/ddbC/db-c.sh}${endif}\
\
${color}${font :size=10}${execi 2 cat /tmp/deadbeef/title}
${font :size=8}${execi 2 cat /tmp/deadbeef/artist}
\
${if_existing /tmp/deadbeef/cover.jpg}\
${image /tmp/deadbeef/cover.jpg -p 0,34 -s 116x116 -n -f 2}
${voffset 104}${font :size=9}${execi 2 cat /tmp/deadbeef/year}${execi 2 cat /tmp/deadbeef/album}\
${endif}\
\
${else}${execpi 1 /home/ratte/.config/conky/ddbC/db-c.sh}${endif}${endif}
есть скрипт .config/conky/ddbC/db-c.sh
#!/bin/sh
# Script for Conky : DeaDBeeF (0.4.1) with OR w/o Covers, v0.7.6
# T A - C - Y A
DBDIR=/tmp/deadbeef #.$USER
DBLOG=$DBDIR/db.log
COVER=$DBDIR/cover.jpg
CCACHE=/home/ratte/.cache/deadbeef/covers
if < ! -d $DBDIR >; then
mkdir -p $DBDIR
chmod 775 $DBDIR
touch $DBDIR/{artist,title,year,album,aa} $DBLOG-at
fi
deadbeef --nowplaying "%a - %t" > $DBLOG
AT_f (){
ARTIST=$(deadbeef --nowplaying %a)
TITLE=$(deadbeef --nowplaying %t)
echo $ARTIST > $DBDIR/artist
echo $TITLE > $DBDIR/title
}
YA_f (){
YEAR=$(deadbeef --nowplaying %y)
#ALBUM=$(deadbeef --nowplaying %b)
if < "" = "$YEAR" >; then
echo "$YEAR" > $DBDIR/year
else
echo "$YEAR " > $DBDIR/year
fi
echo $ALBUM > $DBDIR/album
}
AC (){
if < -f "$CCACHE/$ARTIST/$ALBUM.jpg" >; then
cp -a "$CCACHE/$ARTIST/$ALBUM.jpg" $DBDIR && \
mv "$DBDIR/$ALBUM".jpg $COVER
YA_f
elif < -f "$CCACHE/$ARTIST/$TITLE.jpg" >; then
cp -a "$CCACHE/$ARTIST/$TITLE.jpg" $DBDIR && \
mv "$DBDIR/$TITLE".jpg $COVER
YA_f
else
# echo "" > $DBDIR/year > $DBDIR/album
rm -f $COVER || exit 1
fi
}
#if < "`cat $DBLOG`" = "nothing" >; then
# if < "" = "`cat $DBDIR/title`" >; then
## echo "DeaDBeeF:Stop" #> $DBLOG
# exit 0
# else
## echo "DeaDBeeF:Stop1" #> $DBLOG
# echo "" > $DBDIR/artist > $DBDIR/title > $DBDIR/year > $DBDIR/album
# cat $DBLOG > $DBLOG-at
# if < -f $COVER >; then
# rm -f $COVER
# fi
# fi
#el
if < "`cat $DBLOG`" = "`cat $DBLOG-at`" >; then
# echo "DONE" #> /tmp/deadbeef/db.log
if < ! -f $COVER >; then
AT_f && ALBUM=$(deadbeef --nowplaying %b) && AC
fi
else
AT_f
#deadbeef --nowplaying "%a - %t" > $DBLOG-at
cat $DBLOG > $DBLOG-at
ALBUM=$(deadbeef --nowplaying %b)
echo $ALBUM > $DBLOG-album1
A1="`cat $DBLOG-album1`"
if < ! -f $DBLOG-album2 >; then
cat $DBLOG > $DBLOG-album2
fi
A2="`cat $DBLOG-album2`"
if < "$A1" = "$A2" >; then
# echo "DONE" #> $DBLOG
exit 0
else
echo $ALBUM > $DBLOG-album2
AC
fi
fi
но обложки не показывает- пишет
.config/conky/ddbC/db-c.sh: 11: Syntax error: ";" unexpected
это строка
if < ! -d $DBDIR >; then
где тут закралась ошибка? deadbeef-0.5.1