configuration form the arch linux stored
This commit is contained in:
21
scripts/wallpaper-time.sh
Normal file
21
scripts/wallpaper-time.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
EVENING_THRESH=15
|
||||
NIGHT_THRESH=18
|
||||
while true
|
||||
do
|
||||
HOUR=$(date +%k)
|
||||
if [[ $HOUR > $NIGHT_THRESH ]];
|
||||
then
|
||||
WALLPAPER=night
|
||||
elif [[ $HOUR > $EVENING_THRESH ]];
|
||||
then
|
||||
WALLPAPER=evening
|
||||
else
|
||||
WALLPAPER=day
|
||||
fi
|
||||
|
||||
printf "Setting wallpaper to %s" $WALLPAPER
|
||||
feh --bg-fill ~/wallpaper/$WALLPAPER.png
|
||||
sleep 900
|
||||
done
|
||||
Reference in New Issue
Block a user