From f353499230b1d3efffe0c190902ce2cf43fa1bd0 Mon Sep 17 00:00:00 2001 From: Grzegorz Bednarski Date: Tue, 21 Dec 2021 20:48:53 +0100 Subject: [PATCH] Support minimized client property in tasklist icons (#3526) --- lib/awful/widget/tasklist.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/awful/widget/tasklist.lua b/lib/awful/widget/tasklist.lua index 4ad85581..aea5c23f 100644 --- a/lib/awful/widget/tasklist.lua +++ b/lib/awful/widget/tasklist.lua @@ -206,6 +206,10 @@ local instances -- @beautiful beautiful.tasklist_maximized_vertical -- @tparam[opt=nil] string maximized_vertical +--- Extra tasklist client property notification icon for clients with the minimized property set. +-- @beautiful beautiful.tasklist_minimized +-- @tparam[opt=nil] string minimized + --- The tasklist font. -- @beautiful beautiful.tasklist_font -- @tparam[opt=nil] string font @@ -354,6 +358,7 @@ local function tasklist_label(c, args, tb) local maximized = args.maximized or theme.tasklist_maximized 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 minimized = args.minimized or theme.tasklist_minimized or '_' if tb then tb:set_align(align) @@ -373,6 +378,7 @@ local function tasklist_label(c, args, tb) if c.maximized_vertical then name = name .. maximized_vertical end if c.floating then name = name .. floating end end + if c.minimized then name = name .. minimized end end if not disable_task_name then