From 6ed5a1c5b4068aec1e3d43814cde6522139daeac Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Mon, 6 Sep 2021 01:46:03 +0200 Subject: [PATCH] Change autostart behaviour --- .xprofile | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/.xprofile b/.xprofile index ae42c5e..3fd11c2 100644 --- a/.xprofile +++ b/.xprofile @@ -16,17 +16,6 @@ fi network_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() { @@ -34,7 +23,6 @@ wait_for_service() do sleep 0.5 done - sleep 1 } _autostart_workspace_voip() @@ -90,22 +78,13 @@ _autostart_apps() _autostart() { - ### wait for internet - wait_for_service "network-online.target" & - network_wait_pid=$! - ### wait for audio - start_jack & - audio_wait_pid=$! + start_jack - echo $audio_wait_pid - echo $network_wait_pid + ### wait for internet + wait_for_service "network-online.target" _autostart_apps & - - wait $network_wait_pid - wait $audio_wait_pid - _autostart_workspace_voip & _autostart_workspace_messenger & }