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 }