This commit is contained in:
Cat /dev/Nulo 2022-04-10 16:54:50 -03:00
parent 604b2aa8f6
commit 08f35148f1
3 changed files with 14 additions and 0 deletions

9
modules/shell.lua Normal file
View file

@ -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, {})

View file

@ -27,3 +27,5 @@ require 'modules/foot'
require 'modules/fnott'
require 'modules/fuzzel'
require 'modules/lock'
require 'modules/shell'

View file

@ -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