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

Wallpaper setting locks until a hook finishes #130

Open
Axenide opened this issue Nov 12, 2024 · 1 comment
Open

Wallpaper setting locks until a hook finishes #130

Axenide opened this issue Nov 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Axenide
Copy link

Axenide commented Nov 12, 2024

Hi, I've been using Matugen lately and I love it.

One thing I just noticed is that when a hook is running, Matugen waits for it to finish before setting the wallpaper.

For example, using this config sets the wallpaper after 5 seconds:

[config]
reload_apps = true

[config.reload_apps_list]
kitty = true
gtk_theme = true

[config.wallpaper]
command = "swww"
arguments = ["img", "-t", "outer", "--transition-duration", "1", "--transition-step", "255", "--transition-fps", "60", "-f", "Nearest"]
set = true

[templates.hyprland]
input_path = '~/.config/matugen/templates/hyprland-colors.conf'
output_path = '~/.config/hypr/source/colors.conf'
post_hook = "sleep 5"

Of course I don't have a random sleep command there, but I have others like walogram that takes around 3 or 4 seconds to generate a colorscheme for Telegram, which is really noticeable. Can this be async in any way? Am I missing something?

Thank you for creating such a great tool!

@InioX InioX added the enhancement New feature or request label Nov 12, 2024
@Axenide
Copy link
Author

Axenide commented Nov 13, 2024

Just in case this is useful to anyone, adding & at the end of the hook makes it async, just like in the command line.

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

2 participants