Constant zellij_utils::setup::DEFAULT_SWAP_LAYOUT

source ·
pub const DEFAULT_SWAP_LAYOUT: &[u8] = b"tab_template name=\"ui\" {\n   pane size=1 borderless=true {\n       plugin location=\"tab-bar\"\n   }\n   children\n   pane size=2 borderless=true {\n       plugin location=\"status-bar\"\n   }\n}\n\nswap_tiled_layout name=\"vertical\" {\n    ui max_panes=5 {\n        pane split_direction=\"vertical\" {\n            pane\n            pane { children; }\n        }\n    }\n    ui max_panes=8 {\n        pane split_direction=\"vertical\" {\n            pane { children; }\n            pane { pane; pane; pane; pane; }\n        }\n    }\n    ui max_panes=12 {\n        pane split_direction=\"vertical\" {\n            pane { children; }\n            pane { pane; pane; pane; pane; }\n            pane { pane; pane; pane; pane; }\n        }\n    }\n}\n\nswap_tiled_layout name=\"horizontal\" {\n    ui max_panes=5 {\n        pane\n        pane\n    }\n    ui max_panes=8 {\n        pane {\n            pane split_direction=\"vertical\" { children; }\n            pane split_direction=\"vertical\" { pane; pane; pane; pane; }\n        }\n    }\n    ui max_panes=12 {\n        pane {\n            pane split_direction=\"vertical\" { children; }\n            pane split_direction=\"vertical\" { pane; pane; pane; pane; }\n            pane split_direction=\"vertical\" { pane; pane; pane; pane; }\n        }\n    }\n}\n\nswap_tiled_layout name=\"stacked\" {\n    ui min_panes=5 {\n        pane split_direction=\"vertical\" {\n            pane\n            pane stacked=true { children; }\n        }\n    }\n}\n\nswap_floating_layout name=\"staggered\" {\n    floating_panes\n}\n\nswap_floating_layout name=\"enlarged\" {\n    floating_panes max_panes=10 {\n        pane { x \"5%\"; y 1; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 2; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 3; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 4; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 5; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 6; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 7; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 8; width \"90%\"; height \"90%\"; }\n        pane { x \"5%\"; y 9; width \"90%\"; height \"90%\"; }\n        pane focus=true { x 10; y 10; width \"90%\"; height \"90%\"; }\n    }\n}\n\nswap_floating_layout name=\"spread\" {\n    floating_panes max_panes=1 {\n        pane {y \"50%\"; x \"50%\"; }\n    }\n    floating_panes max_panes=2 {\n        pane { x \"1%\"; y \"25%\"; width \"45%\"; }\n        pane { x \"50%\"; y \"25%\"; width \"45%\"; }\n    }\n    floating_panes max_panes=3 {\n        pane focus=true { y \"55%\"; width \"45%\"; height \"45%\"; }\n        pane { x \"1%\"; y \"1%\"; width \"45%\"; }\n        pane { x \"50%\"; y \"1%\"; width \"45%\"; }\n    }\n    floating_panes max_panes=4 {\n        pane { x \"1%\"; y \"55%\"; width \"45%\"; height \"45%\"; }\n        pane focus=true { x \"50%\"; y \"55%\"; width \"45%\"; height \"45%\"; }\n        pane { x \"1%\"; y \"1%\"; width \"45%\"; height \"45%\"; }\n        pane { x \"50%\"; y \"1%\"; width \"45%\"; height \"45%\"; }\n    }\n}\n";