Shortcut that focus particular program

Please post all general support questions for LXDE here.
Locked
nesro
Posts: 6
Joined: Fri Dec 06, 2013 9:56 pm

Shortcut that focus particular program

Post by nesro »

Hi LXDE Forum!

Finding the right window with Alt-(Ctrl)-Tab is slow. Is there any way how to do a keyboard shortcut that brings me (for example) right into the Chromium window?

Is there a command that will focus a window of particular name? For example:

Code: Select all

$ lxfocus chromium
will switch focused window to chromium.

Thanks in advance,
nesro
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: Shortcut that focus particular program

Post by seppalta »

Holding middle key down brings up all open windows and all desktops. Then sliding the pointer to a window and releasing the middle key will put that window on top.
nesro
Posts: 6
Joined: Fri Dec 06, 2013 9:56 pm

Re: Shortcut that focus particular program

Post by nesro »

seppalta wrote:Holding middle key down brings up all open windows and all desktops. Then sliding the pointer to a window and releasing the middle key will put that window on top.
Hi seppalta, thanks for reply!

I have Archlinux with the default LXDE settings. This trick do not work me (with usb mouse). What is the configuration to do that? Also, I'm using a trackpoint and when I'm holding the middle button, my mouse cannot move, because I'm in the "scrolling" mode.

EDIT: Ah! I found that it works when I middle click on the destkop. But I use only maximized windows, so I cannot do that when I'm in a window. Also, it requires mouse... And it's in the same principle, it's slow :(
drooly
Posts: 791
Joined: Mon Apr 08, 2013 6:45 am

Re: Shortcut that focus particular program

Post by drooly »

openbox is lxde's window manager and it is highly confgurable through its rc.xml file.
everything you requested can be achieved by modifying keybinds.
please check out http://openbox.org/wiki/Help:Configuration
flaneur
Posts: 4
Joined: Mon Nov 17, 2014 1:25 am

Re: Shortcut that focus particular program

Post by flaneur »

nesro wrote:Hi LXDE Forum!

Finding the right window with Alt-(Ctrl)-Tab is slow. Is there any way how to do a keyboard shortcut that brings me (for example) right into the Chromium window?

Is there a command that will focus a window of particular name? For example:

Code: Select all

$ lxfocus chromium
will switch focused window to chromium.

Thanks in advance,
nesro
If you use only one Chromium window, it's possible. If you like multiple windows for the same program the following won't useful:
http://askubuntu.com/questions/507093/f ... buntu-lxde

Another way was provided here: http://ubuntuforums.org/showthread.php? ... st12814007
Locked