-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make cmder auto start with windows and auto minimize to the status bar. #532
Comments
You can copy the cmder shortcut to your Windows startup folder. On Windows 8 that would be: |
@glucas How to make it auto minimize to TSA? |
Open the ConEmu Settings dialog (e.g. Win + Alt + P) and look for: Main - Task Bar - Auto minimize to TSA Also you can edit the properties for your cmder shortcut and change the Run: option to start minimized. --EDIT-- Actually, changing the shortcut to run minimized doesn't seem to work. The ConEmu settings has Main - Size & Pos settings to let you position the window, but I don't see an option to start minimized. ConEmu does support a command-line option to start minimized, but I don't see any way to pass that via Cmder. |
A workaround to run cmder minimized. Create a Cmder.bat in your root cmder folder, based on this: https://github.com/bliker/cmder/blob/master/Cmder.bat Add /MIN to the arguments passed to ConEmu: start %~dp0/vendor/conemu-maximus5/ConEmu.exe /MIN /Icon ..... Then create a shortcut to your bat file and drop it in your startup folder. One downside of this approach is there is a cmd.exe window that flashes briefly when the script runs, but it does provide the behavior you want when combined with the 'Auto minimize to TSA' setting. A potentially useful enhancement to Cmder would be to support a /MIN argument that gets passed through to ConEmu. |
once you have your bat you can create a vbs script that will run it without a window: Dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run "cmd /c cmder_start.bat", 0, True
Set objShell = Nothing So no downsides now :) |
Personally, I feel the best non-invasive way to achieve this is using the built-in Windows Task Scheduler. It provides a very easy to use interface to set up startup tasks, with customized parameters. |
Perfect fix for this issue is a combination of glucas and babhishek21's answers, for my purposes. You see ConEmus icon flash up very briefly in the taskbar, but there are no other signs that it's started until you hit your hotkey. I did exactly this in Task Scheduler (of course your paths may be different, my cmder root was C:\tools\cmder):
|
One addition, since I just stumbled over this: To start minimized with @kylemd's solution in #532 (comment), make sure to enable the option "Auto-hide on focus lose" on the Quake style page. |
Let me summarize what you're talking about and it work perfectly.
well, it's over~ |
apparently you can do it right from the settings and don't need any bs workarounds... the only thing that bugs me is that at system startup it opens up to an empty window and you have to manually open a shell you like with CTRL + T or from the menu... I would like for it to auto open a bash window... |
I just found out you can also just edit the shortcut and add |
***** "Laragon Cmder /or ConEmu Automation in Startup Guide" ***** Steps:
***** "To Start Cmder /or ConEmu minimize to TSA" *****
Done! "To add script in batch file and Execute NPM command"
Done! This will work like a charm :) |
I'm using quake style slide down feature and find it very ergonomic. It will be convenient that cmder auto start and let me call it out by ctrl + `.
The text was updated successfully, but these errors were encountered: