From 445f6c2ee0a9a21d4de94dff621279887caa25a4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 5 Mar 2026 09:02:49 +0100 Subject: ... --- .../shell/quickshell/Services/Brightness.qml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'accounts/gkleen@sif/shell/quickshell/Services') diff --git a/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml b/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml index 8318df50..52103c6f 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/Brightness.qml @@ -4,6 +4,7 @@ import QtQml import Quickshell import Quickshell.Io import Custom as Custom +import qs.Services Singleton { id: root @@ -72,4 +73,24 @@ Singleton { watchChanges: true onFileChanged: reload() } + + + Timer { + id: startupDelay + interval: 500 + running: true + repeat: false + } + property bool onlyInternal: true + Connections { + target: NiriService + onOutputsChanged: root.onlyInternal = Object.keys(NiriService.outputs).every(oname => oname == "eDP-1") + } + onOnlyInternalChanged: { + if (startupDelay.running) + return; + + if (!root.onlyInternal) + root.currBrightness = 1 + } } -- cgit v1.2.3