summaryrefslogtreecommitdiff
path: root/.local/bin/shufwall
blob: 4703125fe5b1c339af31bfbfa6077903a6119979 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ -z "$1" ]; then
	file=$(find -L "$XDG_PICTURES_DIR/wallpapers" -type f | shuf -n 1)
else
	file=$(find -L "$@" -maxdepth 1 -type f | shuf -n 1)
fi

display -resize "${SCRWIDTH}x$SCRHEIGHT" -backdrop -window root "$file"
l not let `for tz in ...` loop one extra time? t) for i in $(seq "$OPTARG"); do tz_to="$(tzselect),$tz_to" done;; T) tz_to="$OPTARG,$tz_to";; \?) exit 1;; esac done shift $((OPTIND-1))