From 27563ebdcf5eb8cc35ce5cbbf98837c834e2bae6 Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 13 Feb 2017 22:30:19 -0700 Subject: symlink, rather than copy, album cover icon no idea why i didn't do this initially --- .config/herbstluftwm/mpc-status.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config/herbstluftwm') diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh index 26e249c..1c44eee 100755 --- a/.config/herbstluftwm/mpc-status.sh +++ b/.config/herbstluftwm/mpc-status.sh @@ -26,8 +26,9 @@ fi cd ~/music/ dir=$(dirname "$(mpc current -f %file%)") -# copying is necessary because notify-send can't into icon paths containing commas -cp "$dir/cover-small.png" /tmp/mpd-icon.png +# linking is necessary because notify-send can't into icon paths containing commas +cd /tmp/ +ln -sf "$HOME/music/$dir/cover-small.png" mpd-icon.png message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%') -- cgit v1.2.3