mirror of
https://github.com/Phantop/dotfiles
synced 2024-09-29 13:32:06 +00:00
hitolo: directly sync to iPhone
This commit is contained in:
parent
b30c81c516
commit
889f698e3e
|
@ -1,8 +1,12 @@
|
||||||
#!/usr/bin/fish
|
#!/usr/bin/fish
|
||||||
set HIFI ~/Music/HiFi
|
set HIFI ~/Music/HiFi
|
||||||
set LOFI ~/Music/LoFi
|
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
|
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
|
if not test -d $LOFI
|
||||||
cd $HIFI
|
cd $HIFI
|
||||||
fd -t d -x mkdir -p $LOFI/{}
|
fd -t d -x mkdir -p $LOFI/{}
|
||||||
|
@ -10,4 +14,7 @@ if not test -d $LOFI
|
||||||
end
|
end
|
||||||
|
|
||||||
set args -s $HIFI -d $LOFI -o opus -q 72 --clean sync -F 8 -a mp3,m4a,opus
|
set args -s $HIFI -d $LOFI -o opus -q 72 --clean sync -F 8 -a mp3,m4a,opus
|
||||||
acxi $args $argv || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args $argv
|
acxi $args || wget https://github.com/smxi/acxi/raw/stable/acxi -O- -o/dev/null | perl -- - $args
|
||||||
|
|
||||||
|
fusermount -u /tmp/vox
|
||||||
|
rmdir /tmp/vox
|
||||||
|
|
Loading…
Reference in a new issue