From 4c84e4fff3a0243c9c977114584cda44f2173222 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 4 May 2025 16:29:34 +1000 Subject: feat: actually set wallpaper Make launcher wallpaper picker actually work --- services/Wallpapers.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'services') 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"] -- cgit v1.2.3-freya