Re: Scripting window position

2018-05-13 Thread Nandakumar Edamana via gnome-list
On 05/13/2018 06:39 PM, rcampos.de...@gmail.com wrote:
> Hello,
>
> Is it possible to modify a window's position from an external program
> such as a python script?
>
> For example, I would like a script to move my current Firefox window to
> the left bottom corner of the Desktop and have a size of 400x400.
Have a look at this:
https://unix.stackexchange.com/questions/5999/setting-the-window-dimensions-of-a-running-application
>
> I'm not sure if this is going in the right direction, but I found the
> GTK library has functions to get and set window positions, but I'm not
> sure how to specify the particular window instance, such as the Firefoxwindow 
> in the example above.  
>
> Any help would be greatly appreciated.
>
> -Renan C.
> ___
> gnome-list mailing list
> gnome-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-list

___
gnome-list mailing list
gnome-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-list


Re: Scripting window position

2018-05-13 Thread heapifyman heapifyman
Maybe devilspie2 could help: http://www.nongnu.org/devilspie2/
It allows you to position and resize application windows as they are created.


> Am 13.05.2018 um 15:09 schrieb rcampos.de...@gmail.com:
> 
> Hello,
> 
> Is it possible to modify a window's position from an external program
> such as a python script?
> 
> For example, I would like a script to move my current Firefox window to
> the left bottom corner of the Desktop and have a size of 400x400.
> 
> I'm not sure if this is going in the right direction, but I found the
> GTK library has functions to get and set window positions, but I'm not
> sure how to specify the particular window instance, such as the Firefoxwindow 
> in the example above.
> 
> Any help would be greatly appreciated.
> 
> -Renan C.
> ___
> gnome-list mailing list
> gnome-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-list



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
gnome-list mailing list
gnome-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-list