#!/bin/sh wall="$HOME/var/tmp/wall.jpg" res=$(xdpyinfo) if [ $? -eq 0 ]; then res=$(echo "$res" | awk '/dimensions:/{print $2}') else echo "ERROR: $res" exit 1 fi wget -O "$wall" "https://source.unsplash.com/$res/?tunnel,architecture" && feh --no-fehbg --bg-fill "$wall"