Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have certain windows (for example, Empathy) that I want to be automatically roll up (or shade) upon being unfocused and to roll down (or un-shade) when focused. I can manually roll the windows up and when focus returns, they roll down. However, when they lose focus again, they do not roll back up.

Is there a way to enable this behavior?

I know that I can execute the following command to shade the active window, but I don't know how to cause such a command to trigger on unfocus.

wmctrl -r :ACTIVE: -b "add,shaded"

Switching to a different window manager, such as Compiz, is an option if it is capable of providing such behavior and interacting with XFCE. I'm currently using XFCE 4.10 with XFWM4.

share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.