tags: add keybinding to rename a tag

This commit is contained in:
Vincent Bernat 2012-09-11 02:29:42 +02:00
parent 432acddc23
commit f912014b83
2 changed files with 4 additions and 3 deletions

View file

@ -64,7 +64,7 @@ for i = 1, capi.screen.count() do index_cache[i] = {} end
local function getname(t)
local name = awful.tag.getproperty(t, "shortname")
if name then
return name
return "" .. name
end
return t.name
end
@ -74,7 +74,7 @@ end
-- @param name : new name
local function setname(t, name)
if name then
local dispname = name
local dispname = "" .. name
local pos = awful.tag.getproperty(t, "position")
awful.tag.setproperty(t, "shortname", name)
if pos then