Improve song search
This commit is contained in:
parent
28a578d280
commit
9091599124
4
bin/song
4
bin/song
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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" == "" ]
|
if [ "$song" == "" ]
|
||||||
then
|
then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mpc play $(echo $song | awk '{print $1}')
|
mpc play $(echo $song | awk '{print $NF}')
|
||||||
|
Loading…
Reference in New Issue
Block a user