blob: 3758b0a3a32cfca8e70ba1ed5adf0e6752f81ee0 (
plain)
1
2
3
4
5
6
|
#!/bin/sh
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"
|