X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fwallpaper_shuffle;h=0c05d1589702b0f1a14b6c02039b5cb229546244;hb=11b7df8d9c6623d857070d7577b559161b43a806;hp=1fd851a52d3bdb35206e606404d521c3ce498972;hpb=a68d5744f8758fc77c34c612edac06dbc0bea129;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)"