diff --git a/modules/shell.lua b/modules/shell.lua new file mode 100644 index 0000000..938a8b6 --- /dev/null +++ b/modules/shell.lua @@ -0,0 +1,9 @@ +local templater = require "utils/template" +local content = "" +for k,v in pairs(theme) do + content = content .. templater([[ +export {key}="{value}" +]], { key = k, value = v }) +end + +save_config("shell", content, {}) \ No newline at end of file diff --git a/themer.lua b/themer.lua index a4033c6..39f5dc9 100755 --- a/themer.lua +++ b/themer.lua @@ -27,3 +27,5 @@ require 'modules/foot' require 'modules/fnott' require 'modules/fuzzel' require 'modules/lock' +require 'modules/shell' + diff --git a/utils/template.lua b/utils/template.lua index c5a9fca..7368082 100644 --- a/utils/template.lua +++ b/utils/template.lua @@ -3,6 +3,9 @@ return function (template, params) if params[s] == nil then expect_nil("No variable "..s) end + if params[s] == false then + return "false" + end return params[s] end) return content