4 ms·
I have a MBPR. - I used QuickRes2 to switch to a much higher resolution 1920x1680 which is not possible otherwise. - Wrote a script to download the beautiful b
by helloanand 13y ago
I have a MBPR.
- I used QuickRes2 to switch to a much higher resolution 1920x1680 which is not possible otherwise.
- Wrote a script to download the beautiful bing.com backgrounds for use as wallpapers
- gsands 13y agoCare to share the script?
- helloanand 13y ago#!/usr/bin/env bash PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin PICTURE_DIR="/path/to/your/directory" #mkdir -p $PICTURE_DIR cd $PICTURE_DIR urls=( $(curl -s http://www.bing.com|grep http://www.bing.com|grep -Eo "url:'.?'"|sed -e "s/url:'\([^']\)'./http:\/\/bing.com\1/"|sed -e "s/\\\//g") ) for p in ${urls[@]}; do filename=$(echo $p|sed -e "s/.\/\(.*\)/\1/") if [ ! -f $PICTURE_DIR/$filename ]; then echo "Downloading: $filename ..." #wget -q -O $PICTURE_DIR/$filename $p curl -Lo "$PICTURE_DIR/$filename" $p else echo "Skipping: $filename ..." fi done