Hot answers tagged

42

Add set selection-clipboard clipboard in the config file ~/.config/zathura/zathurarc or /etc/zathurarc.


22

Yes this is possible, it's just not well documented. Or documented at all for that matter. The only reference I found was in an issue report. Once a file is opened, you can change the first page location by running :set first-page-column 2 from the command line. This same line can be added to the rc file at ~/.config/zathura/zathurarc to make it the default....


8

I posted the same question in the Arch Linux forums and got the following embarrassingly simple answer. Just hit the "tab" button. You can then navigate the bookmarks with h, j, k, l (l and h drill down and collapse nested bookmarks, respectively).


8

I recently bumped against a similar problem and, for future reference, here is a workaround: map <C-o> focus_inputbar ":exec acroread $FILE" This will map ctrl+o (or whichever your key is) to open the input bar you would normally open with : and input there that text. You can then press Enter to launch the command. This is far from ideal and still ...


6

A slight improvement on the answer offered by CarloDePieri might be this: map <C-o> feedkeys ":exec acroread $FILE<Return>" This avoids the second keypress.


5

You can use the "best-fit" mode and use Pageup + Pagedown (or map k,j) to jump to the previous or next page. Does that help?


4

There's an undocumented launch option, --mode. The examples given for this were "presentation", and "fullscreen", so just use zathura --mode fullscreen [FILE]. If that gets to be a bother, they don't have a configuration entry for this, for whatever reason, so what I did was add --mode fullscreen to my zathura.desktop file. It's a bit of a bother having to ...


3

You probably need to use ^o, ^i Move backward and forward through the jump list where ^o means control-o.


3

I agree that would be seriously useful, but you can't currently do this. In the source code, the input-bar exec command mapping is here in config.c. However, the shortcut mappings (starting here) which seem to define what functions can be referred to from the configs don't mention exec. The code isn't structured to easily mix "command" functions and "...


3

When doing :print you'll have a printing dialog as mentioned in the slm' closed ticket. You can then choose pages range.


3

You could use zathurarc to configure the default window size. From man zathurarc: window-height Defines the window height on startup · Value type: Integer · Default value: 600 window-width Defines the window width on startup · Value type: Integer · Default value: 800


3

According to the Zathuras documentation you can use the Girara settings to style Zathura. From this we can derive that the default-bg variable can be used to specify the default background color. As the customization of Zathura is managed via a config file at ~/.config/zathura/zathurarc, you can simply add the line set default-bg "#000000" NOTE: You might ...


2

You can try to go for a key bind instead of command. In case you want both commands available within a single combination then put to config ~/.config/zathura/zathurarc file something like: map <C-l> feedkeys ":set recolor-lightcolor \#002b36<Return>:set recolor-darkcolor \#839496<Return>" PS. Not sure why you need this, but if you also ...


2

I've just updated to the latest version (zathura 0.4.4, girara 0.3.3) and I'm now getting: warning: Unknown option: smooth-scroll this seems to be because of a change to girara that made smooth scrolling always be turned on looks like we can just remove this line from our config files now!


2

#!/bin/sh options='-columns 6 -width 100 -lines 15 -bw 2 -yoffset -2 -location 1' selected=$(\ cat ~/.local/share/zathura/history | grep -Po '\[\K[^\]]*' \ | rofi -dmenu -i -markup-rows \ ${options} ) # exit if nothing is selected [[ -z $selected ]] && exit zathura "$selected" exit 0


2

I think I have found a workaround to this problem. My ~/.config/zathura/zathurarc file: # midnight mode map <F1> feedkeys ":set recolor-lightcolor \#002b36<Return>" map <F2> feedkeys ":set recolor-darkcolor \#839496<Return>" map ! feedkeys "<F1><F2>" # amber on dark slate map <F3> feedkeys ":set recolor-lightcolor \...


2

Basic text selection According to the Zathura Wikipedia page: Zathura can search for text and copy text to the primary X selection This implies the ability to select text as you read is built in, though it likely requires your mouse (you'll be hard-pressed to find a solution for keyboard-controlled selection). How minimalist do you need? I use Atril, a ...


2

cat document.pdf | zathura - Pipes the content of document.pdf to Zathura, which tries to render it. ls | zathura - If you have only document.pdf directory and nothing else, that pipes the string document.pdf to Zathura, not its contents, so Zathura complains. Moreover, if you try to write a program and it involves parsing ls, you are most probably doing ...


2

Add - as a command line argument to zathura: man -t awk | ps2pdf - - | zathura - as the man page says: zathura displays the given files. If a single hyphen-minus (-) is given as file name, the content will be read from the standard input.


1

You need to use command substitution in your alias: alias zathura='zathura -e $( tabbed -c ) & disown' Note that the alias's replacement text needs to be 'quoted in single quotes' to prevent tabbed -c from being expanded immediately when the alias is defined.


1

If i'm not mistaken Adobe Acrobat Reader has a function called read out loud which selects each word from start to finish.


1

I use "inverse color" (Ctrlr). Then change the dark black color to gray with :set recolor-lightcolor \#222222. EDIT: I have dark background with dark borders after using those commands (defaults to inverted) set recolor set recolor-lightcolor \#222222 set recolor-keephue set default-bg \#222230 So you might want to try default-bg or light-color ones.


1

You can set height and width to a large value, so that it will cover your entire screen. In my case the following did the trick: set window-height 3000 set window-width 3000


1

Looking at the source code, it doesn't look like there's anyway to do this. Zathura simply replaces $FILE and % with the file path before executing the command. So you will have to use a workaround anyway. Maybe something like: exec sh -c 'xdg-open $(dirname $FILE)' Or: exec xterm -e 'ranger $(dirname $FILE)' More quoting is really needed here, but I ...


1

A bit late to the party, but using xdotool to do the ctrl click did the job for me. I wrote this short bash script (also found here zathura_backward_search.sh): #!/bin/bash ACTIVEWINDOW=$(xdotool getactivewindow) eval $(xdotool getwindowgeometry --shell $ACTIVEWINDOW) HALF_WIDTH="$(($WIDTH / 2 + 10))" HALF_HEIGHT="$(($HEIGHT / 2))" xdotool mousemove --...


1

I use the touchpad and had the same problem. this got it fixed though: :set scroll-step 50 (you can fiddle with the number to see which suits you the best)


1

There are actually two clipboards. The primary clipboard is used by terminal and some applications and the other clipboard is used by most GUI applications like MS style copy/paste. Zathura, by default, copies the selected contents to the Primary clipboard that can be accessed by middle mouse button. This behaviour can be changed by adding set selection-...


1

Create the file /usr/local/bin/zathura.sh, and fill it with this content : #!/bin/bash killall zathura 2>/dev/null zathura And make it executable with this command : sudo chmod +x /usr/local/bin/zathura.sh. Now go to your atom-latex settings in your atom editor (edit -> preferences -> packages -> latex -> settings) and change the value of ...


1

try this: :set recolor-darkcolor \#839496 in the normal mode, or put in the ~/.config/zathura/zathurarc


1

You can use zathura -l error file.pdf to turn off the warning message. But it is similar to what you have, :).


Only top voted, non community-wiki answers of a minimum length are eligible