Dunst: Reload config by SIGUSR1

Created on 29 May 2020  路  2Comments  路  Source: dunst-project/dunst

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.

Feature

Most helpful comment

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, SIGUSR1 is already taken by the pause command, so it'll probably have to go into dunstctl as dunstctl reload or something similar.

All 2 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, SIGUSR1 is already taken by the pause command, so it'll probably have to go into dunstctl as dunstctl reload or something similar.

If dunst supported reload, we can switch theme dynamically.

On my desktop, i exported colors from current emacs theme, and apply it to
polybar, rofi, dunst. But restart dunst will have the risky of lose notifications.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catzybluphish picture catzybluphish  路  6Comments

phuhl picture phuhl  路  3Comments

coxley picture coxley  路  4Comments

Kaligule picture Kaligule  路  5Comments

wpovell picture wpovell  路  5Comments