I've just moved to Awesome WM from OpenBox. I like that it's very extensible, customizable and I have huge control about window layout. I like structured and organized things and I'd like to separate that huge .config/awesome/rc.lua configuration into multiple files. But I'm still newbie to Awesome and I've never used lua before.
|
|
||||
|
|
|
You can simply place code in a separate file and include it with
Note: The working directory is
If it's more than just some code and it might be used by others as well, it might make sense to create a lua module which can be included with
|
||||
|
To move code into a different file, you create a module and require the module in the rc.lua. To create a module, you simply call To use the module you created, you just call There is an excellent tutorial on the Lua wiki that explains this with examples. And if you want to see how |
|||||
|
