This commit is contained in:
Zacharias-Brohn
2026-03-19 00:14:09 +01:00
parent a982ca500b
commit c1efd7dacc
5 changed files with 249 additions and 34 deletions
+1 -20
View File
@@ -2,28 +2,9 @@ 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
onAdapterUpdated: writeAdapter()
onFileChanged: reload()
JsonAdapter {
id: adapter
property string currentWallpaperPath: ""
property string lockscreenBg: `${Paths.state}/lockscreen_bg.png`
}
}
property string lockscreenBg: `${Quickshell.shellDir}/images/greeter_bg.png`
}