quickshell/modules/wallpaper/Wallpaper.qml
2026-03-19 11:32:23 +01:00

43 lines
1.1 KiB
QML

import Quickshell
import QtQuick
import qs
import qs.settings
import Quickshell.Wayland
Variants {
model: Quickshell.screens
delegate: WlrLayershell {
id: wallpaperShell
exclusionMode: ExclusionMode.Ignore
aboveWindows: false
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
}
DesktopClock {
anchors {
bottom: parent.bottom
right: parent.right
margins: Settings.config.margins + 5
}
}
PlayerWidget {
anchors {
top: parent.top
left: parent.left
margins: Settings.config.margins + 5
topMargin: Settings.config.margins + Settings.config.barHeight + 15
}
}
}
}