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

Is it possible on Ubuntu to open, automatically size and layout multiple applications with a single command? Solution with no requirements of advanced system administration skills are gratefully appreciated, as I do not have the knowledge to do so.

share|improve this question
Can you explain what you mean by "automatically size and layout"? Do you mean sizing the windows uniformly (e.g. 4 applications; each taking up 1/4th of the display)? – iglvzx Nov 23 '11 at 23:32
Not exactly. For example, when i decide to work on some project, i need to open browser, developer console, terminal, code editor etc. Then size and place all this windows on my displays in most comfort way (not exactly uniform). Different kind of project requires another set of apps. So i want to automate this tasks to be able to get necessary environment any time i need to work on particular project. – Radagast Nov 24 '11 at 8:13

I use something like the following function in my ~/.bashrc file:

# doing this from memory, will fill in details when I can...
dev_project ()
  # ip/port of local machine for testing

  # change into the project's home directory
  cd projects/project

  # fire up an editor with a default file
  emacs &

  # a spare terminal for grepping etc.
  gnome-terminal &

  # open the browser
  chromium-browser http://$dev_url/ &

  # start the django dev server in this terminal and leave it running
  ./ runserver $dev_url

  # echo out a command that can be cut & pasted to 
  # restart the django server after a ctrl-c
  echo "./ runserver $dev_url"

Once this is defined, you can open a terminal and type dev_project and it will start everything up for you.

As for positioning the windows, there used to be compiz plugins that could do that, not sure what the gnome3/unity options are. You could also look into something like wmctrl.

share|improve this answer

You must log in to answer this question.

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