From 5f573ccb71eb6000a0c54ca152ece625ae65493b Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 22 Jan 2021 10:04:16 +0100 Subject: [PATCH] Display urgent windows with red background --- src/window.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/window.rs b/src/window.rs index 06125db..3ea9ada 100644 --- a/src/window.rs +++ b/src/window.rs @@ -35,7 +35,12 @@ impl<'a> std::fmt::Display for Window<'a> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> { write!( f, - "{} — {} [{}]", + "{} — {} [{}]", + if self.node.urgent { + ", background=\"red\"" + } else { + "" + }, self.get_app_name(), self.get_title(), self.get_id()