awesomerc: add support for layout icons from theme

This commit is contained in:
Gregor Best 2008-11-08 15:25:52 +01:00 committed by Julien Danjou
parent ebb9869bd9
commit 9789a9cfad
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ end)
awful.hooks.arrange.register(function (screen)
local layout = awful.layout.get(screen)
if layout then
mylayoutbox[screen].image = image("@AWESOME_ICON_PATH@/layouts/" .. layout .. "w.png")
mylayoutbox[screen].image = awful.beautiful.get_image("layout_"..layout)
else
mylayoutbox[screen].image = nil
end