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
share|improve this question

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

share|improve this answer
1  
nice! one little problem, windows are starting maximized (like I want) and I have to toggle (the maximized status) so maximus remove the decorations.. any idea why? – braindamage Apr 26 '14 at 18:56
1  
Thunar and xfce4-terminal works just fine but Firefox, Transmission and a few others aren't gettting undecorated (but are starting maximized). Firefox unmaximized => quit => next time I open it will work. Now I restart Firefox, it doesn't get undecorated, only maximized. – braindamage Apr 26 '14 at 20:44
1  
ok - looks like this answer is only applicable with the gconf toggle - you need to start the application window first before maximising. This looks like a bug in maximus. You've got 6 days - hopefully someone will post another answer that works with your "start maximized" scenario. – fossfreedom Apr 26 '14 at 20:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.