From dd29a41c4e529629940769e67927f1065a22e01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= Date: Sat, 5 Jan 2013 16:51:13 +0100 Subject: [PATCH] tasklist: add a theme option for a plain task name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ý Signed-off-by: Uli Schlachter --- 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 eafe24ea..c9466796 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("")) else