Super User is a question and answer site for computer enthusiasts and power users. 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

In Ubuntu 10.04 running Gnome I can right click on any window and it gives me an option to show that window on all desktops, so even if I switch to a different virtual desktop, that window will always show. Is there a command in terminal that can do this?

share|improve this question
up vote 3 down vote accepted

Use wmctrl with -b add,sticky attribute. For example, to pin Firefox, do:

$ wmctrl -r firefox -b add,sticky

By default wmctrl treats passed strings as a substrings for case-insensitive match with target window captions; pass -F to let it do case-sensitive, exact comparsion, and use special values :ACTIVE: and :SELECT: to use active window or let user click on the target.

wmctrl may be installed with sudo aptitude install wmctrl.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .