Released version 3-2015061300
[notion.git] / etc / cfg_dock.lua
blob47541d0d73bc2a6bf9e54da0a4471ee6097f75d9
1 --
2 -- Notion dock module configuration
3 --
5 -- Create a dock.
6 mod_dock.create{
7 -- Dock mode: embedded|floating.
8 mode="floating",
10 -- The screen to create the dock on.
11 screen=0,
13 -- Corner or side of the screen to place the dock on.
14 -- For embedded dock the valid values are: tl|tr|bl|br.
15 -- For floating dock the following are also valid: tc|bc|ml|mc|mr.
16 pos="bl",
18 -- Growth direction: left|right|up|down.
19 grow="right",
21 -- Whether new dockapps should be added automatically to this dock.
22 is_auto=true,
24 -- Show floating dock initially?
25 floating_hidden=false,
27 -- Name of the dock.
28 name="*dock*",
31 -- For floating docks, you may want the following toggle binding.
32 defbindings("WScreen", {
33 bdoc("Toggle floating dock."),
34 kpress(META.."D", "mod_dock.set_floating_shown_on(_, 'toggle')"),
37 -- Dock settings menu. For this to work, mod_menu must have been loaded
38 -- previously.
39 if mod_menu then
40 defmenu("dock-settings", {
41 menuentry("Pos-TL", "_:set{pos='tl'}"),
42 menuentry("Pos-TR", "_:set{pos='tr'}"),
43 menuentry("Pos-BL", "_:set{pos='bl'}"),
44 menuentry("Pos-BR", "_:set{pos='br'}"),
45 menuentry("Grow-L", "_:set{grow='left'}"),
46 menuentry("Grow-R", "_:set{grow='right'}"),
47 menuentry("Grow-U", "_:set{grow='up'}"),
48 menuentry("Grow-D", "_:set{grow='down'}"),
51 defbindings("WDock", {
52 mpress("Button3", "mod_menu.pmenu(_, _sub, 'dock-settings')"),
54 end