Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Set window Always On Top is very useful.
How to visually indicate whether a window is Always On Top?

For example, add a icon like:


at the top right corner. Or change the color of the border...

share|improve this question
up vote 1 down vote accepted

Well I'm partially there. If you go into CompizConfig and enable commands, you can set one of the commands to something that will modify the window appearance. Then you can set the key binding for it to the same binding you use to toggle Always On Top. I just don't know how to make it change the appearance of the window. I was trying wmctrl -r :ACTIVE -b toggle,shaded which I thought would toggle a shadow, but it hides/unhides the window. Not really what I was going for. Keep in mind you have to install the wmctrl package for that to work.

I don't know of any readily supported ways to modify the appearance a single window. I looked into using gtk-window-decorator, but it only appears to let you reload the settings for all of the windows. Maybe somebody else can chime in and complete this answer, but I personally can't figure a way out!

share|improve this answer

Your Answer


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.