Create custom configurations for zathura in one line: provide a colour configuration as json
et voilà!
Go get it!
go install github.com/gennaro-tedesco/zathuraconf@latest
Choose a colour configuration from the examples or make your own config.json
:
{
"page": "#3c3836", <-- change colours here
"text": "#bdae93",
"background": "#282828",
"highlight": "#fabd2f",
"highlight_active": "#98971a",
"error": "#d65d0e"
}
then simply run
zathuraconf config.json
This creates your custom zathura configuration file in the default path ~/.config/zathura/zathurarc
. The program asks for confirmation before writing the new settings; if you wish to skip this, pass the -f
flag
zathuraconf -f config.json
If your zathura settings are elsewhere you can provide a different path via
zathuraconf config.json -p /path/to/config/
in both cases make sure the folder path exists already.
See zathuraconf -h
for details.
If you wish to install from a docker container, specify your config file next to --build-arg
docker run --rm --name zathuraconf $(docker build --build-arg config=./config.json -q .) >| ~/.config/zathura/zathurarc
The colour schemes settings are appended to a default configuration of zathura commands specified here: these defaults are standard and natural, however should you feel the need to change them, modify those lines at will.
Check the examples list!
Show gallery
zathuraconf examples/solarized_dark.json
zathuraconf examples/onedark.json
zathuraconf examples/gruvbox.json
Run unit tests with
go test -v ./cmd
If you find this application useful consider awarding it a ⭐, it is a great way to give feedback! Otherwise, any additional suggestions or merge request is warmly welcome!