X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fwallpaper_shuffle;h=0c05d1589702b0f1a14b6c02039b5cb229546244;hb=d061650f1de1e65c1a3dc979834286192bef80f8;hp=1fd851a52d3bdb35206e606404d521c3ce498972;hpb=7af1572a011a62980ca75d66af35570b26845548;p=khome.git diff --git a/home/bin/wallpaper_shuffle b/home/bin/wallpaper_shuffle index 1fd851a..0c05d15 100755 --- a/home/bin/wallpaper_shuffle +++ b/home/bin/wallpaper_shuffle @@ -2,20 +2,4 @@ set -e -path=$( - find \ - $@ \ - -type f \ - | awk ' - { - paths[i++] = $0 - } - - END { - srand() - j = int(i * rand()) - print paths[j] - }' -) -printf "$path\n" >&2 -feh --bg-scale "$path" +feh --bg-scale "$(find "$DIR_WALLPAPERS" -type f | randline)"