Open sudo-ghost opened 4 years ago
I had the same experience but a simple restart did it for me.
Make sure you modify your PATH variable correctly so that it contains /home/<your_username>/.local/bin:
Assuming you have bash
export PATH="/home/<your_username>/.local/bin:$PATH"
on your .bash_profile
.bashrc
and .bash_profile
echo $PATH | grep --color /home/<your_username>/.local/bin:
If nothing shows up then you did something wrong.wal -i <your-desired-wallpaper + whaterver option you want>
I hope this helps!
EDIT: So I also noticed when i delete the cloned repo, zathura loses its theming.
It seems like it only works when the cloned repo exists on my computer. After i deleted the repo i got this error when i tried to open zathrua from terminal
bash: /home/jim/.local/bin/zathura: No such file or directory
I have the same problem. It worked for a brief moment after installing but after I deleted the originally cloned repo I never got it to work again even after downloading it again and removing .local/bin/ files and re-running the bash script. Zathura works fine, but it's just in black and white. No colors to be found anywhere. I use urxvt and arch, btw.
Just confirming the same issue. Installed originally, realized I didn't want it right in my home folder, then deleted it. It didn't work after that. I downloaded it to a different directory when cloning from git, then it didn't work until I moved the folder back where it was originally. I think some symlink things broke the first time and no matter if I installed it the second time and followed the process the same way, things won't work. I will subscribe to this thread, hope someone explains / fixes this. :(
I was having the same issue that when I deleted the cloned repo it stopped working. I looked at the install script and it does seem that it is making symbolic links rather than copying. I was able to get it working by manually copying genzathurarc
and zathura
to ~/.local/bin/
. I then ran chmod u+x
on both of the files and that worked. I'm not sure if this is the best way to do this but it works.
Edit: You still have to follow the install instructions and add them to the path in order for them to work this way.
Having the same issue. Reeperto's tip did not work for me. Any update on why this might be happening?
I think the issue is that the original zathura binary is being launched instead of the ./zathura
script. After copying both scripts to my .local/bin
and opening zathura by running the zathura script, everything works fine. When I run the install script, I follow the instructions outputted to my terminal and add PATH="/home/<user_name>/.local/bin:$PATH
to my .bashrc
. This makes the theme work when I open zathura using the terminal, but the theme does not work if I open a pdf using nautilus, since nautilus is still using the original binary.
I think a different approach is needed, or an update to the readme showing how to make this work with different applications.
Edit: Restarting my pc fixed this. Now everything works as intended.
I found a solution, though not actually a solution. If you run this bash script:
#!/bin/sh
# Generate zathurarc with pywal colours
. $HOME/.cache/wal/colors.sh
cat <<CONF
set guioptions ""
set adjust-open "best-fit"
set recolor "true"
set recolor-keephue
set completion-bg "$background"
set completion-fg "$foreground"
set completion-group-bg "$background"
set completion-group-fg "$color2"
set completion-highlight-bg "$foreground"
set completion-highlight-fg "$background"
set recolor-lightcolor "$background"
set recolor-darkcolor "$foreground"
set default-bg "$background"
set inputbar-bg "$background"
set inputbar-fg "$foreground"
set notification-bg "$background"
set notification-fg "$foreground"
set notification-error-bg "$color1"
set notification-error-fg "$foreground"
set notification-warning-bg "$color1"
set notification-warning-fg "$foreground"
set statusbar-bg "$background"
set statusbar-fg "$foreground"
set index-bg "$background"
set index-fg "$foreground"
set index-active-bg "$foreground"
set index-active-fg "$background"
set render-loading-bg "$background"
set render-loading-fg "$foreground"
set smooth-scroll true
set window-title-home-tilde true
set statusbar-basename true
set selection-clipboard clipboard
CONF
It generates a new zathurarc with the pywal colours. Let's say you call this walthura and put it in /bin/ you can run:
walthura > ~/.config/zathura/zathurarc
Now it should work. I use ranger for my file management so I made a custom keybind that runs this every time I change my wallpaper, but there is most likely a more efficient way to do this. I don't know enough about shell scripting to make walthura output to the zathura config automatically, but that would make it cleaner.
I had the same issue, here is what I did:
README.md
(probably not necessary for this)~/.local/bin/
was in my $PATH
:
$ echo export PATH="home/{usrname}/.local/bin:$PATH" > ~/.zshrc
(usrname being your username)
confirm that it worked:
$ $PATH
~/.local/bin/
with the actual files for zahtura
and genzathurarc
out of the repo and made them execetuable (this is so that you don't have to keep the cloned repo folder):
$ rm ~/.local/bin/zathura
$ rm ~/.local/bin/genzathurarc
$ cp /repofolder/zathura ~/.local/bin/zathura
$ cp /repofolder/zathura ~/.local/bin/genzathurarc
$ chmod u+x ~/.local/bin/zathura
$ chmod u+x ~/.local/bin/genzathurarc
zathura
so it begins with /home/{usrnname}/.local/bin/genzathurarc
instead of just genzathurarc
(else it would not run the script). It should read: /home/{usrnanme}/.local/bin/genzathurarc >> "$zathura_tmp/zathurarc"
~/.local/bin/zathura /path/to/doc
$ echo alias zathura="~/.local/bin/zathura" > .zshrc
Now running $ zathura /path/to/file
should work as intended from any directory and you should be able to delete the cloned repo.
after countless, tries, it still does not work for me. editing line 15 of zathura so it begins with /home/{usrnname}/.local/bin/genzathurarc instead of just genzathurarc as per Kaiton's advice made the next step output a shell warning 1000 for me, and i lost my .zsch file, thankfully i had a backup.
does anyone else know how to fix this? running ctrl+r after trying countless times the solutions above doesn't seem to yield anything for me.
after countless, tries, it still does not work for me. editing line 15 of zathura so it begins with /home/{usrnname}/.local/bin/genzathurarc instead of just genzathurarc as per Kaiton's advice made the next step output a shell warning 1000 for me, and i lost my .zsch file, thankfully i had a backup.
does anyone else know how to fix this? running ctrl+r after trying countless times the solutions above doesn't seem to yield anything for me.
oh nevermind me, my issue was that my palette, for some reason, made the pdf look plain black and white, even though it has a lot of colour, so make sure you try different images and different pdfs.
it works just fine by adding the export path, copying the files to ~/.local/bin
and making them executables with chmod+x as mentioned above. then you run:
wal -i /path/to/your/image
followed by:
zathura /path/to/pdf
i have been sitting here for like 3 hours trying to figure out why it wont work and im just stumped. ive deleted and reinstalled zathura, pywal, and zathura pywal. i have rewrote config files. ive tried different terminals and shells. i just have no idea why it is not working.