diff --git a/rc.lua.rainbow b/rc.lua.rainbow index abd28a5..d9146b4 100755 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -596,6 +596,7 @@ small_spr = wibox.widget.textbox(' ') -- Create a wibox for each screen and add it mywibox = {} mypromptbox = {} +mylayoutbox = {} txtlayoutbox = {} mytaglist = {} mytaglist.buttons = awful.util.table.join( @@ -644,7 +645,8 @@ mytasklist.buttons = awful.util.table.join( -- Writes a string representation of the current layout in a textbox widget function updatelayoutbox(layout, s) local screen = s or 1 - layout:set_text(beautiful["layout_txt_" .. awful.layout.getname(awful.layout.get(screen))]) + local txt_l = beautiful["layout_txt_" .. awful.layout.getname(awful.layout.get(screen))] or "" + layout:set_text(txt_l) end for s = 1, screen.count() do