diff options
Diffstat (limited to 'services')
| -rw-r--r-- | services/Wallpapers.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/services/Wallpapers.qml b/services/Wallpapers.qml index bd6528d..867d082 100644 --- a/services/Wallpapers.qml +++ b/services/Wallpapers.qml @@ -26,6 +26,19 @@ Singleton { }).map(r => r.obj.wall); } + function setWallpaper(path: string): void { + setWall.path = path; + setWall.startDetached(); + } + + Process { + id: setWall + + property string path + + command: ["caelestia", "wallpaper", "-f", path] + } + Process { running: true command: ["fd", ".", root.path, "-t", "f", "-e", "jpg", "-e", "jpeg", "-e", "png", "-e", "svg"] |