aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/playlist_choice
blob: 0a0d809009d3bc000c8e0c5d8bce6f708d8c2b96 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env sh
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