From: Ian Kelling Date: Sat, 22 Jun 2024 06:01:55 +0000 (-0400) Subject: fix workspace 1 on single output X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=a33c78ca39fd8843b27a5e29ebcb544ddb6f7ab4;p=distro-setup fix workspace 1 on single output --- diff --git a/myx b/myx index 79b9fad..85b857a 100755 --- a/myx +++ b/myx @@ -235,6 +235,7 @@ fi m /a/bin/ds/i3-sway/gen + if $tall; then # 298 & 336 are millimeters. I took them from a monitor I was using. I @@ -245,6 +246,7 @@ if $tall; then move-ws MON-LEFT 2 move-ws MON-RIGHT 3 4 5 6 7 8 9 10 + elif $quarter; then m xrandr --setmonitor MON-LEFT $half_x/298x$half_y/336+$x_offset+0 $target_out @@ -257,6 +259,13 @@ elif $quarter; then else # fullscreen move-ws $target_out 2 3 5 6 7 8 9 10 fi +if [[ $secondary_out ]]; then + ws1_output=$primary_out +else + ws1_output=MON-RIGHT +fi +move-ws $ws1_output 1 + m /a/exe/input-setup