diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-04 16:29:34 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-04 16:29:34 +1000 |
| commit | 4c84e4fff3a0243c9c977114584cda44f2173222 (patch) | |
| tree | 020cf2a25b3fc2a8900d453cd6d7a0a75f7e7632 /services | |
| parent | launcher: anim wallpaperitem creation (diff) | |
| download | caelestia-shell-4c84e4fff3a0243c9c977114584cda44f2173222.tar.gz caelestia-shell-4c84e4fff3a0243c9c977114584cda44f2173222.tar.bz2 caelestia-shell-4c84e4fff3a0243c9c977114584cda44f2173222.zip | |
feat: actually set wallpaper
Make launcher wallpaper picker actually work
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"] |