diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 12fe6655..f8d75fc5 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -382,7 +382,7 @@ end) awful.hooks.arrange.register(function (screen) local layout = awful.layout.get(screen) if layout then - mylayoutbox[screen].image = beautiful.getimage("layout_" .. layout) + mylayoutbox[screen].image = image(beautiful["layout_" .. layout]) else mylayoutbox[screen].image = nil end diff --git a/lib/beautiful.lua.in b/lib/beautiful.lua.in index 473f0653..c2e828ab 100644 --- a/lib/beautiful.lua.in +++ b/lib/beautiful.lua.in @@ -87,17 +87,6 @@ function init(path) end end ---- Return an image from the theme. --- @param imgspec Name of the image key. --- @return The image. -function getimage(imgspec) - if theme[imgspec] then - return capi.image(theme[imgspec]) - else - return nil - end -end - setmetatable(package.loaded[module_name], package.loaded[module_name]) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80