2 -- Notion tiling module configuration file
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 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 mclick(META
.."Shift+Button4", "ioncore.goto_next(_sub, 'up', {no_ascend=_})"),
15 mclick(META
.."Shift+Button5", "ioncore.goto_next(_sub, 'down', {no_ascend=_})"),
16 bdoc("Go to frame right/left of current frame."),
17 kpress(META
.."Tab", "ioncore.goto_next(_sub, 'right')"),
19 kpress("Tab", "ioncore.goto_next(_sub, 'left')"),
21 bdoc("Split current frame horizontally."),
22 kpress("S", "WTiling.split_at(_, _sub, 'right', true)"),
24 bdoc("Destroy current frame."),
25 kpress("X", "WTiling.unsplit_at(_, _sub)"),
32 defbindings("WFrame.floating", {
34 bdoc("Tile frame, if no tiling exists on the workspace"),
35 kpress("B", "mod_tiling.mkbottom(_)"),
40 -- Context menu for tiled workspaces.
42 defctxmenu("WTiling", "Tiling", {
43 menuentry("Destroy frame",
44 "WTiling.unsplit_at(_, _sub)"),
46 menuentry("Split vertically",
47 "WTiling.split_at(_, _sub, 'bottom', true)"),
48 menuentry("Split horizontally",
49 "WTiling.split_at(_, _sub, 'right', true)"),
51 menuentry("Flip", "WTiling.flip_at(_, _sub)"),
52 menuentry("Transpose", "WTiling.transpose_at(_, _sub)"),
54 menuentry("Untile", "mod_tiling.untile(_)"),
56 submenu("Float split", {
58 "WTiling.set_floating_at(_, _sub, 'toggle', 'left')"),
60 "WTiling.set_floating_at(_, _sub, 'toggle', 'right')"),
62 "WTiling.set_floating_at(_, _sub, 'toggle', 'up')"),
64 "WTiling.set_floating_at(_, _sub, 'toggle', 'down')"),
68 menuentry("Split vertically",
69 "WTiling.split_top(_, 'bottom')"),
70 menuentry("Split horizontally",
71 "WTiling.split_top(_, 'right')"),
72 menuentry("Flip", "WTiling.flip_at(_)"),
73 menuentry("Transpose", "WTiling.transpose_at(_)"),
78 -- Extra context menu extra entries for floatframes.
80 defctxmenu("WFrame.floating", "Floating frame", {
82 menuentry("New tiling", "mod_tiling.mkbottom(_)"),