quickshell/modules/wallpaper/Wallpaper.qml

33 lines
680 B
QML
Raw Normal View History

import QtQuick
import Quickshell
import Quickshell.Wayland
2025-12-22 15:16:00 +01:00
import "."
import Quickshell.Io
WlrLayershell {
id: root
// 1. Send it to the bottom of the stack!
layer: WlrLayer.Background
// 2. Stretch it to cover the ENTIRE screen
anchors {
top: true
bottom: true
left: true
right: true
}
// 3. IMPORTANT: Tell the compositor NOT to reserve space for this.
// If you don't do this, your wallpaper might push your windows aside!
exclusionMode: ExclusionMode.Ignore
// 4. The actual content
2025-12-22 15:16:00 +01:00
Image {
2025-12-22 15:16:00 +01:00
id: actualWall
anchors.fill: parent
2025-12-22 15:16:00 +01:00
source: WallpaperStore.currentWall
}
}