Better error message
[notion/jeffpc.git] / etc / cfg_tiling.lua
blob4c222f9bbf52e45d0655a3658a90216fa7f62f34
1 --
2 -- Notion 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 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')"),
18 submap(META.."K", {
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)"),
26 }),
30 -- Frame bindings
32 defbindings("WFrame.floating", {
33 submap(META.."K", {
34 bdoc("Tile frame, if no tiling exists on the workspace"),
35 kpress("B", "mod_tiling.mkbottom(_)"),
36 }),
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", {
57 menuentry("At left",
58 "WTiling.set_floating_at(_, _sub, 'toggle', 'left')"),
59 menuentry("At right",
60 "WTiling.set_floating_at(_, _sub, 'toggle', 'right')"),
61 menuentry("Above",
62 "WTiling.set_floating_at(_, _sub, 'toggle', 'up')"),
63 menuentry("Below",
64 "WTiling.set_floating_at(_, _sub, 'toggle', 'down')"),
65 }),
67 submenu("At root", {
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(_)"),
74 }),
78 -- Extra context menu extra entries for floatframes.
80 defctxmenu("WFrame.floating", "Floating frame", {
81 append=true,
82 menuentry("New tiling", "mod_tiling.mkbottom(_)"),