noctalia-shell/Widgets/Background.qml
2025-07-11 14:14:28 +02:00

31 lines
No EOL
836 B
QML

import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Helpers
import qs.Settings
ShellRoot {
property string wallpaperSource: Settings.currentWallpaper !== "" ? Settings.currentWallpaper : "/home/lysec/nixos/assets/wallpapers/lantern.png"
PanelWindow {
anchors {
bottom: true
top: true
right: true
left: true
}
margins {
top: 0
}
color: "transparent"
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.exclusionMode: ExclusionMode.Ignore
WlrLayershell.namespace: "quickshell-wallpaper"
Image {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
source: wallpaperSource
cache: true
smooth: true
}
}
}