aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.config/herbstluftwm/mpc-status.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh
index 31c13f4..f1c8130 100755
--- a/.config/herbstluftwm/mpc-status.sh
+++ b/.config/herbstluftwm/mpc-status.sh
@@ -24,8 +24,7 @@ if [[ -z $(mpc status | grep -E '\[(playing|paused)\]') ]]; then
exit
fi
-cd ~/music/
-dir=$(dirname "$(mpc current -f %file%)")
+dir=${"$(mpc current -f %file%)":h}
message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%')