How to start Google Chrome with maximized window?
If I have already started Google Chrome, then start it again, the window is not maximized; I have to click to maximize it.
Are there any hidden parameters to set Google Chrome to always start in a maximized window? (not full screen - F11)
Solution 1:
Extending the solution said by Yab as follows:
Rename the first instance to something else e.g. wmctrl -r "New Tab - Google Chrome" -T "test"
Now maximize the second instance as:
wmctrl -r "New Tab - Google Chrome" -b add,maximized_vert,maximized_horz
These two commands will maximize the second instance of Google Chrome.
If you want, you can put this in a script to call the second instance.
Solution 2:
Google Chrome accepts the command-line parameter --start-maximized
, which will force Chrome to start in a maximized state.
Simply modify the shortcut you use to launch Chrome to include this flag, or simply alias chrome
to chrome --start-maximized
. I've tested this in both Chrome and Chromium under Windows and Linux, and it seems to work just fine.