wallpaper-bing.sh 310 B

1234567891011
  1. #!/usr/bin/env bash
  2. set -euo pipefail # bash strict mode
  3. urlpath=$( \
  4. curl "https://www.bing.com/HPImageArchive.aspx?format=rss&idx=0&n=1&mkt=en-US" \
  5. | xmllint --xpath "/rss/channel/item/link/text()" - \
  6. | sed 's/1366x768/1920x1080/g' \
  7. )
  8. curl "https://www.bing.com${urlpath}" | feh --bg-fill -