Window size and position #5664

Closed
opened 2026-01-31 00:18:43 +00:00 by claunia · 1 comment
Owner

Originally created by @oomek on GitHub (Dec 21, 2019).

How do I set the default window size and position? I do not see anything relevant in the config fields. There is only padding

Update:
I found initialCols and initialRows which allow to set the default window size, but it still opens in random places on the screen.

Originally created by @oomek on GitHub (Dec 21, 2019). How do I set the default window size and position? I do not see anything relevant in the config fields. There is only `padding` Update: I found `initialCols` and `initialRows` which allow to set the default window size, but it still opens in random places on the screen.
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 00:18:44 +00:00
Author
Owner

@volkancakil commented on GitHub (Dec 28, 2019):

there is an initialPosition config option.
we are looking for the coordinate of therminal's top left corner, calculate that point to align centers

(Wx - Tx.fontWidth)/2, (Wy - Ty.fontHeight)/2 .

"globals": {
    "initialCols": 100,
    "initialRows": 30,
    "initialPosition": "500, 250"
  }
@volkancakil commented on GitHub (Dec 28, 2019): there is an `initialPosition` config option. we are looking for the coordinate of therminal's top left corner, calculate that point to align centers `(Wx - Tx.fontWidth)/2, (Wy - Ty.fontHeight)/2` . ``` "globals": { "initialCols": 100, "initialRows": 30, "initialPosition": "500, 250" } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5664