From 60eed56ea73e4877e50c04f6e54c24eff383bd90 Mon Sep 17 00:00:00 2001 From: imitoy Date: Sun, 9 Nov 2025 16:12:11 +0800 Subject: [PATCH] Brightness fix: Use percentage brightness to handle multiple devices correctly --- dots/.config/quickshell/ii/services/Brightness.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/services/Brightness.qml b/dots/.config/quickshell/ii/services/Brightness.qml index c5206c601..c443a4a7d 100644 --- a/dots/.config/quickshell/ii/services/Brightness.qml +++ b/dots/.config/quickshell/ii/services/Brightness.qml @@ -152,7 +152,7 @@ Singleton { } function setBrightness(value: real): void { - value = Math.max(0, Math.min(value, 1)); + value = Math.max(0, Math.min(1, value)); monitor.brightness = value; }