From a6e8f3f00ff90c5a55fc00a7803e13ac779cdbd0 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Sat, 2 Jan 2021 19:53:10 +0100 Subject: [PATCH] bin: fix vlc playing via focus & vp --- .local/bin/focus | 4 ++-- .local/bin/vp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 &