diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 20:21:56 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-05 20:21:56 +1000 |
| commit | 137fd56bb28aafb6973194208e2b0346367a10fe (patch) | |
| tree | 77475aca38b9a60d014cd6b734c9a8fc1db76355 /services | |
| parent | launcher: focus actual current wall (diff) | |
| download | caelestia-shell-137fd56bb28aafb6973194208e2b0346367a10fe.tar.gz caelestia-shell-137fd56bb28aafb6973194208e2b0346367a10fe.tar.bz2 caelestia-shell-137fd56bb28aafb6973194208e2b0346367a10fe.zip | |
feat: show osd on border hover
Diffstat (limited to 'services')
| -rw-r--r-- | services/Drawers.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/services/Drawers.qml b/services/Drawers.qml new file mode 100644 index 0000000..1f524ab --- /dev/null +++ b/services/Drawers.qml @@ -0,0 +1,20 @@ +pragma Singleton + +import Quickshell + +Singleton { + id: root + + property var positions: ({}) + + signal posChanged(screen: ShellScreen, x: int, y: int) + + function getPosForScreen(screen: ShellScreen): point { + return positions[screen] || Qt.point(0, 0); + } + + function setPosForScreen(screen: ShellScreen, x: int, y: int): void { + positions[screen] = Qt.point(x, y); + posChanged(screen, x, y); + } +} |