mirror of
https://github.com/chenasraf/BitDay-Linux.git
synced 2026-05-17 17:58:04 +00:00
Fix arithmics
This commit is contained in:
@@ -42,8 +42,8 @@ if [[ -z $XDG_CURRENT_DESKTOP ]]; then # Fallback for i3
|
||||
esac
|
||||
fi
|
||||
|
||||
for i in {12..0..-1}; do # Loop backwards through the wallpapers
|
||||
if [[ $hour -ge ${timing[i]} ]]; then
|
||||
for i in $timing; do # Loop backwards through the wallpapers
|
||||
if (( $hour >= $i )); then
|
||||
$setcmd file://$DIR/${files[i]}
|
||||
echo "Wallpaper set to ${files[i]}"
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user