config/bin/song

11 lines
185 B
Plaintext
Raw Normal View History

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