From 0ac96e02ab770a1100046dc47c58a46a22f890ab Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Wed, 22 Oct 2025 22:13:23 +0200 Subject: [PATCH] brightness service: more edging --- dots/.config/quickshell/ii/services/Brightness.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dots/.config/quickshell/ii/services/Brightness.qml b/dots/.config/quickshell/ii/services/Brightness.qml index 3f9d93767..26c7be6cd 100644 --- a/dots/.config/quickshell/ii/services/Brightness.qml +++ b/dots/.config/quickshell/ii/services/Brightness.qml @@ -14,6 +14,7 @@ import QtQuick */ Singleton { id: root + property real minimumBrightnessAllowed: 0.00001 // Setting to 0 would kind of turn off the screen. We don't want that. signal brightnessChanged() @@ -125,7 +126,7 @@ Singleton { } function setBrightness(value: real): void { - value = Math.max(0.01, Math.min(1, value)); + value = Math.max(root.minimumBrightnessAllowed, Math.min(1, value)); monitor.brightness = value; setTimer.restart(); }