diff --git a/sway/wallpaper.pl b/sway/wallpaper.pl index f1c2efd..5aabc79 100755 --- a/sway/wallpaper.pl +++ b/sway/wallpaper.pl @@ -357,7 +357,7 @@ sub run if ($self->{crop}) { $self->do_log('LOG_DEBUG', "Deleting $cropped"); # Give swaybg a second, otherwise the file will be missing before it ends - sleep(1); + sleep(2); unlink($cropped) || $self->do_log("LOG_WARNING", "Failed to delete $cropped after setting: $!"); } } else {