diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 19:03:01 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 19:03:01 +0900 |
| commit | cbd1d349a511da7a861540a5d6ea954d4d06871b (patch) | |
| tree | 92b932d351a9474e7fd0f12c6c973274daaaa0d9 /ar/.local/bin/mpdmenu | |
| parent | 74cb5de14fc06fe97b6fc306f6176f7d6b467b6b (diff) | |
updates
Diffstat (limited to 'ar/.local/bin/mpdmenu')
| -rwxr-xr-x | ar/.local/bin/mpdmenu | 4 |
1 files changed, 2 insertions, 2 deletions
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[@]}") |
