Prepare for an extended API
This commit is contained in:
parent
cd7ce63e80
commit
e0f6676a8b
|
@ -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+
|
||||||
|
|
2
init.lua
2
init.lua
|
@ -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 })
|
||||||
|
|
Loading…
Reference in New Issue