You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modify lua.rc to only cycle over a subset of the available layouts with Mod+Space. Then assign a keybinding to a layout that is not in that subset. Example:
awful.layout.layouts = {
awful.layout.suit.tile,
awful.layout.suit.max,
}
-- Keys section
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
{description = "select next", group = "layout"}),
awful.key({ modkey, }, "s", function () awful.layout.set(awful.layout.suit.tile.bottom) end,
{description = "select previous", group = "layout"}),
Actual result:
Once you switch to the outsider layout with Mod+S, Mod+Space cycles over that layout too. If, on the other hand, you use awful.layout.inc( 1, nil, awful.layout.layouts) for Mod+Space, once you switch to the outsider layout with Mod+S, Mod+Space no longer cycles over any layout.
Expected result:
Mod+Space cycles over only layouts in awful.layout.layouts, always.
The text was updated successfully, but these errors were encountered:
This is an old behavior (> 3 years), so I wouldn't consider that as a bug, and I don't think any change should be applied. Maybe we can add a note about that in the documentation, tho?
So, I'm sorry to tell you that, but from my point of view, we shouldn't change any behavior. Instead, you have to adapt your code with the solution you proposed awful.layout.inc( 1, nil, awful.layout.layouts).
How to reproduce the issue:
Modify
lua.rc
to only cycle over a subset of the available layouts with Mod+Space. Then assign a keybinding to a layout that is not in that subset. Example:Actual result:
Once you switch to the outsider layout with Mod+S, Mod+Space cycles over that layout too. If, on the other hand, you use
awful.layout.inc( 1, nil, awful.layout.layouts)
for Mod+Space, once you switch to the outsider layout with Mod+S, Mod+Space no longer cycles over any layout.Expected result:
Mod+Space cycles over only layouts in
awful.layout.layouts
, always.The text was updated successfully, but these errors were encountered: