PDA

View Full Version : [ubuntu] Shortcut for focusing on a specific application window



danielaharon
March 13th, 2009, 07:38 PM
Hi,

Is there a way to define a shortcut for specific application windows?

Here's the scenario: I usually work with the same set of applications: Eclipse, Firefox, gedit, terminal, etc. and I'd like to use keyboard shortcuts to quickly switch to any of them (e.g., use Mod4+E to switch to the existing Eclipse window or Alt+F to switch to the existing Firefox window). I know I can use gconf-editor to launch a new instance of applications but that's not what I need. I need to just bring a specific existing window to focus.

Thanks in advance!
Daniel

danielaharon
March 15th, 2009, 12:05 AM
Assuming from the lack of response that there is no "built-in" way to accomplish what I described below, are there other tools/packages that provide such functionality?

Thanks,
Daniel

zhocchao
March 15th, 2009, 12:31 AM
u can use wmctrl.

wmctrl -a "Firefox"

xbindkeys for the shortcuts

danielaharon
March 15th, 2009, 03:50 AM
Awesome!

Many thanks,
Daniel

shinyblue
January 5th, 2011, 11:45 PM
:guitar: you rock! wmctrl EXACTLY what is missing from compiz...

wmctrl -a firefox || firefox &