]> git.decadent.org.uk Git - ion3.git/blob - etc/cfg_layouts.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070203)
[ion3.git] / etc / cfg_layouts.lua
1 --
2 -- Layouts for Ion
3 --
4
5 local a_frame = {
6     type="WSplitRegion",
7     regparams = {
8         type = "WFrame", 
9         frame_style = "frame-tiled"
10     }
11 }
12
13
14 local horizontally_split = {
15     -- Destroy workspace if the 'bottom' tiling is destroyed last
16     bottom_last_close = true,
17     -- Layout
18     managed = {
19         {
20             type = "WTiling",
21             bottom = true,
22             -- The default is a single 1:1 horizontal split
23             split_tree = {
24                 type = "WSplitSplit",
25                 dir = "horizontal",
26                 tls = 1,
27                 brs = 1,
28                 tl = a_frame,
29                 br = a_frame
30             }
31             -- For a single frame
32             --split_tree = nil
33         }
34     }
35 }
36
37
38 local full_tiled = {
39     -- Destroy workspace if the 'bottom' tiling is destroyed last
40     bottom_last_close = true,
41     -- Layout
42     managed = {
43         {
44             type = "WTiling",
45             bottom = true,
46         }
47     }
48 }
49
50
51 -- Let the world know about them
52
53 ioncore.deflayout("default", horizontally_split)
54 ioncore.deflayout("hsplit", horizontally_split)
55 ioncore.deflayout("full", full_tiled)