diff --git a/.local/bin/focus b/.local/bin/focus index 77eb1bb..96c7852 100755 --- a/.local/bin/focus +++ b/.local/bin/focus @@ -1,3 +1,3 @@ playlistPath="$MUSIC/Playlists" -result="$(test "$1" && (find $playlistPath -iname "focus-$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u*" | grep . || find $MUSIC -iname "*$1*") | head -1 || echo "$playlistPath/focus.m3u8" )" -vp "$result" +result="$(test "$1" && (find -L $playlistPath -iname "focus-$1.m3u8" | grep . || find -L $playlistPath -iname "$1.m3u*" | grep . || find -L $MUSIC -iname "*$1*") | head -1 || echo "$playlistPath/focus.m3u8" )" +test "$result" && vp "$result" diff --git a/.local/bin/vp b/.local/bin/vp index c09e66a..ff3bc2f 100755 --- a/.local/bin/vp +++ b/.local/bin/vp @@ -1,3 +1,4 @@ #!/bin/sh +# restarts VLS with the given paths killall -q vlc vlc --no-qt-error-dialogs --qt-start-minimized --qt-notification 0 --loop --random "$@" >/dev/null 2>&1 &