Change autostart behaviour

This commit is contained in:
Tobias Reisinger 2021-09-06 01:46:03 +02:00
parent d9ea1de911
commit 6ed5a1c5b4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -16,17 +16,6 @@ fi
network_wait_pid=1 network_wait_pid=1
audio_wait_pid=1 audio_wait_pid=1
#_autostart_portalo()
#{
# #xrandr --output DVI-D-0 --left-of HDMI-A-0
# #xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
#}
#
#_autostart_laptop()
#{
# #xrandr --output eDP-1 --auto
# #xrandr --output HDMI-2 --left-of eDP-1 --auto
#}
wait_for_service() wait_for_service()
{ {
@ -34,7 +23,6 @@ wait_for_service()
do do
sleep 0.5 sleep 0.5
done done
sleep 1
} }
_autostart_workspace_voip() _autostart_workspace_voip()
@ -90,22 +78,13 @@ _autostart_apps()
_autostart() _autostart()
{ {
### wait for internet
wait_for_service "network-online.target" &
network_wait_pid=$!
### wait for audio ### wait for audio
start_jack & start_jack
audio_wait_pid=$!
echo $audio_wait_pid ### wait for internet
echo $network_wait_pid wait_for_service "network-online.target"
_autostart_apps & _autostart_apps &
wait $network_wait_pid
wait $audio_wait_pid
_autostart_workspace_voip & _autostart_workspace_voip &
_autostart_workspace_messenger & _autostart_workspace_messenger &
} }