Skip to content

Enable globalSummon / quakeMode to work even when there isn't a running Terminal #9996

Open

Description

This is probably going to need the "headless monarch" work we theorized. Different parts to this:

  • We've already got startOnUserLogin which starts the Terminal window.
  • Is any window the monarch then?
  • Is the monarch a phoenix (when it's killed, who restarts it?)

I've had many more thoughts on the matter in the past, I just need to have somewhere to put them.

Activity

  1. changed the title [-]<reserved>[/-] [+]Enable `globalSummon` / `quakeMode` to work even when there isn't a running Terminal[/+] on May 25, 2021
  2. added
    Area-Remoting
    Issue-Feature
    Product-Terminal
    and removed
    ⛺ Reserved
    on May 25, 2021
  3. ghost added
    Needs-Tag-Fix
    on May 25, 2021
  4. dag03tsc commented on Jun 1, 2021

    @dag03tsc

    Is the monarch a phoenix (when it's killed, who restarts it?)

    I'm pretty sure this already came to your mind before, but what about using the service approach?
    It'd only require the tray icon feature to enable the persistence and provide some control over the service itself.

    I guess that'd also allow termination commands like exit, while keeping the globalSummon or quakeMode available, for as long as the service is running.

    Could it be useful to have some kind of a master orchestrator service? Something like a service to host and manage all WT instances?

  5. kensykora commented on Jul 12, 2021

    @kensykora

    Been testing out the preview channel and I LOVE quake mode. Since the terminal is so core to my development workflow, it'd be HUGE if this launched on startup so it felt like a core part of the OS.

  6. hensz commented on Jul 20, 2021

    @hensz

    Is this issue purely about starting (and keep running) Terminal at startup? I was looking for a way to manually start a terminal in Quake mode, just as asked for in issue #10206.

  7. zadjii-msft commented on Jul 20, 2021

    @zadjii-msft
    MemberAuthor

    I was looking for a way to manually start a terminal in Quake mode

    That'd be wt -w _quake. See also the docs

  8. hensz commented on Jul 21, 2021

    @hensz

    This doesn't work since I have both the stable and the preview version installed, and wt runs the stable version. Most likely I could simply uninstall the stable version. Is there any other way to launch the preview?

  9. zadjii-msft commented on Jul 21, 2021

    @zadjii-msft
    MemberAuthor

    Is there any other way to launch the preview?

    You could always change wt to open the Preview version. To do that, you can check out the "Manage app execution aliases" page in the settings

  10. hensz commented on Jul 21, 2021

    @hensz

    Hmm, if I do this and try to run wt, I get an error from the stable version:
    [Window Title]
    C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.8.1521.0_x64__8wekyb3d8bbwe\wt.exe

    [Content]
    Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.

  11. 60 remaining items

  12. arthurcaccavo commented on Jun 19, 2024

    @arthurcaccavo

    I can't believe we still don't have a WT argument --minimized yet.
    The solutions proposed here do not work flawlessly, one (big) caveat for me was losing the ability to open your default profile Elevated / as administrator, even if configured on WT.
    My workaround to have it as ADMIN was similar to above:

    • Go to your startup folder (run shell:startup)

    • Create a shortcut and on Target add wt pwsh -window minimized (I don't use quake mode, I have my Win+` set to globalSummon, you can add/keep the quake parameters if wanted)

      • In this case, make sure on your WT Settings > Appearance you have the option to hide the terminal to tray area when minimized
    • Set "Run" option also to Minimized (this prevents any flicker)

    • Click on Advanced button and check "Run as Administrator" (don't use the similar option from Compatibility tab, it's not the same, you want the one from the Advanced button)

    • Apply, OK.

    Still, can we PLEASE get a --minimized considering we already have --maximized???

    In regards to running as admin, I use PowerToys' Keyboard Manager to run terminal on CTRL+ALT+T, and CTRL+SHIFT+ALT+T runs it as administrator. Assuming you can make WT start in quake mode with a parameter, that should work too.

    When using powertoys Keyboard Manager to run terminal is there a way to make it not open a new tab when a window already exists? In other way to make the command create a window when none exists or just invoke the existing tab instead of opening a new one whe it does?

  13. Memoraike commented on Jun 19, 2024

    @Memoraike

    When using powertoys Keyboard Manager to run terminal is there a way to make it not open a new tab when a window already exists? In other way to make the command create a window when none exists or just invoke the existing tab instead of opening a new one whe it does?

    For your purpose, autohotkey will work. It doesn't work perfectly with minimized terminal windows, but as a temporary solution it's great. Don't forget to change keyboard shortcuts if necessary.

    #Requires AutoHotkey v2.0
    #SingleInstance
    
    DetectHiddenWindows true
    terminalName := "WindowsTerminal.exe"
    
    ; [Win Shift Enter] If the terminal is already open, activate it. Otherwise, open it.
    #+Enter:: {
       if (pid := ProcessExist(terminalName)) {
           if WinExist("ahk_pid" pid) {
               PostMessage 0x0112, 0xF120, , , WinGetID("ahk_pid" pid)
               WinActivate
           }
       } else {
           Run("wt")
       }
    }
    
    ; [Win Enter] Open the terminal in a new window.
    #Enter:: {
       Run("wt")
    }
    
    ; [Win `] Open the terminal in a quake mode. Only works if the terminal is not already open. Require setting same hotkey in the terminal.
    #HotIf !ProcessExist(terminalName)
    #`:: {
       Run("wt -w _quake")
    }

    To work correctly with minimized windows, you should enable this option in the settings:

    Details

    image

  14. MaverickMartyn commented on Jul 5, 2024

    @MaverickMartyn

    For anyone on Windows 11, you can start a new Terminal using WIN+X, followed by I for Terminal or A for elevated Terminal.
    It's not perfect, but it works without any 3rd party software or setup.

  15. User1785604260 commented on Jan 27, 2025

    @User1785604260

    Has something recently changed with WindowsTerminal reusing processes for its windows? I have my own super-monitor program that handles showing the quake terminal and toggling it when Win+` is pressed, due to this issue.

    I used to be able to launch "wt.exe -w _quake" and then find the WindowsTerminal process with "-w _quake" in its command line in order to then find the quake terminal window associated with that process.

    However, it seems that no matter how many times you launch wt.exe, it now only creates a single elevated and non-elevated process, and I no longer have any way to track down the quake terminal window so I can toggle its visibility. All non-elevated windows are getting stuffed into whatever existing WindowsTerminal process there is.

    (Edit: looks like I should be able to find the quake windows again by looking for terminal windows with a hidden DRAG_BAR_WINDOW_CLASS child window.)

  16. zadjii-msft commented on Jan 27, 2025

    @zadjii-msft
    MemberAuthor

    User1785604260 That changed in 1.18, like, two years ago. Ever since that release, all Terminal windows are the same process

    (and after 1.23, they'll all be on the same thread too)

  17. gitclonehama commented on Feb 3, 2025

    @gitclonehama

    First off, love the work done with Windows Terminal and over all the whole dev ecosystem with the introduction of WSL. I have been going down the rabbit hole of the many discussions on this topic.

    Currently, we can utilize the windows hotkeys: Win + x then i to fire the Terminal application.
    We can then initiate an instance in Quake Mode by using hotkeys: Win + ` (or ~). At this point, I am very happy with the overall workflow and behavior of how Terminal behaves (love that putting a quake window into fullscreen (F11) keeps it in fullscreen even after hide/unhide using Win + `.

    The only thing I wasn't clear on yet, do we have an elegant solution to streamline this process to happen automatically on start up?

    Currently I have the "Start terminal instance on start-up" checked and so I don't even have to go through the Win + x then i so essentially, I only have to initiate the quake mode by hitting Win + ` with the terminal opened on start-up.

    I know this is now small issue to even think about since I would only have to do this once when working on my PC, but are there any plans for a native solution/ setting to make the above actions happen without the intermediary step of having a Terminal open to initiate the default Terminal instance in Quake Mode on start up?

  18. thwyster commented on Apr 21, 2026

    @thwyster

    It's 2026 and we still don't have a way to start the minimized version of Quake Mode along with the operating system so we can press Win+` and open Quake Mode?

  19. zadjii-msft commented on Apr 21, 2026

    @zadjii-msft
    MemberAuthor

    I left my notes in #13630, and in #9996 (comment). Any enterprising developer who's passionate about this feature is more than welcome to open a PR for this.

    Really the hard open question is just "how does this feature interact with state restoration?" Should we:

    • for --minimized:
      • 1A restore all the windows, but also SW_HIDE them to minimize them?
      • 1B Or just restore them normally, and create the new window minimized.
    • for --headless:
      • 2A restore them on launch?
      • 2B not restore them until the first window is created?

    Hell I think you could just go with 1B and 2A and call it a day.

  20. thwyster commented on Apr 24, 2026

    @thwyster

    I left my notes in #13630, and in #9996 (comment). Any enterprising developer who's passionate about this feature is more than welcome to open a PR for this.

    Really the hard open question is just "how does this feature interact with state restoration?" Should we:

    * for `--minimized`:
      
      * **1A** restore all the windows, but also SW_HIDE them to minimize them?
      * **1B** Or just restore them normally, and create the new window minimized.
    
    * for `--headless`:
      
      * **2A** restore them on launch?
      * **2B** not restore them until the first window is created?
    

    Hell I think you could just go with 1B and 2A and call it a day.

    Hi Mike Griese (@zadjii-msft), thanks for the explanation earlier.

    Just to clarify: if my previous comment sounded harsher than I intended, I’m sorry about that. English isn’t my first language and sometimes the tone doesn’t come out the way I mean it.

    About the design questions you raised, I wanted to share a simple user perspective that might help.

    Right now, WT doesn’t restore sessions after a system reboot, at least not for me.
    If I have multiple tabs open and restart Windows, WT always starts clean.

    I believe that’s already the expected behavior for most users.

    Because of that, option 2B (“don’t restore anything until the first window is created”) seems like the most appropriate choice for a headless/auto‑start scenario. It matches what WT already does today and avoids hidden windows or restoring sessions the user didn’t explicitly ask for.

    Just wanted to add this point of view in case it helps the discussion.

    And thanks again for all the work you put into WT!
    It’s an amazing project and probably the tool I use the most in my daily workflow, right next to the big VS ❤️

  21. zadjii-msft commented on Apr 24, 2026

    @zadjii-msft
    MemberAuthor

    Right now, WT doesn’t restore sessions after a system reboot, at least not for me. If I have multiple tabs open and restart Windows, WT always starts clean.

    I believe that’s already the expected behavior for most users.

    Do you have this setting on?

    Image

    I believe it wasn't the default for a long time. I vaguely recall plans to make it the default, but dunno if we actually did that

  22. added
    In-PR
    on Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-RemotingIn-PRIssue-FeatureProduct-Terminal

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions