diff options
Diffstat (limited to 'services')
| -rw-r--r-- | services/Brightness.qml | 4 | ||||
| -rw-r--r-- | services/Hypr.qml (renamed from services/Hyprland.qml) | 0 | ||||
| -rw-r--r-- | services/Visibilities.qml | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/services/Brightness.qml b/services/Brightness.qml index 954f76d..086bc65 100644 --- a/services/Brightness.qml +++ b/services/Brightness.qml @@ -18,14 +18,14 @@ Singleton { } function increaseBrightness(): void { - const focusedName = Hyprland.focusedMonitor.name; + const focusedName = Hypr.focusedMonitor.name; const monitor = monitors.find(m => focusedName === m.modelData.name); if (monitor) monitor.setBrightness(monitor.brightness + 0.1); } function decreaseBrightness(): void { - const focusedName = Hyprland.focusedMonitor.name; + const focusedName = Hypr.focusedMonitor.name; const monitor = monitors.find(m => focusedName === m.modelData.name); if (monitor) monitor.setBrightness(monitor.brightness - 0.1); diff --git a/services/Hyprland.qml b/services/Hypr.qml index 0f31453..0f31453 100644 --- a/services/Hyprland.qml +++ b/services/Hypr.qml diff --git a/services/Visibilities.qml b/services/Visibilities.qml index bd431db..0f09e3a 100644 --- a/services/Visibilities.qml +++ b/services/Visibilities.qml @@ -1,16 +1,15 @@ pragma Singleton import Quickshell -import Quickshell.Hyprland Singleton { property var screens: new Map() function load(screen: ShellScreen, visibilities: var): void { - screens.set(Hyprland.monitorFor(screen), visibilities); + screens.set(Hypr.monitorFor(screen), visibilities); } function getForActive(): PersistentProperties { - return screens.get(Hyprland.focusedMonitor); + return screens.get(Hypr.focusedMonitor); } } |