diff --git a/bin/song b/bin/song index 6a7c703..3ec0e45 100755 --- a/bin/song +++ b/bin/song @@ -1,10 +1,10 @@ #!/bin/bash -song=$(mpc --format "%position%\t%artist%\t%title%" playlist | sort | column -s" " -t | fzf) +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 $1}') +mpc play $(echo $song | awk '{print $NF}')