From 75a34eb4b035963970c8415316c2b2bd6a81eea6 Mon Sep 17 00:00:00 2001 From: hhvn Date: Sun, 14 Apr 2024 13:48:13 +0100 Subject: Use config.Urg for desktops with urgent window --- bar.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bar.go') diff --git a/bar.go b/bar.go index b735944..de626b4 100644 --- a/bar.go +++ b/bar.go @@ -114,10 +114,10 @@ func (b bar) draw(state *bspc.State, blocks []*status.Block) error { cx += 5 - if d.Focused { - bg = config.Sel - } else { - bg = config.FgDark + switch { + case d.Urgent(): bg = config.Urg + case d.Focused: bg = config.Sel + default: bg = config.FgDark } filled = d.Root != nil -- cgit v1.2.3