summaryrefslogtreecommitdiff
path: root/bar.go
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2024-04-14 13:48:13 +0100
committerhhvn <dev@hhvn.uk>2024-04-14 13:48:13 +0100
commit75a34eb4b035963970c8415316c2b2bd6a81eea6 (patch)
treee648fc1c0df1cf8410a44d22094abceaea67ee4e /bar.go
parent6154256e9ad6fcac5360755372612315374fdc21 (diff)
Use config.Urg for desktops with urgent window
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