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

Calling matugen in a waybar module with a waybar reload post-hook breaks other post-hooks #127

Open
HangedFool opened this issue Nov 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@HangedFool
Copy link

HangedFool commented Nov 10, 2024

Calling matugen in waybar results in the waybar reload post-hook running but it is seemingly random which other hooks run.

When I comment out the post-hook, #post_hook = 'pkill -SIGUSR2 waybar' # reload all other post-hooks function properly

Attempting to do something like "on-click": "~/.config/hypr/Scripts/WallpaperSelect.sh && pkill -SIGUSR2 waybar", in waybar with the post-hook commented also exhibits this problem.

As an example my config.tomi has

[templates.hyprland]
input_path = '~/.config/matugen/hyprland-colors.conf'
output_path = '~/.config/hypr/Sources/colors.conf'
post_hook = 'notify-send test hypr' # test

[templates.wlogout]
input_path = '~/.config/matugen/colors.css'
output_path = '~/.config/wlogout/colors.css'
post_hook = 'notify-send test wlogout' # test

[templates.swaync]
input_path = '~/.config/matugen/colors.css'
output_path = '~/.config/swaync/colors.css'
post_hook = 'swaync-client -rs && notify-send test swaync' # reload

[templates.waybar]
input_path = '~/.config/matugen/colors.css'
output_path = '~/.config/waybar/colors.css'
post_hook = 'pkill -SIGUSR2 waybar' # reload

Here is a video I took showcasing it

Bug.mp4

edit: video didn't send properly initially

@InioX InioX added the bug Something isn't working label Nov 11, 2024
@InioX
Copy link
Owner

InioX commented Nov 11, 2024

That's a very strange issue.. I'll look at this when I have more time, probably the day after tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants