quickshell/modules/wallpaper/Wallpaper.qml

37 lines
826 B
QML

import QtQuick
import Quickshell
import Quickshell.Wayland
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
Image {
anchors.fill: parent
source: "/home/lucy/.walls/eoe.png"
fillMode: Image.PreserveAspectCrop
}
// Bonus: A dark rectangle to dim the wallpaper slightly?
Rectangle {
anchors.fill: parent
color: "black"
opacity: 0.2
}
}