From 432acddc23aadb5f9f6c9ed9039db311cadf0e13 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 11 Sep 2012 02:23:12 +0200 Subject: [PATCH] shifty: when a tag is has the same name than its position, don't duplicate --- lib/shifty.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/shifty.lua b/lib/shifty.lua index cea1900..254cbec 100644 --- a/lib/shifty.lua +++ b/lib/shifty.lua @@ -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