tasklist: add a theme option for a plain task name

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ý <lukkash@email.cz>
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Lukáš Hrázký 2013-01-05 16:51:13 +01:00 committed by Uli Schlachter
parent 66e52229f7
commit dd29a41c4e
1 changed files with 8 additions and 5 deletions

View File

@ -47,11 +47,14 @@ local function tasklist_label(c, args)
local maximized_horizontal = args.maximized_horizontal or theme.tasklist_maximized_horizontal or '' local maximized_horizontal = args.maximized_horizontal or theme.tasklist_maximized_horizontal or ''
local maximized_vertical = args.maximized_vertical or theme.tasklist_maximized_vertical or '' local maximized_vertical = args.maximized_vertical or theme.tasklist_maximized_vertical or ''
if not theme.tasklist_plain_task_name then
if c.sticky then name = name .. sticky end if c.sticky then name = name .. sticky end
if c.ontop then name = name .. ontop end if c.ontop then name = name .. ontop end
if client.floating.get(c) then name = name .. floating end if client.floating.get(c) then name = name .. floating end
if c.maximized_horizontal then name = name .. maximized_horizontal end if c.maximized_horizontal then name = name .. maximized_horizontal end
if c.maximized_vertical then name = name .. maximized_vertical end if c.maximized_vertical then name = name .. maximized_vertical end
end
if c.minimized then if c.minimized then
name = name .. (util.escape(c.icon_name) or util.escape(c.name) or util.escape("<untitled>")) name = name .. (util.escape(c.icon_name) or util.escape(c.name) or util.escape("<untitled>"))
else else