4

I'm looking for a devilspie2 alternative that can handle more window events, like "on resize". Right now there's only open and close window events.

For example, I would like to undecorate a window only if it's maximized.

if (get_application_name() == "myapp") then
    if (get_window_is_maximized() == true) then
        undecorate_window()
    else
        decorate_window()
    end
end
fossfreedom
  • 174,526
hmm
  • 41

1 Answers1

1

An alternative

Given that your example to to undecorate the window when maximized but redecorate when it is not maximized, in this answer I've taken the liberty to promote "maximus"

Tested on xubuntu 14.04, by installing maximum via:

sudo apt-get install maximus

All subsequent windows that you open are automatically undecorated, but after unmaximizing, they are redecorated.

During my testing, this constant automatic maximizing was annoying. Thus to fix the automatic maximization issue use this option:

gconftool -s /apps/maximus/no_maximize true -t bool

Lets show this in action when using both maximus and the gconftool tweak:

enter image description here

I like keyboard shortcuts - so a quick tip - to toggle between maximized windows and not maximised, remember the shortcut Alt+F10

fossfreedom
  • 174,526