diff --git a/modules/Bar/Bar.qml b/modules/Bar/Bar.qml index 0ee1c92..6c8f94d 100644 --- a/modules/Bar/Bar.qml +++ b/modules/Bar/Bar.qml @@ -9,6 +9,7 @@ Variants { delegate: PanelWindow { id: root required property ShellScreen modelData + aboveWindows: true margins { top: Settings.config.floating ? Settings.config.margins : 0 left: Settings.config.floating ? Settings.config.margins : 0 diff --git a/modules/wallpaper/Wallpaper.qml b/modules/wallpaper/Wallpaper.qml new file mode 100644 index 0000000..0a9ee9f --- /dev/null +++ b/modules/wallpaper/Wallpaper.qml @@ -0,0 +1,27 @@ +import Quickshell +import QtQuick +import qs +import qs.settings +import Quickshell.Wayland + +Variants { + model: Quickshell.screens + delegate: WlrLayershell { + exclusionMode: ExclusionMode.Ignore + aboveWindows: false + id: wallpaperShell + required property ShellScreen modelData + layer: WlrLayer.Background + anchors { + top: true + bottom: true + left: true + right: true + } + Image { + id: wallpaper + source: Settings.config.currentWall ? Settings.config.currentWall : "" + anchors.fill: parent + } + } +} diff --git a/settings/Settings.qml b/settings/Settings.qml index 7f5890a..4c4af1d 100644 --- a/settings/Settings.qml +++ b/settings/Settings.qml @@ -18,6 +18,7 @@ Singleton { property string font property int fontSize property int margins + property var currentWall } } } diff --git a/shell.qml b/shell.qml index f2650ed..738778c 100644 --- a/shell.qml +++ b/shell.qml @@ -3,9 +3,11 @@ import Quickshell import QtQuick import qs.modules.Bar import qs.modules.ipc +import qs.modules.wallpaper ShellRoot { id: root Bar {} Ipc {} + Wallpaper {} }