Fix: don't call imv-msg if we're not using imv

Only call imv-msg to update the image if the image viewer is imv, not
sxiv.
This commit is contained in:
Rohan Kumar 2020-02-28 19:06:46 -08:00
parent 9258513fa9
commit f9e929387e
No known key found for this signature in database
GPG Key ID: 36B154A782AEA0AC
1 changed files with 4 additions and 2 deletions

6
kunst
View File

@ -250,8 +250,10 @@ main() {
if [ ! $SILENT ];then if [ ! $SILENT ];then
echo "kunst: received event from mpd" echo "kunst: received event from mpd"
fi fi
imv-msg "$(cat /tmp/kunst.pid)" close all if [ "$VIEWER" = 'imv' ]; then
imv-msg "$(cat /tmp/kunst.pid)" open "$COVER" imv-msg "$(cat /tmp/kunst.pid)" close all
imv-msg "$(cat /tmp/kunst.pid)" open "$COVER"
fi
done done
} }