Files
dwm/autostart.sh
Sravan Balaji 0a4ab3b407 Move rclone out of autostart_blocking
- Put rclone sync in autostart so dwm isn't prevented from starting
2020-11-06 21:01:45 -05:00

20 lines
389 B
Bash
Executable File

#!/bin/bash
# Local cloud storage directory
local_clone_dir="$HOME/Cloud"
# List of remotes as defined in rclone
declare -a remote_array=(\
"OneDrive - Personal" \
"Google Drive - Personal" \
)
# Mount Remotes
for i in "${remote_array[@]}"
do
local_path="$local_clone_dir"/"$i"
mkdir -p "$local_path"
rclone --vfs-cache-mode writes mount "$i": "$local_path" &
done