X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/55fc99f91869f02d184ee225a3b208088da5e7b8..5547dad8b7e2f8ca68cab2476c9ae5562a5f54df:/awesome/tags.lua diff --git a/awesome/tags.lua b/awesome/tags.lua index 8d9dfd3..bce4423 100644 --- a/awesome/tags.lua +++ b/awesome/tags.lua @@ -24,6 +24,7 @@ local mytags = {} local path = beautiful.path local icon_only = true +--TODO create a list of tag objects and place them according to number of screens (sb:20170130) -- single screen {{{2 mytags[1] = {} mytags[1][1] = { @@ -67,7 +68,8 @@ mytags[2][2] = { -- Tags {{{2 tags = {} local sc = screen.count() -for s = 1, sc do +awful.screen.connect_for_each_screen(function(screen) + local s = screen.index tags[s] = {} for i,p in ipairs(mytags[sc][s]) do local props = {} @@ -79,4 +81,4 @@ for s = 1, sc do tags[s][i] = awful.tag.add(p.name, props) end tags[s][1].selected = true -end +end)