English · Русский
Pywal colors for Zen Browser. Sidebar, tabs, background and the ctrl+t popup follow your wallpaper, live, no restart
Pywalfox works fine on firefox, but on zen nothing happens. Two reasons:
- zen ignores firefox themes by default (
zen.theme.disable-lightweight) - zen paints its ui with its own variables, the sidebar bg is the workspace gradient
This turns themes back on and points zen's variables at the pywalfox colors
| pywal | where |
|---|---|
color0 |
background (gradient with a bit of accent) |
color15 |
text |
color10 |
accent, selected tab, ctrl+t outline |
Needed: Zen Browser, Pywal, python3
git clone https://github.com/selvarn/pywal-zen
cd pywal-zen
./install.shThe script installs the pywalfox native host (pipx or a venv), copies the css into your zen profile and sets the prefs in user.js. Running it again is fine.
--profile DIRuse a specific profile (seeabout:profiles)--skip-pywalfoxskip the native host if you set it up yourself
Then:
- install the pywalfox addon
- restart zen
- Set up the pywalfox native host (docs)
- Copy
chrome/pywal-zen.cssto<profile>/chrome/ - Add
@import url("pywal-zen.css");at the top of<profile>/chrome/userChrome.css - Copy the prefs from
user.jsor set them inabout:config - install the pywalfox addon
- Restart zen
Remove the @import line and pywal-zen.css, reset the prefs, run pywalfox uninstall and remove the addon. Or just disable the pywalfox theme, the css only applies while it's on.
To recolor after changing wallpaper:
wal -i ~/Pictures/wall.png && pywalfox updateThe css uses zen internals (.zen-browser-generic-background, --zen-main-browser-background etc), so a zen update can break it. Open an issue if something stops getting colored.
Tested on zen 1.22b, arch + hyprland.