adi1090x / battery-wallpaper

Simple bash script to set wallpaper according to battery percentage with charging animations.
GNU General Public License v3.0
394 stars 22 forks source link

Add cache check to the setter function #24

Closed MikaelFangel closed 1 year ago

MikaelFangel commented 1 year ago

Regarding #22 I looked into the script and couldn't find anywhere where it leveraged that you cache the name of the current wallpaper. This PR implements a quick check to see whether the image should be updated or not.

Feel free to correct me if I'm wrong or review the changes.

MikaelFangel commented 1 year ago

Did some more tests and saw that this is irrelevant, at least on KDE.