]> git.decadent.org.uk Git - ion3.git/blobdiff - etc/cfg_tiling.lua
[svn-upgrade] Integrating new upstream version, ion3 (20070203)
[ion3.git] / etc / cfg_tiling.lua
index 0225d3a472ab2c4bcc3616b22821981ad66206e6..b07178e66f66a4b80e868cd31feaf69369e6fcc2 100644 (file)
@@ -26,22 +26,6 @@ defbindings("WTiling", {
 
 -- Frame bindings
 
-defbindings("WFrame.tiled", {
-    submap(META.."K", {
-        bdoc("Detach window from tiled frame"),
-        kpress("D", "mod_tiling.detach(_sub)", "_sub:non-nil"),
-    }),
-})
-
-
-defbindings("WFrame.transient", {
-    submap(META.."K", {
-        bdoc("Detach transient frame"),
-        kpress("D", "mod_tiling.detach(_)", "_sub:non-nil"),
-    }),
-})
-
-
 defbindings("WFrame.floating", {
     submap(META.."K", {
         bdoc("Tile frame, if no tiling exists on the workspace"),
@@ -86,21 +70,6 @@ defctxmenu("WTiling", "Tiling", {
 })
 
 
--- Context menu entries for tiled frames.
-
-defctxmenu("WFrame.tiled", "Tiled frame", {
-    menuentry("Detach window", "mod_tiling.detach(_sub)", "_sub:non-nil"),
-})
-
-
--- Context menu entries for transient frames.
-
-defctxmenu("WFrame.transient", "Transient frame", {
-    append=true,
-    menuentry("Detach", "mod_tiling.detach(_)", "_sub:non-nil"),
-})
-
-
 -- Extra context menu extra entries for floatframes. 
 
 defctxmenu("WFrame.floating", "Floating frame", {
@@ -108,39 +77,3 @@ defctxmenu("WFrame.floating", "Floating frame", {
     menuentry("New tiling", "mod_tiling.mkbottom(_)"),
 })
 
-
--- Adjust default workspace layout
-
-local a_frame = {
-    type="WSplitRegion",
-    regparams = {
-        type = "WFrame", 
-        frame_style = "frame-tiled"
-    }
-}
-    
-ioncore.set{
-    default_ws_params = {
-        -- 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
-            }
-        }
-    }
-}
-