<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFCC" text="#333333">
    <div class="moz-cite-prefix">On 26/09/16 06:23, Mikael Magnusson
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAHYJk3Q8bDjgBJpwumULfSDmZgsC0+sT__FP5Pz=PrMbuUDN4w@mail.gmail.com"
      type="cite">
      <pre wrap="">On Sun, Sep 25, 2016 at 8:02 PM, Łukasz Grabowski <a class="moz-txt-link-rfc2396E" href="mailto:graboluk@gmail.com"><graboluk@gmail.com></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">On Sun, 25 Sep 2016 08:27:28 -0700
Ian Zimmerman <a class="moz-txt-link-rfc2396E" href="mailto:itz@primate.net"><itz@primate.net></a> wrote:

</pre>
        <blockquote type="cite">
          <pre wrap="">On 2016-09-23 12:14, Łukasz Grabowski wrote:

</pre>
          <blockquote type="cite">
            <pre wrap="">The better solution would allow to do the following: let's say I'm
in desktop 2. Then I press C-A-s and I see firefox window on
dekstop 1, then if I press C-A-s again then I should go back to
desktop 2.
</pre>
          </blockquote>
          <pre wrap="">
I learned to do all window switching in two ways: with the Windows
menu, or with the directional focus keybindings.  This almost always
gets me to the target window in 3 keystrokes, in a few cases I may
need 4.
</pre>
        </blockquote>
        <pre wrap="">
Good it works for you but for my use cases this is just not quick
enough (say I work in a latex editor, I want to very quickly switch to
firefox to look up an obscure amstex environment syntax, then go back).
When there are just two windows and both are on the same desktop then
the standard alt+tab is obviously quick enough, but usually I'd have at
least 3 windows (say pdf viewer with a compiled pdf) and then having a
chord for switching to firefox is the way to go imo.
</pre>
      </blockquote>
      <pre wrap="">
If you keep firefox on another virtual desktop, then using the go to
desktop action with a specific number is very easy, or the one that
goes to the last visited desktop.

</pre>
    </blockquote>
    <p>+1 for a simple solution that is pretty close to op's
      requirements, requires minimal habit changing and Just Works with
      Openbox.</p>
    <p>One problem remains though: using the same keybind to <b>switch
        back </b>to where one came from.<br>
    </p>
    <p>Lukasz: I am pretty sure that your particular scenario would
      require a script, in other words openbox cannot do it as such.</p>
    <p>but then i'm also not so familiar with all openbox's (newer)
      features; which brings up an important question: which openbox
      version are you using?</p>
    <p>also it would be nice to see how you achieve what you have atm!<br>
    </p>
  </body>
</html>