Wallpaper : random wallpaper improved.

This commit is contained in:
2021-12-17 14:34:04 +09:00
parent 5e459d6235
commit 3585e81545
2 changed files with 9 additions and 2 deletions

View File

@ -3,9 +3,16 @@
#wal_dir=~/ShareDirectory/wallpaper/idol/portrait/karina
wal_dir=~/ShareDirectory/wallpaper/normal
# for wsl
export DISPLAY=192.168.144.1:10.0
files=($wal_dir/**/*)
# random wallpaper
files=()
while IFS= read -r -d $'\0'; do
files+=("$REPLY")
done < <(find $wal_dir -type f -name "*" -print0)
randomfile=$(printf "%s\n" "${files[RANDOM % ${#files[@]}]}")
echo $randomfile
wal -i $randomfile --saturate 1.0

0
scripts/wsl_init_daemon.sh Normal file → Executable file
View File