# splash screen for bspwm on copernicus set -x if [ -z "$1" ]; then st -g 78x11+0+0 -c st-gpg-menu -e bspwm-copernicus-welcome inner & disown exit fi case "$1" in "helptext") cat | less < /dev/null & sleep 1 num_jobs=$(jobs | wc -l) if [ $num_jobs -gt 0 ]; then # scrcpy started successfully disown %- break fi fi done exit ;; "inner") tmux \ new-session "bspwm-copernicus-welcome run-scrcpy" \; \ split-window "bspwm-copernicus-welcome run-x11vnc" \; \ new-window "bspwm-copernicus-welcome helptext" \; \ set -g status off ;; esac