diff --git a/config-template.lua b/config-template.lua index 77be8d3..718cd29 100755 --- a/config-template.lua +++ b/config-template.lua @@ -1,5 +1,3 @@ -local config = {} - -- Copy this file to `config.lua` before starting awesome. -- To enable a module, add a line like the ones below. @@ -178,9 +176,4 @@ config.ibus = { ibus_engine = "xkb:ru::rus" } } -} - - - - -return config +} \ No newline at end of file diff --git a/rc.lua b/rc.lua index 62aafc9..9ff9a6e 100755 --- a/rc.lua +++ b/rc.lua @@ -23,7 +23,15 @@ debug_message = function(msg) end -- Order matters. -config = require("config") +conf_env = os.getenv("AWESOMEWM_CONFIG") +config = {} +if (conf_env == nil) then + -- Default location: in this directory + dofile(conf_dir .. "/config.lua") +else + dofile(conf_env) +end + beautiful.init(require("theme"))