2

Is there any DConf/Gsettings etc. interface for changing the wallpaper through the command line?

1 Answer 1

3

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.

4
  • That has to be just typed into the Terminal? Awesome.
    – gone
    May 17, 2016 at 12:19
  • does it take arguments - like centered, scaled, stretched etc?
    – user170
    Feb 24, 2017 at 21:06
  • In Hera the command is /usr/lib/x86_64-linux-gnu/io.elementary.contract.set-wallpaper ~/some-name.png.
    – ivant
    Feb 20, 2021 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.