shell
This commit is contained in:
parent
604b2aa8f6
commit
08f35148f1
3 changed files with 14 additions and 0 deletions
9
modules/shell.lua
Normal file
9
modules/shell.lua
Normal 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, {})
|
|
@ -27,3 +27,5 @@ require 'modules/foot'
|
|||
require 'modules/fnott'
|
||||
require 'modules/fuzzel'
|
||||
require 'modules/lock'
|
||||
require 'modules/shell'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue