mirror of
https://github.com/Phantop/dotfiles
synced 2024-12-26 06:57:58 +00:00
21 lines
596 B
Fish
Executable file
21 lines
596 B
Fish
Executable file
#!/usr/bin/fish
|
|
set HIFI ~/Music/HiFi
|
|
set LOFI /tmp/vox/LoFi
|
|
test $argv && set LOFI $argv
|
|
test -f /usr/share/man/man3/Parallel::ForkManager.3 || sudo eopkg it perl-parallel-forkmanager
|
|
|
|
mkdir /tmp/vox
|
|
ifuse --documents com.coppertino.VoxMobile /tmp/vox
|
|
|
|
if not test -d $LOFI
|
|
cd $HIFI
|
|
fd -t d -x mkdir -p $LOFI/{}
|
|
fd -e flac -x opusenc --bitrate 72 {} $LOFI/{.}.opus
|
|
end
|
|
|
|
set args -s $HIFI -d $LOFI -o opus -q 72 --clean sync -F 8 -a mp3,m4a,opus
|
|
acxi $args || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args
|
|
|
|
fusermount -u /tmp/vox
|
|
rmdir /tmp/vox
|