summaryrefslogtreecommitdiff
path: root/bar.go
diff options
context:
space:
mode:
Diffstat (limited to 'bar.go')
-rw-r--r--bar.go8
1 files changed, 4 insertions, 4 deletions
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