mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 04:20:03 +02:00
tags: add keybinding to rename a tag
This commit is contained in:
parent
432acddc23
commit
f912014b83
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -98,7 +98,8 @@ config.keys.global = awful.util.table.join(
|
|||
end,
|
||||
"Send tag to next screen"),
|
||||
awful.key({ modkey }, 0, shifty.add, "Create a new tag"),
|
||||
awful.key({ modkey, "Shift" }, 0, shifty.del, "Delete tag"))
|
||||
awful.key({ modkey, "Shift" }, 0, shifty.del, "Delete tag"),
|
||||
awful.key({ modkey, "Control" }, 0, shifty.rename, "Rename tag"))
|
||||
|
||||
-- Bind all key numbers to tags.
|
||||
-- Be careful: we use keycodes to make it works on any keyboard layout.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue