dwm/autostart_blocking.sh
Sravan Balaji 81f908b5c6 Screen Layout & Rclone fix
- Add screen layout script to autostart_blocking
- Fix rclone command in autostart
2020-11-06 21:02:41 -05:00

23 lines
662 B
Bash
Executable File

#!/bin/bash
##############################
# Startup Blocking Processes #
##############################
# List of processes to run on start
declare -a processes_array=(\
"picom --config /home/sravan/.config/picom/picom.conf" \ # Start compositor using configuration file
"bash /home/sravan/.screenlayout/default-screen-layout.sh" \ # Restore default screen layout
"nitrogen --restore" \ # Restore wallpaper
)
# Run processes (ignore if they don't exist)
for i in "${processes_array[@]}"
do
if ! command -v $i > /dev/null
then
do_nothing() { :; }
else
$i &
fi
done