8000 GitHub - flaviotordini/refill: Simple script to refill my phone with random music
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

flaviotordini/refill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

This is a quick Bash script that can be run on Linux to automatically refill any portable device with random songs from your music library. I wrote it for my personal usage so I thought it could be useful to others.

The idea is that I would simply connect the phone via USB to the living room computer, activate MTP file transfer and get new music onto it without further interaction.

The hard part is figuring out the path of the phone Music directory. For an Android phone attached to a system running GNOME, it should be something like: /run/user/1000/gvfs/mtp:host=*/*/Music/. Not exactly user friendly.

Example usage. Transfer 10 random songs (deleting the older ones):

refill.sh 10 /home/flavio/Music/Rock/ /run/user/1000/gvfs/mtp:host=*/*/Music/

Add the script to Cron to have the script automatically run.

About

Simple script to refill my phone with random music

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0