config/bin/song
2020-05-14 20:03:55 +02:00

11 lines
185 B
Bash
Executable File

#!/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}')