I would like to change the wallpaper (to a specific file using its full path) on linux from a shell/bash script.
I already found several approaches (see below) to do that - but those dont work on all desktop environments.
a) Using gnome-settings-daemon / gsettings:
gsettings set org.gnome.desktop.background picture-uri file://$fullPathToMyImage
b) using gconftool-2
gconftool-2 --type=string --set /desktop/gnome/background/picture_filename $fullPathToMyImage
c) using feh
feh --bg-scale $fullPathToMyImage
I am now searching for additional methods (while Gnome seems covered with a, b and c) - preferable for all desktop environments (and all linux distributions).
So far i am at least missing methods for KDE4/5 and XFCE
Similar post: Shell script changing desktop wallpaper