quickshell: BackgroundImage: enable backgounds again

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a6964a68815e795aa84d4a173542c01893d35
This commit is contained in:
Bloxx12 2025-07-19 19:26:54 +02:00
commit 45179ade64
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw

View file

@ -10,9 +10,9 @@ PanelWindow {
WlrLayershell.layer: WlrLayer.Background
WlrLayershell.namespace: "shell:background"
// property string basePath: "file:///home/cr/Documents/Backgrounds/"
// property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath")
// property var finalPath: absPath
property string basePath: "file:///home/cr/Documents/Backgrounds/"
property var absPath: folderModel.get(Math.floor(Math.random() * folderModel.count), "filePath")
property var finalPath: absPath
// property bool _: log()
// function log() {
@ -22,7 +22,7 @@ PanelWindow {
// }
FolderListModel {
id: folderModel
// folder: root.basePath
folder: root.basePath
nameFilters: ["*.png"]
showDirs: false
showFiles: true
@ -35,14 +35,14 @@ PanelWindow {
right: true
}
// Item {
// id: background
// anchors.fill: parent
// Image {
// id: image
// source: Qt.resolvedUrl(root.finalPath)
// }
// }
Item {
id: background
anchors.fill: parent
Image {
id: image
source: Qt.resolvedUrl(root.finalPath)
}
}
Timer {
id: timer
// 10 minutes