blob: af69765c8c3bd705f3fd61530fdc6d9993371bec (
plain)
| 1
2
3
4
5
6
7
8
9
10
 | #!/bin/bash
choice=$(mpc playlist | dmenu -i)
if [[ -n "$choice" ]]
then
    item=$(echo $choice | awk '{split($0, a, "-");print a[2]}' | cut -c2-)
    mpc searchplay title "$item"
else
    echo "No choice given"
fi
 |