You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be cool to be able to reload the configuration (especially in an automated way or with a remote command), in particular this is my use case:
I managed to start dodo with a theme that match the current wm theme. At some point i want to change to dark or light theme. As of now I need to first change theme and then close and reopen dodo to make it follow the changes.
In astroid there was not such issue since, using gtk, it was automagically following the gtk theme.
The text was updated successfully, but these errors were encountered:
Sorry for the noise, this is a non issue.
After researching unix signals in python I got something like:
defrefresh(*args):
"""Reload."""importsysimportdodo# this is necessary because the config dir is not in the pathsys.path.append(os.path.expanduser("~/.config/dodo")) #frompaletteimportcompute_palette# isort:skip# this compute the palette given the system themedodo.settings.theme=compute_palette()
# I need to apply the theme twice or only half theme is updated (to be investigated)dodo.themes.apply_theme(dodo.settings.theme)
dodo.themes.apply_theme(dodo.settings.theme)
signal.signal(signal.SIGUSR1, refresh)
It would be cool to be able to reload the configuration (especially in an automated way or with a remote command), in particular this is my use case:
I managed to start
dodo
with a theme that match the current wm theme. At some point i want to change to dark or light theme. As of now I need to first change theme and then close and reopendodo
to make it follow the changes.In
astroid
there was not such issue since, using gtk, it was automagically following the gtk theme.The text was updated successfully, but these errors were encountered: