tweaks to music selection
This commit is contained in:
parent
12d745da92
commit
c5eef44306
3 changed files with 25 additions and 33 deletions
|
|
@ -52,12 +52,11 @@ function select_song
|
|||
|
||||
while true
|
||||
if test $state = "title"
|
||||
set song[3] (echo -e "\t.\n\t..\n $(mpc search --format "%track%\t%title%" album $song[2])" | fuzzel --dmenu --with-nth 2 --accept-nth 2 || exit)
|
||||
set song[3] (echo -e ".\n..\n$(mpc search --format "%track%\t%title%" album $song[2])" | fuzzel --dmenu --accept-nth 2 || exit)
|
||||
|
||||
if test $song[3] = "."
|
||||
set state ""
|
||||
mpc find album $song[2] | mpc insert
|
||||
mpc next
|
||||
mpc find album $song[2] | mpc add
|
||||
else if test $song[3] = ".."
|
||||
set state "album"
|
||||
else
|
||||
|
|
@ -68,12 +67,11 @@ function select_song
|
|||
end
|
||||
|
||||
else if test $state = "album"
|
||||
set song[2] (echo -e ".\n..\n$(mpc list album albumartist $song[1])" | fuzzel --dmenu || exit)
|
||||
set song[2] (echo -e ".\n..\n$(mpc search --format "%date%\t%album%" albumartist $song[1] | uniq | sort)" | fuzzel --dmenu --accept-nth 2 || exit)
|
||||
|
||||
if test $song[2] = "."
|
||||
set state ""
|
||||
mpc find albumartist $song[1] | mpc insert
|
||||
mpc next
|
||||
mpc find albumartist $song[1] | mpc add
|
||||
else if test $song[2] = ".."
|
||||
set state "artist"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue