Wallpaper: added IPC to set a wallpaper

qs -c noctalia-shell ipc call wallpaper set $path $monitor

$monitor can be a monitor name or "all" or "" to assign to all monitors.
This commit is contained in:
LemmyCook 2025-09-04 16:17:31 -04:00
parent 9168eba07b
commit 84fdb7c647
3 changed files with 12 additions and 5 deletions

View file

@ -138,5 +138,12 @@ Item {
WallpaperService.setRandomWallpaper()
}
}
function set(path: string, screen: string) {
if (screen === "all" || screen === "") {
screen = undefined
}
WallpaperService.changeWallpaper(path, screen)
}
}
}