awful: make sel prio over urgent
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
825e012442
commit
20af8bdfca
|
@ -935,13 +935,9 @@ function P.widget.taglist.label.all(t, bg_focus, fg_focus, bg_urgent, fg_urgent)
|
||||||
bg_color = bg_focus
|
bg_color = bg_focus
|
||||||
fg_color = fg_focus
|
fg_color = fg_focus
|
||||||
background = "resize=\"true\" image=\"@AWESOME_ICON_PATH@/taglist/squarefw.png\""
|
background = "resize=\"true\" image=\"@AWESOME_ICON_PATH@/taglist/squarefw.png\""
|
||||||
end
|
elseif bg_urgent and fg_urgent then
|
||||||
for k, c in pairs(client.get()) do
|
for k, c in pairs(client.get()) do
|
||||||
if c:istagged(t) then
|
if c.urgent and c:istagged(t) then
|
||||||
if not (sel and sel:istagged(t)) then
|
|
||||||
background = "resize=\"true\" image=\"@AWESOME_ICON_PATH@/taglist/squarew.png\""
|
|
||||||
end
|
|
||||||
if c.urgent and bg_urgent and fg_urgent then
|
|
||||||
bg_color = bg_urgent
|
bg_color = bg_urgent
|
||||||
fg_color = fg_urgent
|
fg_color = fg_urgent
|
||||||
end
|
end
|
||||||
|
@ -960,10 +956,10 @@ local function widget_tasklist_label_common(c, bg_focus, fg_focus, bg_urgent, fg
|
||||||
if c.floating then
|
if c.floating then
|
||||||
text = "<bg image=\"@AWESOME_ICON_PATH@/tasklist/floatingw.png\" align=\"right\"/>"
|
text = "<bg image=\"@AWESOME_ICON_PATH@/tasklist/floatingw.png\" align=\"right\"/>"
|
||||||
end
|
end
|
||||||
if c.urgent and bg_urgent and fg_urgent then
|
if client.focus_get() == c then
|
||||||
text = text .. " <bg color='"..bg_urgent.."'/><span color='"..fg_urgent.."'>"..P.escape(c.name).."</span> "
|
|
||||||
elseif client.focus_get() == c then
|
|
||||||
text = text .. " <bg color='"..bg_focus.."'/><span color='"..fg_focus.."'>"..P.escape(c.name).."</span> "
|
text = text .. " <bg color='"..bg_focus.."'/><span color='"..fg_focus.."'>"..P.escape(c.name).."</span> "
|
||||||
|
elseif c.urgent and bg_urgent and fg_urgent then
|
||||||
|
text = text .. " <bg color='"..bg_urgent.."'/><span color='"..fg_urgent.."'>"..P.escape(c.name).."</span> "
|
||||||
else
|
else
|
||||||
text = text .. " "..P.escape(c.name).." "
|
text = text .. " "..P.escape(c.name).." "
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue