2

Can I force Ubuntu 22.04 to open all applications in the maximized state?

I'm using these apps:

  1. Terminal
  2. Files
  3. VS Code
  4. Text Editor
  5. Chrome

And right now, I should maximize each of them after opening, which is inefficient.

I already saw these questions and none solved my problem:

Howto force all Windows to open not Maximized
How can I open gthumb maximized?
Open windows maximized!
How to auto un-maximize all windows for all applications?

I would be happy to even have a script running all the time, listening for application opening events and maximizing them automatically.

Or better approach is to somehow tell Ubuntu's window manager to maximize each new window forcefully.

1 Answers1

3

There is little control on most linux desktops on the size and placement of new windows, and it gets worse with Wayland.

On Xorg, there are the old tools devilspie and devilspie2 that still do a marvelous job at resizing and positioning windows that meet your criteria the way you want.

For example, in devilspie2, this single rule would do the job of maximizing any normal window, but not dialogs or application widgets:

if (get_window_type() == "WINDOW_TYPE_NORMAL" and not string.match(get_window_property("_NET_WM_STATE"),"_NET_WM_STATE_SKIP_PAGER") ) then
    maximize();
end
vanadium
  • 97,564