config/bin/song

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}')