2012/5/10 Rainer M Krug <[email protected]>:
> If I put the section:
>
> - -- {{{ Mouse bindings
> root.buttons(awful.util.table.join(
>                awful.button({ }, 3, function () mymainmenu:toggle() end),
>                awful.button({ }, 4, awful.tag.viewnext),
>                awful.button({ }, 5, awful.tag.viewprev)
>                                  ))
> - -- }}}
>
> into the file mousebindings.lua and replace it in rc.lua with
>
>
> dopath("./mousebindings.lua")
>
> rc.lua does not work anymore.
>
> What am I missing?

I haven't touched lua or my rc.lua in a long time but I'd hazard a
guess that you're missing the appropriate require in the
mousebindings.lua
If you look at 
https://github.com/ierton/awesomerc-ierton/blob/laptop/myrc/keybind.lua
for example the following lines provide the necessary modules for the
code to work :

local awful = require("awful")
local naughty = require("naughty")
local mouse = mouse

local capi = {
root = root,
}

local table = table
local ipairs = ipairs
local tostring = tostring

That's the direction I'd look anyway.

Gwenhael

--
To unsubscribe, send mail to [email protected].

Reply via email to