Backlight: Set default to 0 to prevent breaking existing setups
This commit is contained in:
@ -83,7 +83,7 @@ The *backlight* module displays the current backlight level.
|
|||||||
|
|
||||||
*min-brightness*: ++
|
*min-brightness*: ++
|
||||||
typeof: double ++
|
typeof: double ++
|
||||||
default: 10.0 ++
|
default: 0.0 ++
|
||||||
The minimum brightness of the backlight.
|
The minimum brightness of the backlight.
|
||||||
|
|
||||||
*menu*: ++
|
*menu*: ++
|
||||||
|
@ -112,7 +112,7 @@ bool waybar::modules::Backlight::handleScroll(GdkEventScroll *e) {
|
|||||||
step = config_["scroll-step"].asDouble();
|
step = config_["scroll-step"].asDouble();
|
||||||
}
|
}
|
||||||
|
|
||||||
double min_brightness = 10;
|
double min_brightness = 0;
|
||||||
if (config_["min-brightness"].isDouble()) {
|
if (config_["min-brightness"].isDouble()) {
|
||||||
min_brightness = config_["min-brightness"].asDouble();
|
min_brightness = config_["min-brightness"].asDouble();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user