Launch Google Chrome from the command line with specific window coordinates

后端 未结 5 657
悲&欢浪女
悲&欢浪女 2020-12-02 15:56

I\'m trying to find a shell command that will open Google Chrome with specific x and y coordinates (so that I can set the position of the window when it opens.) Is it possib

5条回答
  •  失恋的感觉
    2020-12-02 16:47

    I've used this:

    google-chrome "data:text/html;charset=ISO-8859-1,
        "
    

    but google-chrome block popup windows, so this:

    google-chrome "data:text/html;charset=ISO-8859-1,
        "
    

    give a nice way to do this.

    Nota: This work as well with firefox too.

提交回复
热议问题