-
-
Notifications
You must be signed in to change notification settings - Fork 766
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
If signal is defined in a custom module for a self-updating command. the module never loads #3976
Comments
This is what the manpage waybar-custom says for So the behaviour you're observing seems to be intended. Perhaps there could be a new feature that provides an option |
I disagree. The wording does not suggest that the two options are mutually exclusive. Also, there is no error in the waybar output related to this. It just silently fails. |
The options are not mutually exclusive. But if you have
custom module will use a waitingWorker, for
(or any other interval) it will use a delayWorker and for
it will use a continuousWorker. I've tested this with some trace output (could have used a debugger, but I like trace output). As far as I can tell, only the continuousWorker is really suited for continuous script output, the other two kinda expect that the script exits. The first and the second can be woken up by a signal. I don't think anything happens for the signal when using a continuousWorker. After looking at the other sections of the manpage again, the whole section for interval, restart-interval and signal, matches what I've observed with the configs above and reads technically correct to me. But something that was based on use cases instead might have worked better here. E.g. require explicit worker-type and then say something along the lines of
I think right now your options are:
p.S.: The separate implementation for signal without interval was added in #2517. I was wrong about the interpretation of the manpage as far as the initial execution if concerned, but the "only updated by signal" part seems to be intended beyond the initial execution. |
Module config:
~/bin/date:
If the signal line is removed, the module loads and updates per the script.
My use case is a custom module that will show the number of updates available, which will also reload after a pacman update with a hook that sends the signal to waybar.
A workaround is to use an interval in the module config and have the executable not loop itself.
Arch Linux
waybar 0.12.0-1
hyprland 0.47.2-2
The text was updated successfully, but these errors were encountered: