From 7ce8e51fa3e367b44195fc6aa93d485055776d58 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Wed, 20 Aug 2025 12:42:35 +0200 Subject: [PATCH] Fix brightness ipc call --- Modules/IPC/IPCManager.qml | 1 + Services/BrightnessService.qml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/Modules/IPC/IPCManager.qml b/Modules/IPC/IPCManager.qml index 4c9a02c..638bc8e 100644 --- a/Modules/IPC/IPCManager.qml +++ b/Modules/IPC/IPCManager.qml @@ -1,5 +1,6 @@ import QtQuick import Quickshell.Io +import qs.Services Item { id: root diff --git a/Services/BrightnessService.qml b/Services/BrightnessService.qml index 6770a2f..2295451 100644 --- a/Services/BrightnessService.qml +++ b/Services/BrightnessService.qml @@ -27,6 +27,15 @@ Singleton { return methods } + // Global helpers for IPC and shortcuts + function increaseBrightness(): void { + monitors.forEach(m => m.increaseBrightness()) + } + + function decreaseBrightness(): void { + monitors.forEach(m => m.decreaseBrightness()) + } + function getDetectedDisplays(): list { return detectedDisplays }