diff options
author | Joe <rrbo@proton.me> | 2023-01-17 12:42:47 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-01-17 12:42:47 +0100 |
commit | 409b5869cc29c55a3cd0823e04320355dd680689 (patch) | |
tree | b1f63ba520931260338af5d09093d3b9595c188d | |
parent | up (diff) | |
download | dotfiles-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.sh | 5 |
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 |