tags: display tag number along with its name

This commit is contained in:
Vincent Bernat 2012-07-09 16:29:22 +02:00
parent 8b3f13ea55
commit 790a72a1ad

View file

@ -21,6 +21,9 @@ keynumber = math.min(9, #tags)
-- This should map on the top row of your keyboard, usually 1 to 9. -- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, #tags do for i = 1, #tags do
config.tags[tags[i].name] = tags[i] config.tags[tags[i].name] = tags[i]
if tags[i].name ~= tostring(i) then
tags[i].name = tostring(i) .. "" .. tags[i].name
end
if i <= keynumber then if i <= keynumber then
config.keys.global = awful.util.table.join( config.keys.global = awful.util.table.join(
config.keys.global, config.keys.global,