1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-22 11:12:31 +00:00

rainbow: nil txt layout exception managed

This commit is contained in:
luke bonham 2013-08-16 14:19:48 +02:00
parent 05a857efcd
commit c7ce79278e

View file

@ -596,6 +596,7 @@ small_spr = wibox.widget.textbox('<span font="Tamsyn 4"> </span>')
-- 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