Live refresh theme and colors on CSS update by external application. #10026
Unanswered
GardenerGeralt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I use pywal to generate a color scheme for my entire desktop environment based on my wallpaper. To set the colors in Zen Browser, I have a symlink as follows:
~/.zen/21xle59v.Default (release)/chrome/userChrome.css -> ~/.cache/wal/userChrome.css
However, to get the colors to apply when I change the wallpaper, I have to close Zen and re-open it. I am looking for a way to have the colors refresh without closing the browser, just like when using the Live Editing feature.
I have been trying to do this using a userChrome.js file, which watches the userChrome.css file and calls the function that Zen uses to refresh the theme in the Live Editor. However, I either haven't managed to find the correct function, or did not implement it correctly.
Has anyone managed to do this or has any idea if it could be done? Or if you have a suggestion for a different approach, it would be greatly appreciated!
OS: Arch Linux + Hyprland
Zen verson: Mozilla Zen 1.14.11b
Beta Was this translation helpful? Give feedback.
All reactions