You are not logged in.
Pages: 1
I've searched both generally and here for a solution, but haven't found one.
I'm running Waldorf on a laptop. Often it's connected to a 23" LCD. At startup, if the LCD is connected, I run a script which just calls xrandr to extend the desktop onto the LCD. That works fine.
While I'm working, I'll have a browser open, a terminal, emacs, and other windows, particularly evince. Often I want to switch directly back to emacs. Using Alt-Tab is unreliable as the position of emacs in the cycle is not constant. The mouse is OK, but the 23" panel has a higher resolution, so the mouse gets "stuck" when moving it back to the laptop panel (where emacs) if it is too low down on the screen, and I'd like to avoid clicking back into emacs.
Is there an OpenBox command I can bind to switch the focus back to emacs?
Last edited by SabreWolfy (2012-10-02 20:47:56)
• Support #! • Waldorf • Debian sid • Xubuntu • siduction • Peppermint • OpenBox • Xfce • LXDE •
Offline
More searching led me here, where this was suggested (for firefox, but I've changed it of course):
wmctrl -xa emacsThis works pretty well 
• Support #! • Waldorf • Debian sid • Xubuntu • siduction • Peppermint • OpenBox • Xfce • LXDE •
Offline
Ok, this is awesome 
W-A-e now launches emacs
W-A-t now launches terminator
W-A-w now launches browser
because
W-e switches to emacs
W-t switches to terminator
W-w switches to browser
so I can quickly and easily get back to each of them no matter where they are buried.
I guess the ol' gurus here are sniggering at this, having known stuff like this for ages, but hey, I think it's pure awesomeness 
Last edited by SabreWolfy (2012-10-02 21:07:04)
• Support #! • Waldorf • Debian sid • Xubuntu • siduction • Peppermint • OpenBox • Xfce • LXDE •
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.