diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2026-03-12 21:28:36 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2026-03-12 21:28:36 +1100 |
| commit | 96f54e7b70297528dc2781385b2b955cfde3d544 (patch) | |
| tree | 78e4f740b2faf3a287ebdc917f2fbf7e2858b790 /modules | |
| parent | dashboard: dynamic dashboard tabs + fix performance settings updating (#1253) (diff) | |
| download | caelestia-shell-96f54e7b70297528dc2781385b2b955cfde3d544.tar.gz caelestia-shell-96f54e7b70297528dc2781385b2b955cfde3d544.tar.bz2 caelestia-shell-96f54e7b70297528dc2781385b2b955cfde3d544.zip | |
picker: use hyprctl proc to get cursor on init
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/areapicker/Picker.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/areapicker/Picker.qml b/modules/areapicker/Picker.qml index 08f46df..f4f4a36 100644 --- a/modules/areapicker/Picker.qml +++ b/modules/areapicker/Picker.qml @@ -5,6 +5,7 @@ import qs.services import qs.config import Caelestia import Quickshell +import Quickshell.Io import Quickshell.Wayland import QtQuick import QtQuick.Effects @@ -191,6 +192,17 @@ MouseArea { } } + Process { + running: true + command: ["hyprctl", "cursorpos", "-j"] + stdout: StdioCollector { + onStreamFinished: { + const pos = JSON.parse(text); + root.checkClientRects(pos.x - root.screen.x, pos.y - root.screen.y); + } + } + } + Loader { id: screencopy |