Skip to content
Discussion options

You must be logged in to vote

For the record, now I use the following:

function _dsp_law(layout, dsp)
  --- Layout aware dispatcher. Thanks to vaxerski.
  return function()
    local ws = hl.get_active_workspace()
    if ws == nil then return end
    if ws.tiled_layout == layout then return hl.dispatch(hl.dsp.layout(dsp)) end
  end
end
-- For both monocle and scrolling layouts.
hl.bind(_kb(mod, "right"),
  function()
    local ws = hl.get_active_workspace()
    if ws.tiled_layout == "monocle" then
      hl.dispatch(hl.dsp.layout("cyclenext"))
    end
    if ws.tiled_layout == "scrolling" then
      hl.dispatch(hl.dsp.layout("move +col"))
    end
  end,
  { description = "Move focus to next window (monocle/scrolling la…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@vaxerski
Comment options

@vaxerski
Comment options

@vp1981
Comment options

@vp1981
Comment options

Answer selected by vp1981
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants