Is there any DConf/Gsettings etc. interface for changing the wallpaper through the command line?
1 Answer
Thanks to the Set Wallpaper Contract there already is a convenient way to set a new wallpaper: set-wallpaper
Example:
set-wallpaper ~/Downloads/coolpicture.png
set-wallpaper some-name.png
will set as wallpaper the file ~/some-name.png
.
If there is no such file at that location, it will create a black desktop: for example a command like set-wallpaper x
.
-
-
-
does it take arguments - like centered, scaled, stretched etc?– user170Feb 24, 2017 at 21:06
-
In Hera the command is
/usr/lib/x86_64-linux-gnu/io.elementary.contract.set-wallpaper ~/some-name.png
.– ivantFeb 20, 2021 at 11:05