Here is how to open Chrome with a specified window size from the command line on a Mac.
This method is useful when launching web applications or notes from a launcher.
open -na "Google Chrome" --args --new-window --app="data:text/html,<html><body><script>window.moveTo(0,0);window.resizeTo(500,800);window.location='https://www.example.com';</script></body></html>"
bash - Launch Google Chrome from the command line with specific window coordinates - Stack Overflow
Comments