A tiny firefox extension with a native component that allows for hot-reloading themes.
This is not for userChrome.css
, just regular firefox themes.
demo.mp4
Place a valid theme json file into:
- linux:
~/.config/firefox-dyntheme/theme.json
- windows:
%APPDATA%\tombl\firefox-dyntheme\config\theme.json
- mac:
~/Library/Application Support/dev.tombl.firefox-dyntheme/theme.json
Then send the native binary SIGUSR1
via killall -USR1 firefox_dyntheme
or
similar to reload.
cd $(mktemp -d)
curl -LO https://raw.githubusercontent.com/tombl/firefox-dyntheme/main/pkg/PKGBUILD
makepkg -si
- Head to the latest release
- Click the xpi file to install the extension, and download the binary into
/usr/libexec
- You can install it another directory if you change the
"path"
in the manifest.
- You can install it another directory if you change the
- Copy the native manifest into
a valid location
such as
/usr/lib/mozilla/native-messaging-hosts/dev.tombl.dyntheme.json
or~/.mozilla/native-messaging-hosts/dev.tombl.dyntheme.json
.
To build:
git clone https://github.com/tombl/firefox-dyntheme.git && cd firefox-dyntheme
(cd native && cargo build --release)
(cd ext && web-ext build)
To install:
- Copy
native/target/release/firefox_dyntheme
to an appropriate place for binaries on your system - Copy the native manifest into
a valid location,
modifying the
"path"
to where you put the binary. - Install
web-ext-artifacts/*.zip
as an extension in firefox.