Prepare for an extended API

This commit is contained in:
Emmanuel Lepage Vallee 2016-01-08 00:51:27 -05:00
parent cd7ce63e80
commit e0f6676a8b
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ Now, open ~/.config/awesome/rc.lua (or copy /etc/xdg/awesome/rc.lua to
and add this line somewhere in your `rc.lua`: and add this line somewhere in your `rc.lua`:
```lua ```lua
require("collision")() local collision = require("collision")()
``` ```
It is a very good idea to also change the default `mod4+arrow` shortcut to It is a very good idea to also change the default `mod4+arrow` shortcut to
@ -106,4 +106,4 @@ cursor position.
# Notes # Notes
Using the focus arrows to select empty screens only work in Awesome 3.5.7+ Using the focus arrows to select empty screens only work in Awesome 3.5.7+

View File

@ -169,6 +169,8 @@ local function new(k)
end end
capi.root.keys(awful.util.table.join(capi.root.keys(),unpack(aw))) capi.root.keys(awful.util.table.join(capi.root.keys(),unpack(aw)))
end) end)
return module
end end
return setmetatable(module, { __call = function(_, ...) return new(...) end }) return setmetatable(module, { __call = function(_, ...) return new(...) end })