|
@ -7,18 +7,18 @@ afternoon=19 |
|
|
cached=$(cat /tmp/day_cache) |
|
|
cached=$(cat /tmp/day_cache) |
|
|
|
|
|
|
|
|
if [ $hour \< $morning ]; then |
|
|
if [ $hour \< $morning ]; then |
|
|
if [ ! "$cached" = "morning" ]; then |
|
|
|
|
|
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper-mountain.jpg |
|
|
|
|
|
echo "morning" > /tmp/day_cache |
|
|
|
|
|
|
|
|
if [ ! "$cached" = "night" ]; then |
|
|
|
|
|
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper-shack.jpg |
|
|
|
|
|
echo "night" > /tmp/day_cache |
|
|
fi |
|
|
fi |
|
|
elif [ $hour \< $afternoon ]; then |
|
|
|
|
|
|
|
|
elif [ $hour \> $afternoon ]; then |
|
|
if [ ! "$cached" = "afternoon" ]; then |
|
|
if [ ! "$cached" = "afternoon" ]; then |
|
|
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper-sea.jpg |
|
|
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper-sea.jpg |
|
|
echo "afternoon" > /tmp/day_cache |
|
|
echo "afternoon" > /tmp/day_cache |
|
|
fi |
|
|
fi |
|
|
else |
|
|
else |
|
|
if [ ! "$cached" = "night" ]; then |
|
|
|
|
|
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper-shack.jpg |
|
|
|
|
|
echo "night" > /tmp/day_cache |
|
|
|
|
|
|
|
|
if [ ! "$cached" = "morning" ]; then |
|
|
|
|
|
feh --bg-fill /home/yigit/.dotfiles/backgrounds/wallpaper-mountain.jpg |
|
|
|
|
|
echo "morning" > /tmp/day_cache |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |