Bug 416108

Summary: More user-friendly and discoverable terminal interface for changing wallpaper
Product: [Plasma] plasmashell Reporter: accounts
Component: Image & Slideshow wallpaper pluginsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: wishlist CC: 4wy78uwh, nate, plasma-bugs-null, qydwhotmail
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.24
Sentry Crash Report:

Description accounts 2020-01-11 06:07:17 UTC
It would be nice if a sane terminal interface for changing the background/lockscreen image was provided, since the current solution requires the user to know plasmashell scripting which can't be expected of new users.

Examples:
ksetbg --display-x --stretch image.jpeg
ksetbg --lockscr --fit image.jpeg

Old way:
dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:
var Desktops = desktops();                                                                                                                       
for (i=0;i<Desktops.length;i++) {
        d = Desktops[i];
        d.wallpaperPlugin = "org.kde.image";
        d.currentConfigGroup = Array("Wallpaper",
                                    "org.kde.image",
                                    "General");
        d.writeConfig("Image", "file:///PATH/TO/IMAGE.png");
}'
Comment 1 Nate Graham 2020-01-12 16:34:50 UTC
> which can't be expected of new users.
Well, new users don't use the terminal to change their wallpaper, they use the GUI. :)

Still, seems like a valid request.
Comment 2 Nate Graham 2022-05-06 18:43:42 UTC
We have the plasma-apply-wallpaperimage tool now! That should do the trick.
Comment 3 Roke Julian Lockhart Beedell 2022-08-11 13:41:30 UTC
(In reply to Nate Graham from comment #2)
> We have the plasma-apply-wallpaperimage tool now! That should do the trick.

I don't believe that that tool entirely remediates this problem, because it solely allows the user to apply an image, rather than merely colour or the additional options that the graphical interface does. I believe that such a tool should really possess feature-parity with its graphical counterpart.