I recently started using a bash script to setup terminal workspaces for myself, and everything worked fine for the first couple of days. I run the script, and four or five or seven terminals pop up, all in precisely the right places on the screen, all cd'ed into the proper directories, ready for use.

This morning I installed conky, and the next time I tried to run my script, the oddest thing hapened. Now it will only open the first window. When I close that window, the second one opens. When I close that one, the third, and so on until the end of the script.

So now my script is useless except as a pasteboard for me to copy and paste into the terminal from.

Here is my script:


if [ $1 = "deploy" ]; then
    cd ~/
    gnome-terminal --geometry=185x41+0+0 --window-with-profile=Colquhoun

    cd ~/Utilities/Ad\ Tag\ Generators
    gnome-terminal --geometry=85x15+1312+0 --window-with-profile=Generator
    cd ~/Utilities
    gnome-terminal --geometry=85x28+1312+280 --window-with-profile=Deployer
    cd ~/Staging
    gnome-terminal --geometry=85x20+1312+730 --window-with-profile=Monitor

if [ $1 = "servers" ]; then
    cd ~/
    gnome-terminal --geometry=89x20+0+0 --window-with-profile=Colquhoun
    gnome-terminal --geometry=89x20+640+0 --window-with-profile=Colquhoun

    gnome-terminal --geometry=89x65+1280+0 --window-with-profile=Colquhoun

    gnome-terminal --geometry=89x20+0+360 --window-with-profile=Colquhoun
    gnome-terminal --geometry=89x20+640+360 --window-with-profile=Colquhoun

    gnome-terminal --geometry=89x20+0+700 --window-with-profile=Colquhoun
    gnome-terminal --geometry=89x20+640+700 --window-with-profile=Colquhoun

if [ $1 = "logchecks" ]; then
    cd ~/
    gnome-terminal --geometry=89x65+0+0 --window-with-profile=Colquhoun
    gnome-terminal --geometry=89x65+640+0 --window-with-profile=Colquhoun
    gnome-terminal --geometry=89x65+1280+0 --window-with-profile=Colquhoun

Does anyone know why this might be happening? And why it wasn't happening previously but is now?

  • 1
    If the script works when conky is not running, it probably has something to do with conky interacting with the root desktop: if so, paste your .conkyrc
    – jasonwryan
    Oct 10, 2013 at 3:33
  • 3
    by default gnome-terminal execute in background? I expected to see & at the end of every gnome-terminal line (may conky change this behavior in some way?)
    – Alex
    Oct 10, 2013 at 5:56

1 Answer 1


Append an & to the end of each gnome-terminal command to make sure each terminal starts in the background. If you haven't killed them sooner, the terminals will exit when conky exits and kills all child processes.

  • Thanks! I have since uninstalled Conky and the behaviour went back to normal. Is this a standard practice, running it in the background like this? And if so, why? Oct 12, 2013 at 9:15

You must log in to answer this question.

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