I want to change the wallpaper of xmonad from the command line.
How can I do this?
You can use feh:
feh --bg-scale /path/to/wallpaper You can also set up bash scripts to change wallpaper to random one every X minutes(I use it with feh), get random wallpaper on each boot, etc. The Arch wiki explains it nicely.
According to this Super User Q&A, you can try:
xloadimage -onroot -fullscreen /path/to/background_image Or
xpmroot /path/to/background_image Or, and this should work on pretty much any desktop environment:
feh --bg-fill /path/to/background_image You can use xsetroot for simple backgrounds.
For a solid color:
xsetroot -solid black For a bitmap:
xsetroot -bitmap filename.bmp