1

In IceWM I can tell XTerm windows to have no title bar and be truly maximized in ~/.icewm/winoptions:

xterm.XTerm.dTitleBar: 0
xterm.XTerm.startMaximized: 1

With "truly maximized" I mean, that the

XTerm*maximize: true

-Option in .Xresources doesn't really maximize the window in terms of window managers, but expands a minimized window to desktop width.

The question is: Can I have the IceWM behaviour in Metacity as well? Any XTerm (and only XTerm) being on startup

  • maximized, and
  • without title bar

Compiz can be tricked to do that with the ccsm. But as long as this bug isn't fixed, I'm stuck to Metacity.

I just read about Devil's Pie. Can it be done without it? I don't want necessarily to run the devilspie server only for that.

wonea
  • 1,877
Boldewyn
  • 4,468

1 Answers1

2

Nope, pretty sure you have to use Devilspie.

Something like this should do it:

(if
    (is (window_class) "Terminal")
    (begin (undecorate) (maximize)))

You could even go one step further and maximize all windows using this rule:

(if
    (is (window_property "_NET_WM_WINDOW_TYPE") "_NET_WM_WINDOW_TYPE_NORMAL")
    (begin (undecorate) (maximize)))

If you don't want to use Devilspie, you could replace Metacity with Openbox, which supports the feature you want.

Just put

<applications>
<application class="Gnome-terminal">
  <maximized>true</maximized>
  <decor>no</decor>
</application>
<application class="Terminal">
  <maximized>true</maximized>
  <decor>no</decor>
</application>
</applications>

in the middle of your ~/.config/openbox/rc.xml.

Or you could try wmctrl instead of Devilspie.

Mikel
  • 9,184