command line option to launch new windows in zen mode #21970

Closed
opened 2026-01-31 07:59:41 +00:00 by claunia · 3 comments
Owner

Originally created by @RalfReddings on GitHub (Jul 13, 2024).

Please provide a command line option to launch new windows in Focus mode.

As well as the ability to specify it per profile in the profiles settings but short of that, then a command line switch/option to use with wt.exe please!

Currently every time I launch a window, straight after, I have to use a long keyboard shortcut/command pallete to go into focus mode, which is not ideal.

TheFocus mode section of the "Windows Terminal tips and tricks" article, explains that its possible to get windows terminal to force every new window into focus mode:

To set focus mode to launch every time you start Windows Terminal, open the Settings (Ctrl + ,) and select the Startup tab. Under Launch mode, select Focus (or Maximized focus, which is focus mode with your terminal window maximized). Select Save before exiting. The next time you launch the Windows Terminal, it will open up in focus mode

But going into the settings panel, I dont see this option at all:
500

I am on 1.19.-preview

Originally created by @RalfReddings on GitHub (Jul 13, 2024). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> Please provide a command line option to launch new windows in [Focus mode](https://learn.microsoft.com/en-us/windows/terminal/tips-and-tricks#focus-mode). As well as the ability to specify it per profile in the profiles settings but short of that, then a command line switch/option to use with wt.exe please! Currently every time I launch a window, straight after, I have to use a long keyboard shortcut/command pallete to go into focus mode, which is not ideal. The[Focus mode](https://learn.microsoft.com/en-us/windows/terminal/tips-and-tricks#focus-mode) section of the "Windows Terminal tips and tricks" article, explains that its possible to get windows terminal to force every new window into focus mode: >To set focus mode to launch every time you start Windows Terminal, open the Settings (Ctrl + ,) and select the Startup tab. Under Launch mode, select Focus (or Maximized focus, which is focus mode with your terminal window maximized). Select Save before exiting. The next time you launch the Windows Terminal, it will open up in focus mode But going into the settings panel, I dont see this option at all: ![500](https://i.imgur.com/VrQdYzH.png) I am on 1.19.-preview
Author
Owner

@DHowett commented on GitHub (Jul 13, 2024):

Thanks for pointing this out! It’s in “launch parameters” at the bottom.

@DHowett commented on GitHub (Jul 13, 2024): Thanks for pointing this out! It’s in “launch parameters” at the bottom.
Author
Owner

@zadjii-msft commented on GitHub (Jul 15, 2024):

Pretty sure you can already

wt --focus

To launch into focus mode. IIRC I think that only applies to new windows (wt -w 0 --focus won't change the current window into focus mode)

https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#options-and-commands

@zadjii-msft commented on GitHub (Jul 15, 2024): Pretty sure you can already ``` wt --focus ``` To launch into focus mode. IIRC I think that only applies to new windows (`wt -w 0 --focus` won't change the current window into focus mode) https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows#options-and-commands
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jul 19, 2024):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Jul 19, 2024): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21970