🖼️ Bash script that gets a random wallhaven image and put it as wallpaper (MATE Only) https://wallhaven.cc
Find a file
Jus de Patate d1482b435e
2022 edition
supports XDG picture folder variable, correct a few bugs and xdg-open after every download
2021-12-16 22:02:33 +01:00
LICENSE 2022 edition 2021-12-16 22:02:33 +01:00
README.md 2022 edition 2021-12-16 22:02:33 +01:00
wallhaven.sh 2022 edition 2021-12-16 22:02:33 +01:00

wallhaven.sh

This is a tiny script that downloads a random image from Wallhaven and then (if user asked for) puts it as MATE wallpaper.

(It will always download to $XDG_PICTURES_DIR/wallhaven/ unless not set, it will download to $HOME/Images/wallhaven/)

Requirements

  • MATE Desktop if you want to put wallpaper,
  • curl,
  • cut,
  • grep,
  • bash. (I haven't tested compatibility with any other shell) (It doesn't require any API Key)
curl https://raw.githubusercontent.com/jusdepatate/wallhaven.sh/master/wallhaven.sh > wallhaven.sh
chmod +x wallhaven.sh
./wallhaven.sh