Files
osu-shell/Wall.qml

38 lines
814 B
QML

import Quickshell
import Quickshell.Io
import QtQuick
import QtQuick.Effects
Variants {
model: Quickshell.screens
PanelWindow {
anchors {
top: true
right: true
bottom: true
left: true
}
aboveWindows: false
property var modelData
screen: modelData
color: "#222222"
Item {
anchors.fill: parent
Image {
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
source: {
const _source = path.text()
return _source.substring(0, _source.length - 1)
}
}
}
FileView {
id: path
path: Qt.resolvedUrl("wall.txt")
}
}
}