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

1 Answer 1


Thanks to the Set Wallpaper Contract there already is a convenient way to set a new wallpaper: set-wallpaper


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.

  • That has to be just typed into the Terminal? Awesome.
    – gone
    Commented May 17, 2016 at 12:19
  • Panthon Files context menu entry to set image as wallpaper
    – user170
    Commented Feb 24, 2017 at 20:49
  • does it take arguments - like centered, scaled, stretched etc?
    – user170
    Commented 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
    Commented Feb 20, 2021 at 11:05

Your Answer

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

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