config/bin/song
2020-05-15 16:15:40 +02:00

11 lines
199 B
Bash
Executable File

#!/bin/bash
song=$(mpc --format "%artist%\t%title%\t%position%" playlist | sort | column -s" " -t | fzf --no-hscroll)
if [ "$song" == "" ]
then
exit
fi
mpc play $(echo $song | awk '{print $NF}')