aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2024-03-07 08:59:32 -0700
committerkatherine <ageha@airen-no-jikken.icu>2024-03-07 08:59:32 -0700
commit6c0e545800c0bfd3befe548c6572b51fcc628644 (patch)
tree37b6afd990a71ebdb0457ed28944dffd9a77bc7b /.config/herbstluftwm
parent46cbd7ddcb241d8d0979410083bb31c6aa95c3c4 (diff)
downloaddotfiles-6c0e545800c0bfd3befe548c6572b51fcc628644.tar.gz
avert weird dirname error
still an issue in dunst icon path parsing, though
Diffstat (limited to '.config/herbstluftwm')
-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%')