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

The question says it all really, is there a command that emulates Always On Top that you get by right clicking on window borders?

share|improve this question
How would you use it exactly? Always On Top is a feature specifically for the GUI (windows).. – Karthik T Dec 27 '12 at 2:55
may it help… – yuan Dec 27 '12 at 2:59
@KarthikT when the gnome-terminal starts it will execute that command on itself. - or its window even – Logan Dec 27 '12 at 3:09
@ZhangYuan Thanks for the link, I already checked that out earlier... Maybe this question has no answer- better off with compiz solution I guess. – Logan Dec 27 '12 at 3:10
up vote 5 down vote accepted
  1. Install wmctrl
  2. Open a terminal and type wmctrl -l. You will see a list of windows and processes.
  3. Type wmctrl -i -r 0x01c00267 -b add,above. Replace 0x01c00267 with the window number you want to be on top.
share|improve this answer
Instead of using -i for window id, we can also use a string that would match the title of the window wmctrl -r erminal -b toggle,fullscreen Instead of "Terminal", or user@host.... we can use a partial string (I used "erminal" in the example) and wmctrl would try to match it. The first one it matches becomes the subject. – Logan Dec 27 '12 at 3:43

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.