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

I am a webdeveloper and my current working tools are:

  • Terminal (ssh, tailing logs, grep, git, etc)
  • Eclipse (PDT, Javascript, etc)
  • Firefox (Developer Toolbar + Firebug)

The problem is that I hate using the eclipse navigation tree. For me it is a lot easier to go to the Terminal and do something like this:

$ eclipse /var/www/myproject/long/path/lib/Driver/Sql.php

The annoying part is that the eclipse window is not focused after this command.

I have to manually click on the eclipse window (using mouse... :@ grrr)

Anyway to force eclipse to be focused?

share|improve this question
up vote 1 down vote accepted

I found a solution: Bash command to focus a specific window

export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
wmctrl -a Eclipse #This will focus the eclipse window
share|improve this answer
Nice, thanks for finding that. – Gnoupi Apr 13 '12 at 9:54

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.