wallpaper picker

This commit is contained in:
Zacharias-Brohn
2025-11-12 20:28:38 +01:00
parent 14b01ad539
commit d82cb4eda6
6 changed files with 121 additions and 27 deletions
+23
View File
@@ -0,0 +1,23 @@
pragma Singleton
import Quickshell
import Quickshell.Io
Singleton {
id: root
property alias currentWallpaperPath: adapter.currentWallpaperPath
FileView {
id: fileView
path: Quickshell.env("HOME") + "/.local/state/z-bar/wallpaper_path.json"
watchChanges: true
onFileChanged: reload()
onAdapterUpdated: writeAdapter()
JsonAdapter {
id: adapter
property string currentWallpaperPath: ""
}
}
}