aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/shell.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/quickshell/shell.qml')
-rw-r--r--modules/system/quickshell/shell.qml68
1 files changed, 68 insertions, 0 deletions
diff --git a/modules/system/quickshell/shell.qml b/modules/system/quickshell/shell.qml
new file mode 100644
index 0000000..a61edad
--- /dev/null
+++ b/modules/system/quickshell/shell.qml
@@ -0,0 +1,68 @@
+//@ pragma UseQApplication
+import Quickshell
+import QtQuick
+import Quickshell.Io
+import Quickshell.Wayland
+
+ShellRoot {
+ Component.onCompleted: {
+ Qt.application.font.family = "Inter"
+ Qt.application.font.hintingPreference = Font.PreferNoHinting
+ Qt.application.font.styleStrategy = Font.NoSubpixelAntialias
+ }
+
+ Variants {
+ model: Quickshell.screens
+
+ Bar {
+ required property var modelData
+ screen: modelData
+ }
+ }
+
+ Variants {
+ model: Quickshell.screens
+
+ Background {
+ required property var modelData
+ screen: modelData
+ }
+ }
+
+ Notifications {}
+
+ VolumeOSD {}
+ Polkit {}
+ Launcher {}
+
+ LockContext {
+ id: lockContext
+ onUnlocked: {
+ sessionLock.locked = false;
+ }
+ }
+
+ WlSessionLock {
+ id: sessionLock
+
+ WlSessionLockSurface {
+ LockSurface {
+ anchors.fill: parent
+ context: lockContext
+ }
+ }
+ }
+
+ IpcHandler {
+ target: "bar"
+ function toggleLauncher() {
+ GlobalState.toggle("Launcher")
+ }
+
+ function lock() {
+ lockContext.reset();
+ sessionLock.locked = true
+ }
+ }
+}
+