forked from Shinonome/dots-hyprland
Brightness fix: Use percentage brightness to handle multiple devices correctly
This commit is contained in:
@@ -152,7 +152,7 @@ Singleton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setBrightness(value: real): void {
|
function setBrightness(value: real): void {
|
||||||
value = Math.max(0, Math.min(value, 1));
|
value = Math.max(0, Math.min(1, value));
|
||||||
monitor.brightness = value;
|
monitor.brightness = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user