gedit command line switches

Asked by gary kuehn

Are there any command line switches for gedit that allow specifying the application window position & size at startup?
The idea is that a script would open a series of apps for a particular development session such as terminal, firefox and gedit and position & size them. I was looking for a comman line switch since different windows might use different placements.

Thanks
Gary

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Vojtěch Trefný
Solved:
Last query:
Last reply:
Revision history for this message
Best Vojtěch Trefný (vojtech.trefny) said :
#1

No, there aren't...

You can try to use Devils Pie - http://burtonini.com/blog/computers/devilspie

Revision history for this message
gary kuehn (gj-kuehn) said :
#2

Thanks. Before trying Devils Pie I just tried wmctrl. I noticed that the X,Y figures returned with the -lG switch must be divided by 2 when I add them to a script. I am assuming that the issue lies with how my horizontal virtual size of 2 operates with Compiz. Even taking this into account the positioning still isn't exact. The vertical direction seems more problematic than the horizontal. The height and width are perfect.

I'll raise this issue separately

Gary

Revision history for this message
gary kuehn (gj-kuehn) said :
#3

Thanks Vojtěch Trefný, that solved my question.