summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky_cover.sh
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-01-17 12:42:47 +0100
committerJoe <rrbo@proton.me>2023-01-17 12:42:47 +0100
commit409b5869cc29c55a3cd0823e04320355dd680689 (patch)
treeb1f63ba520931260338af5d09093d3b9595c188d /.local/bin/conky_cover.sh
parentup (diff)
downloaddotfiles-bsd-409b5869cc29c55a3cd0823e04320355dd680689.tar.gz
dotfiles-bsd-409b5869cc29c55a3cd0823e04320355dd680689.tar.bz2
dotfiles-bsd-409b5869cc29c55a3cd0823e04320355dd680689.tar.xz
dotfiles-bsd-409b5869cc29c55a3cd0823e04320355dd680689.tar.zst
dotfiles-bsd-409b5869cc29c55a3cd0823e04320355dd680689.zip
up
Diffstat (limited to '')
-rwxr-xr-x.local/bin/conky_cover.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/conky_cover.sh b/.local/bin/conky_cover.sh
index a0f3517..5514913 100755
--- a/.local/bin/conky_cover.sh
+++ b/.local/bin/conky_cover.sh
@@ -24,11 +24,12 @@ LOG=/tmp/conky-mpd.log
ARTIST="$(mpc --format %artist% | head -1)"
ALBUM="$(mpc --format %album% | head -1)"
+FILEDIR="$XDG_MUSIC_DIR/$(mpc --format %file% | head -n1)"
TMP=/tmp/conkympd.tmp
[ ! -f $TMP ] && touch $TMP
-[ "$(cat $TMP)" == "$ARTIST+$ALBUM" ] && echo "Same artist." >> $LOG && exit 0
-echo "Artist changed: $ALBUM by $ARTIST" >> $LOG
+[ "$(cat $TMP)" == "$ARTIST+$ALBUM" ] && echo "Same artist/album." >> $LOG && exit 0
+echo "Artist/album changed: $ALBUM by $ARTIST" >> $LOG
#[ -f "/tmp/conkyCover.png" ] && rm "/tmp/conkyCover.png"
cp $HOME/.config/conky-mpd/nocover.png /tmp/conkyCover.png