Skip to content

Commit

Permalink
docs(bar): add a position.end.y val warning
Browse files Browse the repository at this point in the history
For dummies like me who set this to 0.0 and then wonder why the bar
disappears on config change.
  • Loading branch information
LGUG2Z committed Nov 20, 2024
1 parent ac243c6 commit 8de92ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions komorebi-bar/src/bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ impl Komobar {
y: BAR_HEIGHT,
});

if end.y == 0.0 {
tracing::warn!("position.end.y is set to 0.0 which will make your bar invisible on a config reload - this is usually set to 50.0 by default")
}

let rect = komorebi_client::Rect {
left: start.x as i32,
top: start.y as i32,
Expand Down

0 comments on commit 8de92ec

Please sign in to comment.