config/bin/song

11 lines
199 B
Plaintext
Raw Normal View History

2020-05-14 20:03:55 +02:00
#!/bin/bash
2020-05-15 16:15:40 +02:00
song=$(mpc --format "%artist%\t%title%\t%position%" playlist | sort | column -s" " -t | fzf --no-hscroll)
2020-05-14 20:03:55 +02:00
if [ "$song" == "" ]
then
exit
fi
2020-05-15 16:15:40 +02:00
mpc play $(echo $song | awk '{print $NF}')