Skip to content

gennaro-tedesco/zathuraconf

Repository files navigation



zathuraconf

Configure Zathura theme!

Create custom configurations for zathura in one line: provide a colour configuration as json et voilà!

Installation

Go get it!

go install github.com/gennaro-tedesco/zathuraconf@latest

Usage

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

demo

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.

Docker

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

Change defaults

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.

Examples

Check the examples list!

Show gallery
zathuraconf examples/solarized_dark.json
solarized
zathuraconf examples/onedark.json
onedark
zathuraconf examples/gruvbox.json
gruvbox

Tests

Run unit tests with

go test -v ./cmd

Feedback

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!