LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Auto maximize a program (http://www.linuxquestions.org/questions/linux-desktop-74/auto-maximize-a-program-4175498042/)

ThomasRonshof 03-13-2014 09:22 AM

Auto maximize a program
 
Hi,

After login on a Gnome desktop, I start a putty session.

How can i tell the windowmanager to maximize it automatically?

In Windows one can set it up in properties for the icon.

But how in Gnome ?

Maybe there is a way to send the keyboard shortcut <ALT>+<F10>, which is "toggle maximization state" ? From a shell og C-program.. ?

Regards

pan64 03-13-2014 09:51 AM

I do not really understand. putty runs on windows, so you need to set that property.

ThomasRonshof 03-13-2014 09:53 AM

No, I run putty on Gnome ;-) NOT Windows !

pan64 03-13-2014 10:06 AM

hm I do not think putty exists on unix at all, can you please specify what have you started exactly?

ThomasRonshof 03-13-2014 11:09 AM

Of-course it does, I've compiled the sources myself.... works fine. But this is not a putty issue.

How can i tell the windowmanager to maximize a program it automatically after startup?

In Windows one can set it up in properties for the icon.

But how in Gnome ?

Maybe there is a way to send the keyboard shortcut <ALT>+<F10>, which is "toggle maximization state" ? From a shell og C-program.. ?

;-)

pan64 03-14-2014 03:16 AM

if you have a shortcut or similar, there will be a property somewhere, and you will find the real command executed. You need to add -maximize, --maximize, --maximized or something similar to start that given app maximized. But actually I have no idea how putty (compiled by you) was created and what kind of flags it has.

here you can find some additional tips:
http://superuser.com/questions/49446...minal-on-linux

evo2 03-14-2014 03:25 AM

Hi,
Quote:

Originally Posted by pan64 (Post 5134296)
But actually I have no idea how putty (compiled by you) was created and what kind of flags it has.

It's packaged in many distributions, including yours:

http://packages.ubuntu.com/search?ke...cy&section=all

Why anyone would want to use it is separate question.

From the man page (on Debian) it takes a "-geometry" flag. Alternatively you can configure your window manger... (not sure under gnome), or use something like wmctrl.

Evo2.

ThomasRonshof 03-14-2014 03:49 AM

THANK YOU BOTH !

wmctrl is the solution :-)))


All times are GMT -5. The time now is 05:19 PM.