termux-api-package icon indicating copy to clipboard operation
termux-api-package copied to clipboard

More control over wallpaper [2/2]

Open TpmKranz opened this issue 3 years ago • 1 comments

The old implementation allowed only to set one of the two backgrounds at one time, but not both at once.

The Bash part of this is backwards compatible with the old WallpaperAPI implementation, but trying -l home would paradoxically set the lockscreen wallpaper. Cf. https://github.com/termux/termux-api/pull/526 for the Java part.

TpmKranz avatar Jun 21 '22 15:06 TpmKranz

The old implementation sets the leftmost part of the image as the initially visible area, making it necessary to crop images before handing them over to termux-wallpaper, when that functionality is already provided by the setBitmap method.

The rectangle specification was inspired by ImageMagick, but cut down (and in the case of relative offsets changed) a bit for the specific use case of setting wallpapers.

TpmKranz avatar Jun 25 '22 10:06 TpmKranz