----- Mail original -----
> De : Zsolt Udvari <[email protected]>
> À : Rainer M Krug <[email protected]>; Awesome Mailinglist 
> <[email protected]>
> Cc : 
> Envoyé le : Jeudi 10 mai 2012 16h29
> Objet : Re: split rc.lua in separate files?
> 
>>>>  My configuration is splitted too. In rc.lua add 
> dopath("keybindings.lua") and done :)
>>> 
>>>  Thanks - brilliant.
>> 
>>  but not working as expected - actually not at all.
>> 
>> 
>>  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")
> 
> 
> Please check the output! Maybe ~/.xsession-errors, maybe in
> /var/log/*dm.log or similar. Or post your rc.lua to pastebin and we
> will check it.
> 

Personnaly, I "use dofile" :
config = awful.util.getdir("config")

dofile(config .. "/keybindings.lua")
dofile(config .. "/menu.lua")
dofile(config .. "/wiboxes.lua")
dofile(config .. "/mousebindings.lua")
dofile(config .. "/rules.lua")
dofile(config .. "/signals.lua")

and it works just fine !

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

Reply via email to