commit 58cf1fd825d962a645cec6296798d5fcaa9f1168 parent da2f530174cef5d665a7afe89e66b95bb46a15aa Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 28 Aug 2019 15:16:20 +0200 Merge branch 'master' of gitlab.com:admesg/dotfiles Diffstat:
M | .config/newsboat/urls | | | 1 | + |
A | .local/bin/sync-music-ad-server.sh | | | 15 | +++++++++++++++ |
D | .local/bin/sync-music.sh | | | 15 | --------------- |
3 files changed, 16 insertions(+), 15 deletions(-)
diff --git a/.config/newsboat/urls b/.config/newsboat/urls @@ -155,6 +155,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCotlbvf26z1LhiKKcDRAZqQ you https://www.youtube.com/feeds/videos.xml?channel_id=UCAd5I826gVHZZmPahFwuEaQ youtube photo "~youtube: Joe Greer" https://www.youtube.com/feeds/videos.xml?channel_id=UC8EwI9eDkSJ7_zYa6fGwazA youtube photo "~youtube: Madison B" https://www.youtube.com/feeds/videos.xml?channel_id=UCVlP-ilVaxoSigxFx0x3iOA youtube photo "~youtube: Dave Rollans Films" +https://www.youtube.com/feeds/videos.xml?channel_id=UCEsIPHfiX6UpomrXTrdq67Q youtube photo "~youtube: Analog Insights" https://www.youtube.com/feeds/videos.xml?channel_id=UCm9BPmxgO7fW7_lOXl9-mPw youtube "~youtube: Lars Damsgaard Christensen" https://www.youtube.com/feeds/videos.xml?channel_id=UCzFfuU06f327-bnI3lODUNQ youtube "~youtube: LinuxChristian" diff --git a/.local/bin/sync-music-ad-server.sh b/.local/bin/sync-music-ad-server.sh @@ -0,0 +1,15 @@ +#!/bin/sh +host=adamsgaard.dk:/Volumes/ext2/Music/ +if [ "$(uname)" = "Darwin" ]; then + musicdir="$HOME/Music/iTunes/iTunes Media/Music/" +else + musicdir="$HOME/music/" +fi + +echo "syncing new music to $host" +rsync -rav --progress -e "ssh" "$musicdir" $host + +echo "syncing new music from $host" +rsync -rav --progress -e "ssh" $host "$musicdir" + +mpc update diff --git a/.local/bin/sync-music.sh b/.local/bin/sync-music.sh @@ -1,15 +0,0 @@ -#!/bin/bash -host=iddqd:~/music/ -if [ "$(uname)" = "Darwin" ]; then - musicdir="$HOME/Music/iTunes/iTunes Media/Music/" -else - musicdir="$HOME/music/" -fi - -echo "syncing new music to $host" -rsync -rav --progress -e "ssh" "$musicdir" $host - -echo "syncing new music from $host" -rsync -rav --progress -e "ssh" $host "$musicdir" - -mpc update