Autostart Patch w/ Modifications

- Add autostart patch
- Include config directory in autostart search dirs
- Sync cloud drives
- Start compositor
- Restore wallpaper
- Start redshift for blue light filtering
This commit is contained in:
Sravan Balaji
2020-07-26 00:20:17 -04:00
parent ab1c6e3d00
commit 8531dc3158
3 changed files with 147 additions and 0 deletions

27
autostart.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/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
# Start compositor using configuration file
picom --config ~/.config/picom/picom.conf &
# Restore wallpaper
nitrogen --restore &
# Blue light filter (Farmington Hills, MI)
redshift -l 42.48531:-83.37716 &