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

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.


# 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

I believe that this is not natively supported by Guake (i.e. it's not something you can put on the command line as an argument).

If I had to achieve what you want I would most probably try to use expect. In the words of wikipedia:

Expect has regular expression pattern matching and general program capabilities, allowing simple scripts to intelligently control programs such as telnet, ftp, and ssh, all of which lack a programming language, macros, or any other program mechanism. The result is that Expect scripts provide old tools with significant new power and flexibility.

share|improve this answer

Your Answer


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.