Commit 035af64
launch default = golden-ratio 16:10 centered (MiOS global)
Operator directive 2026-05-18: "always default launched perfectly
centered as a 16:10 window centered at the screens current
resolutions bounds--centered and sized centered and ratioed at the
golden ratio + centered per 3x3 screen grid (just sized per the
golden ratio to screen size and centered all in a 16:10 ratio
window--ALL as Global defaults".
NEW position value "default" added to PositionLiteral enum +
JSONSchema. Geometry:
phi = 1.6180339887 (golden ratio)
W = round(screen_width / phi) ~= 0.618 * screen_width
H = round(W * 10 / 16) 16:10 aspect
X = (screen_W - W) / 2 centered horizontally
Y = (screen_H - H) / 2 centered vertically
Concrete numbers on 1920x1080 primary:
W = 1186, H = 741
X = 367, Y = 169 (centered in the middle cell of the 3x3
rule-of-thirds grid)
ALL launches now get this by default. open_app(name="notepad")
emits this geometry; "open notepad on top right" still emits
top-right (operator's explicit position wins). Opt-out via
"as-is" (no MoveWindow at all -- whatever the OS gave) or
"center" (centered at native size, no resize).
Implementation (4 files):
* mios_verbs.py: PositionLiteral now begins with "default";
open_app's `position` parameter default = "default".
* mios-owui-install-tools: open_app spec enum + default updated;
description names the new default + clarifies as-is vs center
vs default vs maximize.
* mios-windows: MIOS_LAUNCH_POSITION env default flipped from
"center" to "default"; new branch in place_block computes the
golden-16:10-centered rect via PowerShell ($phi var + Round
+ integer cast); clamps to WorkingArea.
* Live verified in OWUI DB:
open_app.position.enum (12): ['default','as-is','center',
'left','right','top','bottom','top-left','top-right',
'bottom-left','bottom-right','maximize']
open_app.position.default: 'default'
Note: the always-focus chain from the previous commit
(ShowWindow + AttachThreadInput + SetForegroundWindow +
SwitchToThisWindow) still runs unconditionally, so the new
geometry comes with the XFSE/Game-Bar-piercing focus baked in.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 73a6c38 commit 035af64
3 files changed
Lines changed: 46 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
207 | 209 | | |
208 | | - | |
209 | | - | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | | - | |
246 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
528 | 534 | | |
529 | 535 | | |
530 | 536 | | |
| |||
553 | 559 | | |
554 | 560 | | |
555 | 561 | | |
556 | | - | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
557 | 577 | | |
558 | 578 | | |
559 | 579 | | |
| |||
614 | 634 | | |
615 | 635 | | |
616 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
617 | 640 | | |
618 | 641 | | |
619 | 642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
56 | 65 | | |
| 66 | + | |
57 | 67 | | |
58 | 68 | | |
59 | 69 | | |
| |||
317 | 327 | | |
318 | 328 | | |
319 | 329 | | |
320 | | - | |
| 330 | + | |
321 | 331 | | |
322 | 332 | | |
323 | 333 | | |
| |||
0 commit comments