Fix arithmics

This commit is contained in:
Chen Asraf
2016-12-07 16:39:50 +02:00
parent b7537b354a
commit b86b6dacdf
+2 -2
View File
@@ -42,8 +42,8 @@ if [[ -z $XDG_CURRENT_DESKTOP ]]; then # Fallback for i3
esac esac
fi fi
for i in {12..0..-1}; do # Loop backwards through the wallpapers for i in $timing; do # Loop backwards through the wallpapers
if [[ $hour -ge ${timing[i]} ]]; then if (( $hour >= $i )); then
$setcmd file://$DIR/${files[i]} $setcmd file://$DIR/${files[i]}
echo "Wallpaper set to ${files[i]}" echo "Wallpaper set to ${files[i]}"
exit exit