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 to tell guake to start with e.g. 4 tabs, running cmus in tab 1, mc in tab 2, htop in tab 3 and showing up the prompt in tab 4?

share|improve this question
up vote 9 down vote accepted

Here's what I use to launch 4 tabs when I'm doing rails development.

guake --rename-tab="Rails Server" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && rails s" &
sleep 2 &&
guake --new-tab=2 --rename-tab="Rails Test" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && 'autotest'" &
sleep 2 &&
guake --new-tab=3 --rename-tab="Rails Console" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && rails console" &
sleep 2 &&
guake --new-tab=4 --rename-tab="Rails Terminal" --execute-command="cd ~/Aptana\ Studio\ 3\ Workspace/sample_app/ && clear" &

Works like a charm :)

share|improve this answer

It is quite possible, command line parameters support it.

#/bin/sh

# Just to be sure Guake is running.
# Guake handles multiple starting, won't create new instances
guake &

# Select first (0th) tab and rename it and execute something.
guake -s 0
sleep 1
guake -r "this-is-top"
sleep 1
guake -e top

sleep 1
# create a new tab in the ~ folder
guake -n ~
# rename the tab
guake -r "this-is-now-htop"
sleep 1
guake -e htop
sleep 1

guake -n ~
guake -n ~
guake -n ~

The 'sleep' is there for safe execution, without them strange things happened on my machine, feel free to experiment. The script ran well either guake was already running or not.

share|improve this answer

You must log in to answer this question.

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