You are not logged in.

#1 2005-06-23 22:09:29

napoleon
Member
Registered: 2005-04-03
Posts: 176

How do i start a program with the window maximized

Hi, i have a couple of programs that i have created launchers for. The slight bother is i have to click on the maximize buttons for the programs to fully resize and fit the screen. Was wondring if there is a flag i can add to the command to ensure it starts with the window fully maximized. Thnx.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#2 2005-06-23 22:21:09

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: How do i start a program with the window maximized

What window manager are you using?

Dusty

Offline

#3 2005-06-23 22:38:14

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: How do i start a program with the window maximized

Gnome


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#4 2005-06-23 22:38:44

droog
Member
Registered: 2004-11-18
Posts: 877

Re: How do i start a program with the window maximized

You could try the -geometry flag and see if it works with the programs you are using, with a screen resolution of 1280x1024 just use
programname -geometry 1280x1024 you can also use + to make it appear in a certain spot. If that doesn't work with your programs you're using its up to the wm/de

Offline

#5 2005-06-23 22:56:16

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: How do i start a program with the window maximized

-geometry isn't working. Actually the programs in question are Blender3D and Audacity.


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#6 2005-06-23 23:13:22

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: How do i start a program with the window maximized

Yeah, I'm afraid you'll have to check the Gnome docs. I think in Fluxbox you can specify that type of behavior in one of its config files. Maybe you could replace the Gnome windowmanager (Metacity, I think) with Fluxbox. That way you'd still have the Gnome functionality together with Flux.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#7 2005-06-23 23:26:47

droog
Member
Registered: 2004-11-18
Posts: 877

Re: How do i start a program with the window maximized

for gnome metacity you have to install devils pie to be able to do this. http://www.burtonini.com/blog/computers/devilspie

Offline

#8 2005-06-23 23:52:09

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: How do i start a program with the window maximized

I have compiled and installed it now how do i use it?


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#9 2005-06-24 00:06:26

droog
Member
Registered: 2004-11-18
Posts: 877

Re: How do i start a program with the window maximized

you need to put something like this in your ~/.devilspie.xml

 
- <flurb>
- <matchers>
- <matcher name="DevilsPieMatcherWindowName">
  <property name="application_name" value="audacity" /> 
  </matcher>
  </matchers>
- <actions>
- <action name="DevilsPieActionSetGeometry">
  <property name="xoffset" value="0" /> 
  <property name="yoffset" value="0" /> 
  <property name="width" value="100" /> 
  <property name="height" value="100" /> 
  </action>
  </actions>
  </flurb>
  </devilspie>

Offline

#10 2005-06-24 05:22:49

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: How do i start a program with the window maximized

Pardon my ignorance but i have ammended my .devilspie.xml, do i have to run devilspile before it takes effect or thats it? I have rebooted but it still doesn't work yet. If i have to run devilspie, to have it work the how do i cause it to run aotomaticallly on startup? Should i run it as a daemeon using /etc/rc.conf?


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

#11 2005-06-24 05:41:14

droog
Member
Registered: 2004-11-18
Posts: 877

Re: How do i start a program with the window maximized

I dont use gnome but i from what i read you add devilspie to... Gnome Control Center / Gnome Session Properties / Startup Programs / Add

Offline

#12 2005-06-24 14:13:51

napoleon
Member
Registered: 2005-04-03
Posts: 176

Re: How do i start a program with the window maximized

Thanks droog, it all works fine now. thanx.  big_smile


A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"

Offline

Board footer

Powered by FluxBB