2020-06-26 21:21:22 +00:00
|
|
|
#!/bin/sh
|
2020-09-04 10:05:10 +00:00
|
|
|
MUSIC="$HOME/daten/music"
|
|
|
|
playlistPath="$MUSIC/Playlists"
|
|
|
|
result="$(test "$1" && (find $playlistPath -iname "focus-$1.m3u8" | grep . || find $playlistPath -iname "$1.m3u*" | grep . || find $MUSIC -iname "*$1*") || echo "$playlistPath/focus.m3u8" )"
|
|
|
|
killall -q vlc; sleep 1; vlc --qt-start-minimized --loop --random "$result" >/dev/null 2>&1 &
|
2020-06-26 21:21:22 +00:00
|
|
|
|