mirror of
https://github.com/Threnklyn/BitDay-Linux.git
synced 2026-05-18 20:13:27 +02:00
Fix arithmics
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user