From 9a7cf1242d296dbdb9c03df48ab09054960295aa Mon Sep 17 00:00:00 2001 From: Leander Scherer Date: Mon, 18 May 2026 21:48:24 +0200 Subject: feat(quickshell): basic bar, tray, notification --- modules/system/quickshell/shell.qml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 modules/system/quickshell/shell.qml (limited to 'modules/system/quickshell/shell.qml') 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 + } + } +} + -- cgit v1.3.1