diff options
| author | Ezekiel Gonzales <141341590+notsoeazy@users.noreply.github.com> | 2026-01-03 16:04:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-03 19:04:00 +1100 |
| commit | 49b94e7b188010d70920590a50f8441373442dfd (patch) | |
| tree | 463fe914ebcb6cb6f82529ea3c2879d5441bc239 /services/Brightness.qml | |
| parent | bluetooth: make device sort order stable (diff) | |
| download | caelestia-shell-49b94e7b188010d70920590a50f8441373442dfd.tar.gz caelestia-shell-49b94e7b188010d70920590a50f8441373442dfd.tar.bz2 caelestia-shell-49b94e7b188010d70920590a50f8441373442dfd.zip | |
services: add brightnessIncrement config property (#1010)
* feat: Add brightnessIncrement config property
* birghtness increment applies on bar scroll
Diffstat (limited to 'services/Brightness.qml')
| -rw-r--r-- | services/Brightness.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/Brightness.qml b/services/Brightness.qml index ac905fd..12920ee 100644 --- a/services/Brightness.qml +++ b/services/Brightness.qml @@ -1,6 +1,7 @@ pragma Singleton pragma ComponentBehavior: Bound +import qs.config import qs.components.misc import Quickshell import Quickshell.Io @@ -43,13 +44,13 @@ Singleton { function increaseBrightness(): void { const monitor = getMonitor("active"); if (monitor) - monitor.setBrightness(monitor.brightness + 0.1); + monitor.setBrightness(monitor.brightness + Config.services.brightnessIncrement); } function decreaseBrightness(): void { const monitor = getMonitor("active"); if (monitor) - monitor.setBrightness(monitor.brightness - 0.1); + monitor.setBrightness(monitor.brightness - Config.services.brightnessIncrement); } onMonitorsChanged: { |