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

option to apply wallpaper immediately #153

Open
KorigamiK opened this issue Mar 19, 2024 · 8 comments
Open

option to apply wallpaper immediately #153

KorigamiK opened this issue Mar 19, 2024 · 8 comments

Comments

@KorigamiK
Copy link

Hyprpaper uses too much memory as you add more and more preload targets.
An ability to use it in without preload and applying the wallpaper immediately would greatly help!

Thanks

@vaxerski
Copy link
Member

vaxerski commented Mar 20, 2024

preload + wallpaper + unload?

You can't "directly" load a wallpaper. You need to preload it into memory first..

@KorigamiK
Copy link
Author

preload + wallpaper + unload?

You can't "directly" load a wallpaper. You need to preload it into memory first..

Ik I can do that but it's a common use case that can be supported through the cli

@vaxerski
Copy link
Member

it's wasteful and kinda not that simple to implement, though.

@KorigamiK
Copy link
Author

it's wasteful and kinda not that simple to implement, though.

Since the ipc consumes a lot of battery, a command to set a wallpaper instead would be great and a lot of people won't need to enable IPC.
I'm not really sure on the implementation part of a command though, I believe it can be done

@vaxerski
Copy link
Member

the wallpaper needs to be kept in memory because whenever you add a monitor, or change its resolution, it needs to be re-rendered...

@KorigamiK
Copy link
Author

the wallpaper needs to be kept in memory because whenever you add a monitor, or change its resolution, it needs to be re-rendered...

So keeping just the current wallpaper preloaded is a good idea?

@vaxerski
Copy link
Member

yes, that's what hyprctl hyprpaper unload unused does

@anufrievroman
Copy link

anufrievroman commented May 25, 2024

With waypaper we also struggled a bit to implement hyprpaper support, partly because of this story of preload/unload via hyprctl. All other wallpaper managers just use one command to set a new wallpaper (i.e. load it, set it, and unload previous). Anyway, we finally made it work, but the idea of this implementation is really original to say the least :D

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

No branches or pull requests

3 participants