From 3f0483003c42c9f566cbc7d470e455fcfc7181da Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 10 Apr 2016 11:21:37 +0200 Subject: [PATCH] Default config: Use strings for tag names Tag names really are strings. Numbers just work accidentally since the C code uses luaL_checklstring() to access the tag name and this function silently converts numbers to strings. This also has a nice documentation effect, making it easier for people to figure out that they can change the name of a tag. Plus, with this the changes done by previous commits make more sense (specifying an awful.rules-rule that identifies a tag by name). Signed-off-by: Uli Schlachter --- awesomerc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesomerc.lua b/awesomerc.lua index 56f1db83..b686e684 100755 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -102,7 +102,7 @@ end tags = {} awful.screen.connect_for_each_screen(function(s) -- Each screen has its own tag table. - tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, awful.layout.layouts[1]) + tags[s] = awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1]) end) -- }}}