X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=etc%2Fcfg_layouts.lua;fp=etc%2Fcfg_layouts.lua;h=4299c7613427a6f70fa4a0ddf25c50c70b0a729a;hb=803afbc1cd633f6c025bcd9537e9b7e9aedadd0d;hp=0000000000000000000000000000000000000000;hpb=8366314611bf30a0f31d25bf5f5023186fa87692;p=ion3.git diff --git a/etc/cfg_layouts.lua b/etc/cfg_layouts.lua new file mode 100644 index 0000000..4299c76 --- /dev/null +++ b/etc/cfg_layouts.lua @@ -0,0 +1,55 @@ +-- +-- Layouts for Ion +-- + +local a_frame = { + type="WSplitRegion", + regparams = { + type = "WFrame", + frame_style = "frame-tiled" + } +} + + +local horizontally_split = { + -- Destroy workspace if the 'bottom' tiling is destroyed last + bottom_last_close = true, + -- Layout + managed = { + { + type = "WTiling", + bottom = true, + -- The default is a single 1:1 horizontal split + split_tree = { + type = "WSplitSplit", + dir = "horizontal", + tls = 1, + brs = 1, + tl = a_frame, + br = a_frame + } + -- For a single frame + --split_tree = nil + } + } +} + + +local full_tiled = { + -- Destroy workspace if the 'bottom' tiling is destroyed last + bottom_last_close = true, + -- Layout + managed = { + { + type = "WTiling", + bottom = true, + } + } +} + + +-- Let the world know about them + +ioncore.deflayout("default", horizontally_split) +ioncore.deflayout("hsplit", horizontally_split) +ioncore.deflayout("full", full_tiled)