diff options
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 |