tweaks to music selection

This commit is contained in:
Never Gude 2026-08-02 15:59:00 +02:00
parent 12d745da92
commit c5eef44306
3 changed files with 25 additions and 33 deletions

View file

@ -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

View file

@ -1,4 +0,0 @@
#!/bin/sh
cd `dirname $0`
env -i DISPLAY="$DISPLAY" HOME="$HOME" PATH="$PATH" USER="$USER" SWT_GTK3=0 UBUNTU_MENUPROXY= ./anylogic/anylogic