# Can't Cycle Layouts After Recent Update(v0.57.0)

**URL:** <http://forum.hypr.land/t/cant-cycle-layouts-after-recent-update-v0-57-0/2177>\
**Category:** Bugs / FRs / Support\
**Tags:** help, hyprland, bug, config, other\
**Created:** [October 30, 2026, 5:03pm UTC](http://forum.hypr.land/t/cant-cycle-layouts-after-recent-update-v0-57-0/2177 "2026-10-30T17:03:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![beyondclarity](http://forum.hypr.land/letter_avatar_proxy/v4/letter/b/4491bb/32.png) [@beyondclarity](http://forum.hypr.land/u/beyondclarity)\
**Post date:** [October 30, 2026, 5:03pm UTC](http://forum.hypr.land/t/cant-cycle-layouts-after-recent-update-v0-57-0/2177/1 "2026-10-30T17:03:15Z")

</div>

After the recently released update, i find myself unable to cycle between different layouts.  
I used this code snippet which i found on the hyprland wiki. It worked, until recently after i updated hyprland, now it doesn’t work anymore.

```lua
--Cycle Between The Two Main Layouts I Use(master & monocle)
hl.bind(mainMod .. "+ F", function ()
    local layouts = {"master", "monocle"}
    local workspace = hl.get_active_workspace()
    if hl.get_active_special_workspace() then
        workspace = hl.get_active_special_workspace()
    end

    local next_layout = "master"

    if not workspace then
        return
    end

    for i = 1, #layouts do
        if layouts[i] == workspace.tiled_layout then
            local next_layout_idx = (i % #layouts) + 1
            next_layout = layouts[next_layout_idx]
            break
        end
    end

    if workspace.special then
        hl.workspace_rule({ workspace = tostring(workspace.name), layout = next_layout })
    else
        hl.workspace_rule({ workspace = "name:" .. tostring(workspace.name), layout = next_layout })
    end
end)

```

---

<div class="post-metadata">

**Author:** ![iiiz](http://forum.hypr.land/user_avatar/forum.hypr.land/iiiz/32/1234_2.png) [@iiiz](http://forum.hypr.land/u/iiiz)\
**Post date:** [November 3, 2026, 3:01am UTC](http://forum.hypr.land/t/cant-cycle-layouts-after-recent-update-v0-57-0/2177/2 "2026-11-03T03:01:01Z")

</div>

I’ve used a simple bash script for this kind of thing for a while. This should work on 0.57.0.

```auto
#!/bin/bash

ACTIVE=$(hyprctl activeworkspace)
WS_ADDR=$(echo "$ACTIVE" | grep "workspace" | cut -d " " -f 2)
NEXT_LAYOUT=$(echo "$ACTIVE" | grep -q 'monocle' && echo 'master' || echo 'monocle')

hyprctl eval "hl.workspace_rule({ workspace = \"$WS_ADDR\", layout = \"$NEXT_LAYOUT\" })"

```

```auto
-- hyprland.lua
hl.bind(mainMod .. " + F", hl.dsp.exec_cmd("~/.scripts/swap-layout"))

```

Coincidentally, I’ve been working on a named workspace manager and just wrote a feature for layout selection and toggling today because I had to update this script for 0.57 as well. The feature is still in a draft PR but should be ready soon.

If it’s of interest to you, here it is:

> **[GitHub - iiiz/hyprdyn: hyprland dynamic named workspace utility](https://github.com/iiiz/hyprdyn)**
>
> hyprland dynamic named workspace utility

---

<div class="post-metadata">

**Author:** ![chasquido](http://forum.hypr.land/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@chasquido](http://forum.hypr.land/u/chasquido)\
**Post date:** [November 10, 2026, 6:45pm UTC](http://forum.hypr.land/t/cant-cycle-layouts-after-recent-update-v0-57-0/2177/3 "2026-11-10T18:45:08Z")

</div>

I’m new to Hyprland, and coming from MangoWM this was one of the first things I tried.

After fiddling around I found it works if you remove the ‘name:’ prefix, after which the if-else block is redundant.

```lua
hl.bind(mainMod .. " + F", function()
  // ...
  for i = 1, #layouts do
    // ...
  end

  hl.workspace_rule({ workspace = tostring(workspace.name), layout = next_layout })
end)

```

EDIT: removed whitespace
