layout {
    cwd "/tmp"
    tab name="Tab #1" focus=true {
        pane size=1 borderless=true {
            plugin location="zellij:tab-bar"
        }
        pane split_direction="vertical" {
            pane cwd="/tmp" size="50%"
            pane size="50%" {
                pane cwd="/tmp" size="50%"
                pane cwd="/tmp" size="50%"
            }
        }
        pane size=2 borderless=true {
            plugin location="zellij:status-bar"
        }
        floating_panes {
            pane cwd="/tmp" {
                height 10
                width 58
                x 29
                y 6
            }
            pane command="top" cwd="/tmp" {
                focus true
                start_suspended true
                height 10
                width 58
                x 31
                y 8
            }
            pane cwd="/tmp" {
                height 10
                width 58
                x 33
                y 10
            }
        }
    }
    tab name="Tab #2" hide_floating_panes=true {
        pane size=1 borderless=true {
            plugin location="zellij:tab-bar"
        }
        pane cwd="/tmp" focus=true
        pane size=2 borderless=true {
            plugin location="zellij:status-bar"
        }
    }
    tab name="Tab #3" {
        pane size=1 borderless=true {
            plugin location="zellij:tab-bar"
        }
        pane cwd="/tmp"
        pane size=2 borderless=true {
            plugin location="zellij:status-bar"
        }
        floating_panes {
            pane cwd="/tmp" {
                height 10
                width 53
                x 2
                y 1
            }
            pane cwd="/tmp" {
                height 10
                width 53
                x 59
                y 1
            }
            pane command="vim" cwd="/tmp" {
                start_suspended true
                height 9
                width 53
                x 29
                y 11
            }
        }
    }
    tab name="Tab #4" hide_floating_panes=true {
        pane size=1 borderless=true {
            plugin location="zellij:tab-bar"
        }
        pane cwd="/tmp" focus=true
        pane size=2 borderless=true {
            plugin location="zellij:status-bar"
        }
    }
    new_tab_template {
        pane size=1 borderless=true {
            plugin location="zellij:tab-bar"
        }
        pane cwd="/tmp"
        pane size=2 borderless=true {
            plugin location="zellij:status-bar"
        }
    }
    swap_tiled_layout name="vertical" {
        tab max_panes=5 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane split_direction="vertical" {
                    pane
                    pane {
                        children
                    }
                }
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
        tab max_panes=8 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane split_direction="vertical" {
                    pane {
                        children
                    }
                    pane {
                        pane
                        pane
                        pane
                        pane
                    }
                }
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
        tab max_panes=12 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane split_direction="vertical" {
                    pane {
                        children
                    }
                    pane {
                        pane
                        pane
                        pane
                        pane
                    }
                    pane {
                        pane
                        pane
                        pane
                        pane
                    }
                }
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
    }
    swap_tiled_layout name="horizontal" {
        tab max_panes=5 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane
                pane
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
        tab max_panes=8 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane {
                    pane split_direction="vertical" {
                        children
                    }
                    pane split_direction="vertical" {
                        pane
                        pane
                        pane
                        pane
                    }
                }
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
        tab max_panes=12 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane {
                    pane split_direction="vertical" {
                        children
                    }
                    pane split_direction="vertical" {
                        pane
                        pane
                        pane
                        pane
                    }
                    pane split_direction="vertical" {
                        pane
                        pane
                        pane
                        pane
                    }
                }
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
    }
    swap_tiled_layout name="stacked" {
        tab min_panes=5 {
            pane size=1 borderless=true {
                plugin location="zellij:tab-bar"
            }
            pane {
                pane split_direction="vertical" {
                    pane
                    pane stacked=true {
                        children
                    }
                }
            }
            pane size=2 borderless=true {
                plugin location="zellij:status-bar"
            }
        }
    }
    swap_floating_layout name="staggered" {
        floating_panes 
    }
    swap_floating_layout name="enlarged" {
        floating_panes max_panes=10 {
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 1
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 2
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 3
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 4
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 5
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 6
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 7
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 8
            }
            pane cwd="/tmp" {
                height "90%"
                width "90%"
                x "5%"
                y 9
            }
            pane cwd="/tmp" focus=true {
                height "90%"
                width "90%"
                x 10
                y 10
            }
        }
    }
    swap_floating_layout name="spread" {
        floating_panes max_panes=1 {
            pane cwd="/tmp" {
                x "50%"
                y "50%"
            }
        }
        floating_panes max_panes=2 {
            pane cwd="/tmp" {
                width "45%"
                x "1%"
                y "25%"
            }
            pane cwd="/tmp" {
                width "45%"
                x "50%"
                y "25%"
            }
        }
        floating_panes max_panes=3 {
            pane cwd="/tmp" focus=true {
                height "45%"
                width "45%"
                y "55%"
            }
            pane cwd="/tmp" {
                width "45%"
                x "1%"
                y "1%"
            }
            pane cwd="/tmp" {
                width "45%"
                x "50%"
                y "1%"
            }
        }
        floating_panes max_panes=4 {
            pane cwd="/tmp" {
                height "45%"
                width "45%"
                x "1%"
                y "55%"
            }
            pane cwd="/tmp" focus=true {
                height "45%"
                width "45%"
                x "50%"
                y "55%"
            }
            pane cwd="/tmp" {
                height "45%"
                width "45%"
                x "1%"
                y "1%"
            }
            pane cwd="/tmp" {
                height "45%"
                width "45%"
                x "50%"
                y "1%"
            }
        }
    }
}
