Although it is possible to set the wallpaper through the command line I was unable to find an option for the background
usr_40476@localhost:~> plasma-apply-wallpaperimage --help
Usage: plasma-apply-wallpaperimage [options] imagefile
This tool allows you to set an image as the wallpaper for the Plasma session.
Options:
-h, --help Displays help on commandline options.
--help-all Displays help including Qt specific options.
Arguments:
imagefile An image file or an installed wallpaper kpackage that you wish to
set as the wallpaper for your Plasma session
usr_40476@localhost:~>
also i’m afraid I may have broken the sign up process and seem to have borked my email as I cannot get my password reset to work with either of my emails
The code is declarative rather than imperative, so if you’re looking for something that says
if (wallpapercolor) {
applyWallpaperColorToDesktop();
return 0;
}
Then that would be why you aren’t finding it.
What the code in that file is doing is instantiating a WallpaperItem object, which is the base class for wallpaper subclasses. Then that object is completely filled with a Rectangle whose color comes from the value of root.configuration.Color, which is set by the user in wallpapers/color/contents/ui/config.qml · master · Plasma / Plasma Workspace · GitLab. This colored rectangle is then used as he wallpaper.
So your command-line program will need to set the value of the Color configuration string.
I think i forgot to mention that this is my first time with C or C++, so I may have walked into a bit of a situation, but I am determined to make it a learning opportunity, could some guide me though the proccess?
I have programming knowled in javascript and that is about it but I wanted to be better at the skills that I would need to work on/add features I was curious about