mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-29 21:04:21 +02:00
shifty: when a tag is has the same name than its position, don't duplicate
This commit is contained in:
parent
3380eded5a
commit
432acddc23
1 changed files with 5 additions and 2 deletions
|
@ -75,9 +75,12 @@ end
|
|||
local function setname(t, name)
|
||||
if name then
|
||||
local dispname = name
|
||||
local pos = awful.tag.getproperty(t, "position")
|
||||
awful.tag.setproperty(t, "shortname", name)
|
||||
if awful.tag.getproperty(t, "position") then
|
||||
dispname = awful.tag.getproperty(t, "position") .. '↭' .. dispname
|
||||
if pos then
|
||||
if "" .. pos ~= "" .. dispname then
|
||||
dispname = pos .. '↭' .. dispname
|
||||
end
|
||||
end
|
||||
t.name = dispname
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue