aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/mpc-status.sh
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-02-13 22:30:19 -0700
committerkatherine <shmibs@shmibbles.me>2017-02-13 22:30:19 -0700
commit27563ebdcf5eb8cc35ce5cbbf98837c834e2bae6 (patch)
tree0ed71dc91f9b179fb6a6da6da8cb5b2b30376253 /.config/herbstluftwm/mpc-status.sh
parentb57c5b4854fd5de8d1782bef5193c27d0122e3d2 (diff)
downloaddotfiles-27563ebdcf5eb8cc35ce5cbbf98837c834e2bae6.tar.gz
symlink, rather than copy, album cover icon
no idea why i didn't do this initially
Diffstat (limited to '.config/herbstluftwm/mpc-status.sh')
-rwxr-xr-x.config/herbstluftwm/mpc-status.sh5
1 files changed, 3 insertions, 2 deletions
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%')