fix workspace 1 on single output
authorIan Kelling <ian@iankelling.org>
Sat, 22 Jun 2024 06:01:55 +0000 (02:01 -0400)
committerIan Kelling <ian@iankelling.org>
Sat, 22 Jun 2024 06:01:55 +0000 (02:01 -0400)
myx

diff --git a/myx b/myx
index 79b9fadb2134704194192b8081a98f13dc75ba94..85b857aba58e7a4beda1ba005063a9e8d5ef3055 100755 (executable)
--- 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