diff options
Diffstat (limited to '.config')
-rwxr-xr-x | .config/bspwm/bspwmrc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index d64dfe4..c5daa0b 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -93,7 +93,7 @@ sub enable_screens $screens = 3; system(TRIPLESCREEN_PATH); } - elsif ($stdout =~ m/DP1 connected/) { + elsif ($stdout =~ m/HDMI1 connected/) { $screens = 2; system(DUALSCREEN_PATH); } @@ -195,7 +195,6 @@ sub fg_on_three_screens system(BSPC_PATH, 'node', '-f', 'east'); system(BSPC_PATH, 'node', '-f', 'north'); system(BSPC_PATH, 'node', '-z', 'bottom', '0', '-280'); - system(BSPC_PATH, 'node', '-f', 'north'); system(BSPC_PATH, 'node', '-f', 'west'); return; } @@ -237,7 +236,6 @@ sub fg_on_two_screens system(BSPC_PATH, 'node', '-f', 'east'); system(BSPC_PATH, 'node', '-f', 'north'); system(BSPC_PATH, 'node', '-z', 'bottom', '0', '-280'); - system(BSPC_PATH, 'node', '-f', 'north'); system(BSPC_PATH, 'node', '-f', 'west'); return; } @@ -256,6 +254,7 @@ 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); @@ -279,7 +278,6 @@ sub fg_on_one_screen system(BSPC_PATH, 'node', '-z', 'right', '-220', '0'); system(BSPC_PATH, 'node', '-f', 'east'); system(BSPC_PATH, 'node', '-z', 'bottom', '0', '70'); - system(BSPC_PATH, 'node', '-f', 'north'); return; } |