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.

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
1  
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
1  
may it help :askubuntu.com/questions/7377/… –  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

1 Answer 1

up vote 4 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
1  
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

 
discard

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.