zegervdv / homebrew-zathura

Homebrew formulae to build Zathura on Mac OS X
538 stars 41 forks source link

Can't add a theme or change background color #106

Closed aravezskinteeth closed 1 year ago

aravezskinteeth commented 1 year ago

Description of the problem

I installed the --HEAD version of zathura, girara and mudpdf on MacOS 12.6.2.

Then, I created ~/.config/zathura/zathurarc, and added the following.

set selection-clipboard clipboard
map <C-i> zoom in
map <C-o> zoom out
include catppuccin-macchiato

Previously, I followed these steps so I could add a theme.

However, instead of getting this (the gray background), which is what I expected:

image

I didn't see any changes:

SCR-20230312-fgi

I also tried to copy the contents of the theme file at the bottom of my zathurarc file, and quit and reopened the terminal but nothing happened.

I should mention that the other configuration commands, such as set selection-clipboad clipboard and the mapping of keys did work.

zegervdv commented 1 year ago

Do you have $XDG_CONFIG_HOME set? And if so, is it pointing to $HOME/.config?

aravezskinteeth commented 1 year ago

It seems that I don't have $XDG_CONFIG_HOME and maybe that's causing the issue.

SCR-20230313-dwu

I'm not an expert in setting environmental variables, so I'm not sure if this is how you check if they're set.

zegervdv commented 1 year ago

You can do export XDG_CONFIG_HOME=$HOME/.config.

Typically this is something you add to your shell config (e.g. .bashrc or .zshrc) but you can run it in the terminal so it is active for the current session. After doing that, does zathura pick up the configurations?

aravezskinteeth commented 1 year ago

It still doesn't work, and not event my mapped keybindings to zoom in and out and the selection to clipboard work. I already quit and reopened the terminal.

SCR-20230313-eq8

And my nvim init.lua file isn't being read:

SCR-20230313-em2

Just in case this is what I have in my ~/.config/zathura

SCR-20230313-elx

EDIT

I've just realized i'm dumb. I'm so sorry for taking your time. Even though, I had inspected the oficial docummentation, the arch linux wiki had the solution.

I changed again the $XDG_CONFIG_HOME to /Users/skinofmyeden/.config, opened Zathura aand just Ctrl + R and it recolored. My keybindings and copy to clipboard work again. Also my nvim is fixed.

SCR-20230313-f28
zegervdv commented 1 year ago

Nice you figured it out. From your screenshot it seems the first trial it hadn't expanded the $HOME which caused nvim to also misbehave.