quickshell/modules/wallpaper/Wallpaper.qml

43 lines
1.1 KiB
QML
Raw Normal View History

2026-03-09 19:32:44 +01:00
import Quickshell
import QtQuick
import qs
import qs.settings
import Quickshell.Wayland
Variants {
model: Quickshell.screens
delegate: WlrLayershell {
id: wallpaperShell
2026-03-13 18:58:17 +01:00
exclusionMode: ExclusionMode.Ignore
aboveWindows: false
2026-03-09 19:32:44 +01:00
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
}
2026-03-13 18:58:17 +01:00
DesktopClock {
anchors {
bottom: parent.bottom
right: parent.right
2026-03-19 11:32:23 +01:00
margins: Settings.config.margins + 5
2026-03-13 18:58:17 +01:00
}
}
PlayerWidget {
anchors {
top: parent.top
left: parent.left
margins: Settings.config.margins + 5
topMargin: Settings.config.margins + Settings.config.barHeight + 15
}
}
2026-03-09 19:32:44 +01:00
}
}