diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 17:43:04 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-13 17:43:04 +1000 |
| commit | 9c3e2fffbd31c3864ef7edc6212c1c601357f031 (patch) | |
| tree | 78f45af391db6b7096da61342beceb3904e7819e /services/Hyprland.qml | |
| parent | osd: show on hover (diff) | |
| download | caelestia-shell-9c3e2fffbd31c3864ef7edc6212c1c601357f031.tar.gz caelestia-shell-9c3e2fffbd31c3864ef7edc6212c1c601357f031.tar.bz2 caelestia-shell-9c3e2fffbd31c3864ef7edc6212c1c601357f031.zip | |
osd: fix show on hover + show on audio/brightness change
Diffstat (limited to 'services/Hyprland.qml')
| -rw-r--r-- | services/Hyprland.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/Hyprland.qml b/services/Hyprland.qml index a1f5cbb..515441e 100644 --- a/services/Hyprland.qml +++ b/services/Hyprland.qml @@ -15,6 +15,7 @@ Singleton { readonly property HyprlandWorkspace activeWorkspace: focusedMonitor?.activeWorkspace ?? null readonly property HyprlandMonitor focusedMonitor: Hyprland.focusedMonitor readonly property int activeWsId: activeWorkspace?.id ?? 1 + property point cursorPos function reload() { Hyprland.refreshWorkspaces(); @@ -38,6 +39,19 @@ Singleton { } } + FrameAnimation { + running: true + onTriggered: getCursorPos.running = true + } + + Process { + id: getCursorPos + command: ["hyprctl", "cursorpos"] + stdout: SplitParser { + onRead: data => root.cursorPos = data + } + } + Process { id: getClients command: ["sh", "-c", "hyprctl -j clients | jq -c"] |