From a33c78ca39fd8843b27a5e29ebcb544ddb6f7ab4 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sat, 22 Jun 2024 02:01:55 -0400 Subject: [PATCH] fix workspace 1 on single output --- myx | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.30.2