]> git.decadent.org.uk Git - ion3.git/blobdiff - etc/cfg_layouts.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070203)
[ion3.git] / etc / cfg_layouts.lua
diff --git a/etc/cfg_layouts.lua b/etc/cfg_layouts.lua
new file mode 100644 (file)
index 0000000..4299c76
--- /dev/null
@@ -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)