summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-13 16:30:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-13 16:30:53 +1000
commitad7c6ea98e4588172398669bb8b7939999c7f121 (patch)
tree29cf2fb3e7ccd3884b83f97b7f457be1311ebed0 /services
parentnotifs: better sliding (diff)
downloadcaelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.tar.gz
caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.tar.bz2
caelestia-shell-ad7c6ea98e4588172398669bb8b7939999c7f121.zip
refactor: move to single window
Diffstat (limited to 'services')
-rw-r--r--services/Drawers.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/services/Drawers.qml b/services/Drawers.qml
index 6155d5d..7e7d97a 100644
--- a/services/Drawers.qml
+++ b/services/Drawers.qml
@@ -1,10 +1,16 @@
pragma Singleton
import Quickshell
+import QtQuick
Singleton {
id: root
+ property var visibilities: Quickshell.screens.reduce((acc, s) => {
+ acc[s] = visibleComp.createObject(root);
+ return acc;
+ }, {})
+
property var positions: ({})
property int rightExclusion
@@ -14,4 +20,15 @@ Singleton {
positions[screen] = Qt.point(x, y);
posChanged(screen, x, y);
}
+
+ Component {
+ id: visibleComp
+
+ QtObject {
+ property bool launcher
+ property bool osd
+ property bool notifs
+ property bool session
+ }
+ }
}