Can I get an always-on-top button in windows' titlebar (alongside with minimize/maximize/close 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?
Solution 1:
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.
Solution 2:
You can map a key-binding for this. You can do that by hitting Alt+F2 (to get the run dialog) and running gconf-editor
. In gconf-editor, browse to /apps/metacity/window_keybindings
and set a key-binding for toggle_above
.
I'd expect this key-binding to be changable from System -> Preferences -> Keyboard shorcuts too, but either I'm blind or it's not there for some reason.