Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Chromium's window size via terminal?

I start a chromium windows via

chromium --new-window http://google.com

How to force it to open with given dimensions, such as width 800px, heigh 600px ?


I did try chromium-browser --new-window --window-size=300,500, chromium-browser http://google.com --new-window --app-shell-host-window-size=400x400 --ash-host-window-bounds=100+200-600x300 and variants without success.

like image 548
Hugolpz Avatar asked Mar 07 '16 16:03

Hugolpz


1 Answers

Try with:

chromium-browser --window-size=800,600 https://www.google.com

Also can set the property --window-position=0,0 for example, opens browser in the upper right corner.

like image 70
Jose Carlos Nieto Ramos Avatar answered Sep 24 '22 12:09

Jose Carlos Nieto Ramos