Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

This question already has an answer here:

I'm dreaming of a Bash script that opens applications and places them in certain workspaces.

For example, I'd like to run a script that:

  • In Workspace 1 opens firefox
  • WS2 - opens term and maximizes it
  • WS3 - opens Sublime Text2 and maximizes it
  • WS4 - opens Pidgin, gpodder, and banshee

Is such a script possible in Ubuntu 13.04 running Cinnamon?

share|improve this question

marked as duplicate by Shekhar, Dave M, Tog, Scott, mpy Sep 10 '13 at 12:59

This question was marked as an exact duplicate of an existing question.

What OS and window manager? – ernie Sep 6 '13 at 22:24
Just added to post. Cinnamon on Ubuntu 13.04 – Richard Sep 7 '13 at 0:38

Yes, devilspie or wmctrl would do something close to what I'm asking. Link Ubuntu/ Gnome : Open an application in a specific workspace – wingedsubmariner left in the commets by @wingedsubmariner led me to these two utilities.

Essentially to answer the question -- once programs have been opened...

wmctrl -r mozilla -t 0 wmctrl -r mozilla -t 1

share|improve this answer

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