set_wall.sh: Find files only.

This commit is contained in:
Kolan Sh 2015-03-24 13:38:08 +03:00
parent 4127fcd2ac
commit f2f467f30f
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
if [ -d $1 ]; then
f="$(find $1 | shuf -n1)"
f="$(find $1 -type f | shuf -n1)"
ln -sf "$f" ~/.config/awesome/wallpaper.slink
feh --bg-scale "$f"
else