Files
z-bar-qt/Helpers/WallpaperPath.qml
Zacharias-Brohn 9cf054a1c6 launcher overhaul
2026-02-17 17:12:34 +01:00

27 lines
595 B
QML

pragma Singleton
import Quickshell
import Quickshell.Io
import qs.Paths
Singleton {
id: root
property alias currentWallpaperPath: adapter.currentWallpaperPath
property alias lockscreenBg: adapter.lockscreenBg
FileView {
id: fileView
path: `${Paths.state}/wallpaper_path.json`
watchChanges: true
onFileChanged: reload()
onAdapterUpdated: writeAdapter()
JsonAdapter {
id: adapter
property string currentWallpaperPath: ""
property string lockscreenBg: `${Paths.state}/lockscreen_bg.png`
}
}
}