Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

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.