diff options
author | katherine <shmibs@shmibbles.me> | 2017-02-13 22:30:19 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2017-02-13 22:30:19 -0700 |
commit | 27563ebdcf5eb8cc35ce5cbbf98837c834e2bae6 (patch) | |
tree | 0ed71dc91f9b179fb6a6da6da8cb5b2b30376253 /.config/herbstluftwm | |
parent | b57c5b4854fd5de8d1782bef5193c27d0122e3d2 (diff) | |
download | dotfiles-27563ebdcf5eb8cc35ce5cbbf98837c834e2bae6.tar.gz |
symlink, rather than copy, album cover icon
no idea why i didn't do this initially
Diffstat (limited to '.config/herbstluftwm')
-rwxr-xr-x | .config/herbstluftwm/mpc-status.sh | 5 |
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%') |