diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 6de7c00c..f9f8a1d9 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -92,10 +92,16 @@ mytasklist:mouse_add(mouse({ }, 1, function (object, c) c:focus_set(); c:raise() mytasklist:mouse_add(mouse({ }, 4, function () awful.client.focus(1) end)) mytasklist:mouse_add(mouse({ }, 5, function () awful.client.focus(-1) end)) function mytasklist.label(c) - if client.focus_get() == c then - return " </span> " + local text = "" + if c.floating then + text = text .. "<bg image=\"@AWESOME_ICON_PATH@/floatingw.png\" align=\"right\"/>" end - return " <title/> " + if client.focus_get() == c then + text = text .. " <bg color='"..bg_focus.."'/><span color='"..fg_focus.."'><title/></span> " + else + text = text .. " <title/> " + end + return text end -- Create a textbox widget diff --git a/icons/floating.png b/icons/floating.png new file mode 100644 index 00000000..90bf19e8 Binary files /dev/null and b/icons/floating.png differ diff --git a/icons/floatingw.png b/icons/floatingw.png new file mode 100644 index 00000000..d41b2d96 Binary files /dev/null and b/icons/floatingw.png differ