[PR #9036] Add centerOnLaunch setting #27396

Open
opened 2026-01-31 09:21:43 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9036

State: closed
Merged: Yes


This PR is a resurrection of #8414. @Hegunumo has apparently deleted
their account, but the contribution was still valuable. I'm just here to
get it across the finish line.

This PR adds new global setting centerOnLaunch. When set to true,
the Terminal window will be centered on the display it opens on.

So the interactions are like:

  • initialPos: x,y, centered: true, launchMode: default
    center on the monitor that x,y is on

  • initialPos: x,y, centered: true, launchMode: maximized
    maximized on the monitor that x,y is on (centered adds nothing)

  • initialPos: <omitted>, centered: true, launchMode: default
    center on the default monitor

  • initialPos: <omitted>, centered: true, launchMode: focus
    center, focus mode on the default monitor

  • initialPos: <omitted>, centered: true, launchMode: maximized
    maximized on the default monitor (centered adds nothing)

Validation Steps Performed

I've played with it on multiple different monitors, and it seems to work
on all of them.

Closes #8414 (original PR)
Closes #7722

Co-authored-by: Kiminori Kaburagi yukawa_hidenori@icloud.com

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9036 **State:** closed **Merged:** Yes --- This PR is a resurrection of #8414. @Hegunumo has apparently deleted their account, but the contribution was still valuable. I'm just here to get it across the finish line. This PR adds new global setting `centerOnLaunch`. When set to `true`, the Terminal window will be centered on the display it opens on. So the interactions are like: * `initialPos: x,y`, `centered: true`, `launchMode: default` center on the monitor that x,y is on * `initialPos: x,y`, `centered: true`, `launchMode: maximized` maximized on the monitor that x,y is on (centered adds nothing) * `initialPos: <omitted>`, `centered: true`, `launchMode: default` center on the default monitor * `initialPos: <omitted>`, `centered: true`, `launchMode: focus` center, focus mode on the default monitor * `initialPos: <omitted>`, `centered: true`, `launchMode: maximized` maximized on the default monitor (centered adds nothing) ## Validation Steps Performed I've played with it on multiple different monitors, and it seems to work on all of them. Closes #8414 (original PR) Closes #7722 Co-authored-by: Kiminori Kaburagi <yukawa_hidenori@icloud.com>
claunia added the pull-request label 2026-01-31 09:21:43 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27396