Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Change wallpaper on display events #126

Open
BitTim opened this issue Sep 5, 2024 · 4 comments
Open

[Feature request] Change wallpaper on display events #126

BitTim opened this issue Sep 5, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@BitTim
Copy link

BitTim commented Sep 5, 2024

Is your feature request related to a problem? Please describe.
I am a big fan of Material You theming and have a large collection of wallpapers, which I want to change rather frequently, like every 5 minutes. Since I also user Repainter to basically force a color scheme change, each time the color scheme gets changed, the currently active app basically resets.

Describe the solution you'd like
My solution to my problem would be the wallpaper to change after turning off the screen, so that a new wallpaper is already set when I turn the screen on again. This would not trigger any color scheme changes while using any apps and would keep my wallpapers changing in a fairly frequent manner.

Describe alternatives you've considered
I was originaly using Wallpaper Changer by j4velin, which has an option to change the wallpaper on device unlock, but that introduces a certain delay after which the wallpaper is being set and as such is not a very seamless experience.
Currently I am using Tasker with a basic automation that runs on each display off event, and executes the change wallpaper function of Paperize via the Tasker plugin, but I'd also appreciate it if it was a built in feature within Paperize as I would like to not use Tasker as much.

Additional context
One might read this and think that this is a Repainter issue, but what Repainter is doing in my case is expected behaviour. Having the wallpaper change while the display is off would be a great feture regardless of using Repainter or not

@BitTim BitTim added the enhancement New feature or request label Sep 5, 2024
@Anthonyy232
Copy link
Owner

I understand what you are asking, I've looked into this before but couldn't find an implementation that I liked. I will keep this on the backburner and look into it when I have time. Thanks!

@TCreopargh
Copy link

I also have a similar need for this feature. However, I noticed that music apps restart when the color theme changes, which means that if the wallpaper changes every time the screen turns off, you basically can't listen to music. To avoid this, it would be helpful to implement a workaround:

Possible workaround 1: Pair time intervals with display events, ensuring there's a minimum time between wallpaper changes. For example, if time interval is set to 30mins and "change wallpaper when screen is turned off" is set to ON, turning off the screen would not trigger a wallpaper change unless it's been 30 minutes since last change. This doesn't eliminate the problem but helps reduce interruption.

Possible workaround 2: Ideally, the app could detect if the user is currently on the launcher and if there's a music player running in the background, and delay wallpaper changes until they return to the launcher and no music is playing, preventing interruptions. This might require accessibility service or similar advanced permissions on recent Android versions.

This would greatly improve usability without disrupting music playback.

@BitTim
Copy link
Author

BitTim commented Oct 18, 2024

Using Spotify I have not had this issue, but it is a valid point. So far I have also settled on a workaround with Tasker and Muzei, that is similar to the one you described.

This will queue a Wallpaper change every 10 minutes but will only run the change once it has been queued and the display gets turned off.
I have uploaded my Tasker project to Taskernet.

This can also easily be modified to use Paperize by just changing the Wallpaper Change action within "Change Wallpaper with Muzei" with the one Paperize provides, although it would be nice if you could disable the schedule within Paperize, since it may interfere by having the wallpaper change at unwanted times.

I hope it is fine that I post this here, if it is not I will gladly remove it again.

@abdalmoniem
Copy link

I'd like to also add that it'd be nice to have the option to change the wallpaper album based on time of day, so in the morning I can use bright wallpapers and in the night I can use dark wallpapers, maybe instead of one interval for the main and one for the lock screens, there would be 2 intervals and each interval has it's own album to choose from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants