mirror of
http://github.com/JaeUs3792/dotfiles
synced 2025-12-13 23:51:34 +09:00
Wallpaper : random wallpaper improved.
This commit is contained in:
@ -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
0
scripts/wsl_init_daemon.sh
Normal file → Executable file
Reference in New Issue
Block a user