diff options
Diffstat (limited to 'sh/shufwall')
-rwxr-xr-x | sh/shufwall | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sh/shufwall b/sh/shufwall new file mode 100755 index 0000000..5b249e1 --- /dev/null +++ b/sh/shufwall @@ -0,0 +1,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 "${SCR_WIDTH}x$SCR_HEIGHT" -backdrop -window root "$file" |