If theme.tasklist_plain_task_name is set to true, the various client
state marks will not be prepended to the task name.

Signed-off-by: Lukáš Hrázký <lukk...@email.cz>
---
 lib/awful/widget/tasklist.lua.in | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in
index af7796d..6c3263b 100644
--- a/lib/awful/widget/tasklist.lua.in
+++ b/lib/awful/widget/tasklist.lua.in
@@ -47,11 +47,14 @@ local function tasklist_label(c, args)
     local maximized_horizontal = args.maximized_horizontal or 
theme.tasklist_maximized_horizontal or '⬌'
     local maximized_vertical = args.maximized_vertical or 
theme.tasklist_maximized_vertical or '⬍'
 
-    if c.sticky then name = name .. sticky end
-    if c.ontop then name = name .. ontop end
-    if client.floating.get(c) then name = name .. floating end
-    if c.maximized_horizontal then name = name .. maximized_horizontal end
-    if c.maximized_vertical then name = name .. maximized_vertical end
+    if not theme.tasklist_plain_task_name then
+        if c.sticky then name = name .. sticky end
+        if c.ontop then name = name .. ontop end
+        if client.floating.get(c) then name = name .. floating end
+        if c.maximized_horizontal then name = name .. maximized_horizontal end
+        if c.maximized_vertical then name = name .. maximized_vertical end
+    end
+
     if c.minimized then
         name = name .. (util.escape(c.icon_name) or util.escape(c.name) or 
util.escape("<untitled>"))
     else
-- 
1.8.1


-- 
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to