Change backgroud from terminal

Asked by Mauro Sebastian Ferraresi

Hi, I'm trying integrate IoT tecnologic with my pc and I want know if exist any command to change backgrouds from terminal.
Thx.

Question information

Language:
English Edit question
Status:
Answered
For:
Variety Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
James Lu (jlu5) said :
#1

Hi,

Feel free to take a look at set_wallpaper in the source: https://github.com/varietywalls/variety/blob/master/data/scripts/set_wallpaper

Variety changes the wallpaper by passing the wallpaper file to this script, which in turn invokes a command to change the wallpaper based on your desktop environment. (If you're only using a window manager, set_wallpaper also tries standalone wallpaper changers feh and nitrogen.) The exact command varies by desktop, but hopefully you can find something useful there.

Revision history for this message
Peter Levi (peterlevi) said :
#2

Or you can just use the script directly.
Alternatively, if you have Variety running all the time, you may also just do "variety --set /path/to/wallpaper".

Can you help with this problem?

Provide an answer of your own, or ask Mauro Sebastian Ferraresi for more information if necessary.

To post a message you must log in.