Fix miscalculations and infinite loops in tab width calculation
[notion/jeffpc.git] / etc / cfg_tiling.lua
blob3942f08ba7d854b5376803d3819ed3400b732911
1 --
2 -- Ion tiling module configuration file
3 --
5 -- Bindings for the tilings.
7 defbindings("WTiling", {
8 bdoc("Split current frame vertically."),
9 kpress(META.."S", "WTiling.split_at(_, _sub, 'bottom', true)"),
11 bdoc("Go to frame above/below/right/left of current frame."),
12 kpress(META.."P", "ioncore.goto_next(_sub, 'up', {no_ascend=_})"),
13 kpress(META.."N", "ioncore.goto_next(_sub, 'down', {no_ascend=_})"),
14 kpress(META.."Tab", "ioncore.goto_next(_sub, 'right')"),
15 submap(META.."K", {
16 kpress("Tab", "ioncore.goto_next(_sub, 'left')"),
18 bdoc("Split current frame horizontally."),
19 kpress("S", "WTiling.split_at(_, _sub, 'right', true)"),
21 bdoc("Destroy current frame."),
22 kpress("X", "WTiling.unsplit_at(_, _sub)"),
23 }),
27 -- Frame bindings
29 defbindings("WFrame.floating", {
30 submap(META.."K", {
31 bdoc("Tile frame, if no tiling exists on the workspace"),
32 kpress("B", "mod_tiling.mkbottom(_)"),
33 }),
37 -- Context menu for tiled workspaces.
39 defctxmenu("WTiling", "Tiling", {
40 menuentry("Destroy frame",
41 "WTiling.unsplit_at(_, _sub)"),
43 menuentry("Split vertically",
44 "WTiling.split_at(_, _sub, 'bottom', true)"),
45 menuentry("Split horizontally",
46 "WTiling.split_at(_, _sub, 'right', true)"),
48 menuentry("Flip", "WTiling.flip_at(_, _sub)"),
49 menuentry("Transpose", "WTiling.transpose_at(_, _sub)"),
51 menuentry("Untile", "mod_tiling.untile(_)"),
53 submenu("Float split", {
54 menuentry("At left",
55 "WTiling.set_floating_at(_, _sub, 'toggle', 'left')"),
56 menuentry("At right",
57 "WTiling.set_floating_at(_, _sub, 'toggle', 'right')"),
58 menuentry("Above",
59 "WTiling.set_floating_at(_, _sub, 'toggle', 'up')"),
60 menuentry("Below",
61 "WTiling.set_floating_at(_, _sub, 'toggle', 'down')"),
62 }),
64 submenu("At root", {
65 menuentry("Split vertically",
66 "WTiling.split_top(_, 'bottom')"),
67 menuentry("Split horizontally",
68 "WTiling.split_top(_, 'right')"),
69 menuentry("Flip", "WTiling.flip_at(_)"),
70 menuentry("Transpose", "WTiling.transpose_at(_)"),
71 }),
75 -- Extra context menu extra entries for floatframes.
77 defctxmenu("WFrame.floating", "Floating frame", {
78 append=true,
79 menuentry("New tiling", "mod_tiling.mkbottom(_)"),