Skip to content

Commit

Permalink
Backlight: Set default to 0 to prevent breaking existing setups
Browse files Browse the repository at this point in the history
  • Loading branch information
TripleTrable committed Sep 25, 2024
1 parent 47f767b commit d684a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion man/waybar-backlight.5.scd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The *backlight* module displays the current backlight level.

*min-brightness*: ++
typeof: double ++
default: 10.0 ++
default: 0.0 ++
The minimum brightness of the backlight.

*menu*: ++
Expand Down
2 changes: 1 addition & 1 deletion src/modules/backlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ bool waybar::modules::Backlight::handleScroll(GdkEventScroll *e) {
step = config_["scroll-step"].asDouble();
}

double min_brightness = 10;
double min_brightness = 0;
if (config_["min-brightness"].isDouble()) {
min_brightness = config_["min-brightness"].asDouble();
}
Expand Down

0 comments on commit d684a6d

Please sign in to comment.