I want Firefox window to be opened in a specific size, and location on screen using a shell command, for example:
firefox myfile.html size 800x600 location bottom-left
Is there such a command?
Best Regards
|
|
As far as I know, this is not possible as Firefox does not accept commands to control the window. That's also (mostly) the responsibility of the window manager, so I doubt that there ever will be parameters to do that. However, you can control the window with wmctrl, but that's going to be a little bit difficult:
There might be more clever ways to do it, and there are some interoperability issues with Firefox (f.e. implies that no other instance is running) but it should get you going. |
|||
|
|
|
I don't think this is possible by shell commands only, cause it has nothing to do with your windowmanager. |
|||
|
|
|
In the past I have created an HTML document that would set the window size with Javascript then redirect to the page I wanted. It's a stupid hack but, hey, it works. |
|||
|
|