diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-11 17:49:39 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-11 17:49:39 +0200 |
commit | 2cb756fcf049e867c233c0d1b2f67faa237dc50a (patch) | |
tree | 207b8a151adecbf8a613a7c0e69384cf33fe5f8a /.local/share/bin/ipod-sync | |
parent | f56e771ea7bf0528fa24b53ec7553681d2a11120 (diff) |
added ipod-sync script
Diffstat (limited to '.local/share/bin/ipod-sync')
-rwxr-xr-x | .local/share/bin/ipod-sync | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.local/share/bin/ipod-sync b/.local/share/bin/ipod-sync new file mode 100755 index 0000000..92eb0c2 --- /dev/null +++ b/.local/share/bin/ipod-sync @@ -0,0 +1,25 @@ +#!/bin/sh + +UUID="81CC-A462" + +read -r -d '' commands << EOF +echo "mounting..." +sudo mount "/dev/disk/by-uuid/$UUID" /mnt/ipod -o uid=loek,gid=users +echo "mounted" + +echo "copying music..." +musicopy + +echo "pushing scrobbler.log to last.fm..." +pyapplier -y -f /mnt/ipod/.scrobbler.log + +echo "unmounting..." +sudo umount /mnt/ipod +echo "done! exiting..." +sleep 1 +EOF + +st -T "[floating]" -g "100x15--154-140" -e sh -c "$commands" + + + |