From 79c88c87ca2abbc8b5a0597d48b23b6cdaa8f772 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 12 Sep 2020 17:22:10 +0200 Subject: Update --- .config/bspwm/bspwmrc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to '.config/bspwm/bspwmrc') diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index c5daa0b..1a2f7a5 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -62,14 +62,7 @@ sub run_if_dead PGREP_PATH, $bin ); - }; - $retval = ($retval >> 8) & 0xff; - if ($retval != 0) { - $pid = fork(); - if (not $pid) { - exec(@argv); - exit; - } + }; $retval = ($retval >> 8) & 0xff; if ($retval != 0) { $pid = fork(); if (not $pid) { exec(@argv); exit; } } return; } @@ -254,7 +247,6 @@ sub fg_on_one_screen } Time::HiRes::sleep(3.6); system(BSPC_PATH, 'node', '-p', 'west'); - Time::HiRes::sleep(0.5); $term_pid[1] = fork(); if (not $term_pid[1]) { exec(ALACRITTY_PATH, '-e', HTOP_PATH); @@ -285,6 +277,7 @@ sub run_terms { my ($screens) = @_; + Time::HiRes::sleep(1); system(BSPC_PATH, 'desktop', '-f', '09'); if ($screens == 3) { fg_on_three_screens(); -- cgit v1.2.3