set-random-wallpaper

This commit is contained in:
Shihaam Abdul Rahman 2022-01-30 04:11:50 +05:00
parent 6e5fea5efd
commit fbb674b81b

7
scripts/set-random-wallpaper Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
WALLDIR=$HOME/Pictures/Wallpapers
FILE=$(ls -l $WALLDIR | tail -n +2 | sort -R | head -1 | awk '{print $9}')
echo Setting Wallaper: $FILE
feh --no-fehbg --bg-scale $WALLDIR/$FILE
#ln -s $WALLDIR/$FILE ~/.config/wallpaper