Make audacious hack work with many files

This commit is contained in:
Simon Bruder 2019-10-31 22:51:40 +00:00
parent aa0627ed4c
commit 57610816be
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -144,10 +144,12 @@ function mullvad() (
# Audacious does not support symlinks; hack around that
function audacious-hack() (
audtool playlist-clear
IFS=$'\n'
for dir in $@; do
/bin/ls -1 $dir/**/*.(flac|m4a|mp3|ogg|opus)(@)
done|sort -Vd|tr '\n' '\0'|xargs -0 audacious
done|sort -Vd|tr '\n' '\0'|xargs -0 -- audacious --enqueue
audacious --play
)
# Program aliases/env