Compare commits
No commits in common. "95499d1130a2c34477c8184ff333c45b4cca98ad" and "84ba87dcf88f3463e1188603d3c47cb9c2a96d2a" have entirely different histories.
95499d1130
...
84ba87dcf8
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
PID=`cat /tmp/$USER-wallpaper.pid`
|
||||
|
||||
if [ $PID ]; then
|
||||
kill -SIGUSR1 $PID
|
||||
else
|
||||
systemctl --user restart wallpapers.service
|
||||
fi
|
|
@ -226,7 +226,7 @@ sub crop
|
|||
my $oh = shift;
|
||||
|
||||
my $cropped = $image;
|
||||
$cropped =~ s#^.*/([^/]*)\.([^\.]+)$#$self->{'path'}$1-cropped.$2#;
|
||||
$cropped =~ s#^.*/([^/]*)\.([^\.]+)$#$1-cropped.$2#;
|
||||
|
||||
#$image = "/tmp/Pharma-out.png.jpg";
|
||||
use Image::Magick;
|
||||
|
@ -355,9 +355,9 @@ sub run
|
|||
}
|
||||
$self->set_background($target,$cropped);
|
||||
if ($self->{crop}) {
|
||||
# Give swaybg a second, otherwise the file will be missing before it ends
|
||||
sleep(1);
|
||||
$self->do_log('LOG_DEBUG', "Deleting $cropped");
|
||||
# Give swaybg a second, otherwise the file will be missing before it ends
|
||||
sleep(2);
|
||||
unlink($cropped) || $self->do_log("LOG_WARNING", "Failed to delete $cropped after setting: $!");
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue