From 6c0e545800c0bfd3befe548c6572b51fcc628644 Mon Sep 17 00:00:00 2001
From: katherine <ageha@airen-no-jikken.icu>
Date: Thu, 7 Mar 2024 08:59:32 -0700
Subject: avert weird dirname error

still an issue in dunst icon path parsing, though
---
 .config/herbstluftwm/mpc-status.sh | 3 +--
 1 file changed, 1 insertion(+), 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%')
 
-- 
cgit v1.2.3