You are not logged in.

#1 2011-09-23 15:30:20

multiphrenic
Member
From: Toronto, Canada
Registered: 2011-04-26
Posts: 73
Website

Using multiple configuration files in Awesome's rc.lua?

I'm fairly new to awesome. I have managed to configure rc.lua to my liking but have been troubled by the fact that I need to go through the entire configuration file when I would like to update just a hotkey or menu item. This leaves room for errors and mistakes that could break my config.

Ideally, I would like to be able to insert pieces of code from other files into my rc.lua. I realize this is already being done through things like vicious, but am wondering what the best way to do this would be for small snippets?

For example, I would like to have one file for hotkeys, one file for my menu items, one file for my widget configuration. I've done a little bit of reading on lua and believe dofile('filename") should work but would appreciate examples from other people who have done something similar.

Thanks in advance
Multi

Offline

#2 2011-09-29 00:10:16

kaptenen
Member
Registered: 2009-12-06
Posts: 287
Website

Re: Using multiple configuration files in Awesome's rc.lua?

require("keys")
Then create a file named keys.lua

Was that what you wanted?

Offline

Board footer

Powered by FluxBB