lcpz / lain

Awesome WM complements
GNU General Public License v2.0
1.05k stars 212 forks source link

Is there a way to just `quake:show()` instead of toggling? #541

Open lpanebr opened 1 year ago

lpanebr commented 1 year ago

Why?? I'd like to use something like quake:show() to always focus screen 3 with the app open on the tag 2.

Today I have the following on my key bind but have to do it twice if it's already open:

  awful.key({ modkey }, "d", function ()
    awful.screen.focus(3)
    local screen = awful.screen.focused()
    local tag = screen.tags[2]
    if tag then
      tag:view_only()
    end
    qDotFiles:toggle()
  end),

Or maybe someone has another solution?