2021-10-09 21:20:41 +00:00
|
|
|
#!/bin/sh
|
2023-12-22 00:10:59 +00:00
|
|
|
selected=$(mpc -f "%title%[\t\t%artist%][\t\t%album%]\t\t%file%" listall | dmenu -i -p mpd)
|
|
|
|
[ "$selected" == "" ] && exit
|
|
|
|
file=$(printf "%s\n" "$selected" | rev | cut -f1 -d' ' | rev)
|
|
|
|
echo "$file"
|
|
|
|
mpc insert "$file"
|