]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/tags.lua
awesome: add binding to start vimwiki
[dotfiles.git] / awesome / tags.lua
index 8d9dfd3eba0d6973b2d7b372d88060acb0fd2055..bce442393fd199594fb0a625eeaa6cd1501f5bf6 100644 (file)
@@ -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)