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?

link|improve this question

74% accept rate
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.