-
Notifications
You must be signed in to change notification settings - Fork 348
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
Reload config by SIGUSR1 #719
Comments
This has been requested before (#63) however, dunst was built around the assumption that the settings struct is never modified so adding that would require a rework of some other areas of the code. Additionally, |
If dunst supported reload, we can switch theme dynamically. On my desktop, i exported colors from current emacs theme, and apply it to |
I would love to see this feature.
I haven't looked at the code, but when
I don't mind a |
Note that currently you can restart dunst perfectly fine by killing it and letting it autostart again. You can also
I don't expect this to be a big problem. Most of the settings struct will be perfectly fine with being modified.
This is already possible without it being built into dunst. A proper reload should at least save the notification history. This would be easiest when the same process is kept.
|
I use this wrapper for all session services: #!/bin/sh
while true; do
${@}
done
Would be more logical to use same signal to toggle, though then there must be feedback. Also - could not si_value from siginfo be used, with properly set SA_SIGINFO? This is from posix manual, though not linux specific, though I failed to find way to specify value in shell kill command. |
I've thrown together a quick proof of concept in #968. Please let me know if a setting you want to change doesn't get covered by this reload. There are still a few bugs, but I'll fix them once I know what the cause is. |
Bump. It's 2023, I want to dynamically switch between light and dark colour schemes without losing my history :) |
Bump x 2 . I would also like to see this feature , thanks for the great work! |
from now on you can hotreload with |
I found such feature in tint2, with at least one use case at tint2conf which does it on config save. Not sure if it's more effective than e.g. direct use of inotify. Auto-reload on file change could be done by separate tools like fsniper.
The text was updated successfully, but these errors were encountered: