Ubuntu – get an always-on-top button in windows’ titlebar (alongside with minimize/maximize/close buttons)

metacitywindow-buttons

I use to use always-on-top windows frequently and make them such by setting the option in windows' right click menu. Can I get this option closer, right in windows' titlebar alongside with minimize/maximize/close buttons?

Best Answer

You can add such a button to your titlebar, however there is a very strong limitation on it. The issue is that the theme you are using must have an image for it.

In gconf-editor (Alt+F2 and enter gconf-editor), go to /apps/metacity/general and add the value above where ever you like it. eg:

menu:above,minimize,maximize,close

Now you'll probably not see a whole lot of change, since according to this blog post from the metacity developers only a few themes support it. An example of such a theme would be Crux.

Adding that button to the theme yourself will, at first glance, require you to delve into your theme's settings; more precisely its metacity-1 folder. It looks like there you would be have to edit the xml file as well as dropping some image files in the folder.