-- 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"),
menuentry("Flip", "WTiling.flip_at(_, _sub)"),
menuentry("Transpose", "WTiling.transpose_at(_, _sub)"),
+ menuentry("Untile", "mod_tiling.untile(_)"),
+
submenu("Float split", {
menuentry("At left",
"WTiling.set_floating_at(_, _sub, 'toggle', 'left')"),
})
--- 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", {
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
- }
- }
- }
-}
-