title: How to change AwesomeWM tag names?
body: <p>I am trying to customize my Awesome Window Manager to change the tag numbers into Roman numbers (changing 1 for I, 2 for II...). In order to achieve this, I am modifying my /etc/xdg/awesome/rc.lua file, specially the {{tags}} section.</p>
  
  <p>I have found <a href="https://discrust.wordpress.com/2013/03/11/awesomewm-trees-theme/" rel="nofollow noreferrer">this blog post</a>, in which he manages to edit the tag names at will, have a look at the top left corner:</p>
  
  <p><a href="https://i.stack.imgur.com/Zy3hR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zy3hR.png" alt="detail of the tag modification"></a></p>
  
  <p>I also read the <a href="http://pastebin.com/u/discrust" rel="nofollow noreferrer">rc.lua file</a> attached to the theme, and realized the technique used for what I want to do is a for loop in combination with some tables.</p>
  
  <p>This is the code snippet of interest in the file:</p>
  
  <pre><code>-- {{{ Tags
  -- Define a tag table which hold all screen tags.
  tags = {}
  tagnames = { "irc",  "mpd", "net", "usr", "png", "msg", }
  taglayouts = {
          awful.layout.suit.tile.top,
          awful.layout.suit.tile.bottom,
          awful.layout.suit.floating,
          awful.layout.suit.fair,
          awful.layout.suit.floating,
          awful.layout.suit.floating }
  
  for s = 1, screen.count() do
      -- Each screen has its own tag table.
      tags[s] = {}
      for tagnumber = 1, 6 do
          -- Add tags and name them.
          tags[s][tagnumber] = tag(tagnames[tagnumber])
          -- Add tags to screen one by one, giving them their layouts at the same time.
          tags[s][tagnumber].screen = s
          awful.layout.set(taglayouts[tagnumber], tags[s][tagnumber])
      end
      -- I'm sure you want to see at least one tag.
      tags[s][1].selected = true
  end
  -- }}}
  </code></pre>
  
  <p>...and this is my rc.lua file:</p>
  
  <pre><code>-- {{{ Tags
  -- Define a tag table which hold all screen tags.
  tags = {}
  tagnames = { "I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", }
  taglayouts = {
          awful.layout.suit.tile.top,
          awful.layout.suit.tile.bottom,
          awful.layout.suit.floating,
          awful.layout.suit.fair,
          awful.layout.suit.floating,
          awful.layout.suit.floating }
  
   for s = 1, screen.count() do
      -- Each screen has its own tag table.
      -- tags[s] = awful.tag({  "1", "2", "3", "4", "5", "6", "7", "8",$
  
        tags[s] = {}
  
        for tagnumber = 1, 9 do
                  tags[s][tagnumber] = tag(tagnames[tagnumber])
                  tags[s][tagnumber].screen = s
                  awful.layout.set(taglayouts[tagnumber], tags[s][tagnumber])
        end
  
        tags[s][1].selected = true
   end
  --- }}}
  </code></pre>
  
  <p>As you can see, they are pretty the same, with the difference that I have nine tags instead of six (I changed the code according to it). When I try to debug the setup using Xephyr, an error appears in the console and I am only able to see my wallpaper:</p>
  
  <pre><code>    error while running function
  stack traceback:
      [C]: in global 'tag'
      /etc/xdg/awesome/rc.lua:100: in main chunk
  error: /etc/xdg/awesome/rc.lua:100: bad argument #2 to 'tag' (table expected, got string)
  error while running function
  stack traceback:
      [C]: in global 'tag'
      /etc/xdg/awesome/rc.lua:100: in main chunk
  error: /etc/xdg/awesome/rc.lua:100: bad argument #2 to 'tag' (table expected, got string)
  E: awesome: main:605: couldn't find any rc file
  </code></pre>
  
  <p>I can't see where the error is, as I am not able to detect any language violation in the error line <code>tags[s][tagnumber] = tag(tagnames[tagnumber])</code>: it's just filling the tags array with my custom names, telling it to treat them as a tag and not as a random string.</p>
  
  <p><strong>UPDATE:</strong> I have just realized that there are six layouts in taglayouts, the same number as tags in the original Lua file. I think I should have nine tag layouts, but I don't know which one should I add. Also, I don't see this as a critical impediment for the code to compile properly, as the error line does not have anything to do with the layout list.</p>
  
  <p><strong>UPDATE 2:</strong> Added three more <code>awful.layout.suit.floating</code> to <code>taglayouts</code>. Same error.</p>