From cbd1d349a511da7a861540a5d6ea954d4d06871b Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 28 Jun 2025 19:03:01 +0900 Subject: updates --- ar/.local/bin/mpdmenu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ar/.local/bin/mpdmenu') diff --git a/ar/.local/bin/mpdmenu b/ar/.local/bin/mpdmenu index e6634fd..126a876 100755 --- a/ar/.local/bin/mpdmenu +++ b/ar/.local/bin/mpdmenu @@ -1,7 +1,7 @@ #!/bin/bash all_name='[ALL]' -PLAYLIST_DIR="${XDG_CONFIG_HOME:-${HOME}/.config}/mpd/playlists" +playlist_dir="${XDG_CONFIG_HOME:-${HOME}/.config}/mpd/playlists" # Functions d_artist() { @@ -31,7 +31,7 @@ d_title() { } d_playlist() { - playlists=$(find "$PLAYLIST_DIR" \( -type f -o -type l \) -name "*.m3u" -exec basename {} .m3u \;) + playlists=$(find "$playlist_dir" \( -type f -o -type l \) -name "*.m3u" -exec basename {} .m3u \;) selected_playlist=$(echo "$playlists" | sort | dmenu -i -p "Select Playlist:" "${dmenu_args[@]}") -- cgit v1.2.3