dotfiles/awesome/theme/settings.lua

18 lines
371 B
Lua
Raw Normal View History

2023-01-30 15:23:16 +00:00
local naughty = require('naughty')
return (function()
local status, settings = pcall(function()
return dofile(os.getenv('HOME') .. '/.config/awesome/settings.lua')
end)
if status then
return settings
else
naughty.notify({
preset = naughty.config.presets.critical,
title = 'Error while parsing settings!',
text = settings,
})
return {}
end
end)()