From e0f6676a8b56a17586940420bb1af8abe713c1ea Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 8 Jan 2016 00:51:27 -0500 Subject: [PATCH] Prepare for an extended API --- README.md | 4 ++-- init.lua | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 60cda68..f2394a0 100644 --- a/README.md +++ b/README.md @@ -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`: ```lua - require("collision")() + local collision = require("collision")() ``` It is a very good idea to also change the default `mod4+arrow` shortcut to @@ -106,4 +106,4 @@ cursor position. # Notes -Using the focus arrows to select empty screens only work in Awesome 3.5.7+ \ No newline at end of file +Using the focus arrows to select empty screens only work in Awesome 3.5.7+ diff --git a/init.lua b/init.lua index f781311..eff123d 100644 --- a/init.lua +++ b/init.lua @@ -169,6 +169,8 @@ local function new(k) end capi.root.keys(awful.util.table.join(capi.root.keys(),unpack(aw))) end) + + return module end return setmetatable(module, { __call = function(_, ...) return new(...) end })