44

How do I make Zathura copy selected text to the system clipboard?

I'm using Zathura with the poppler PDF plugin.

2
  • ctrl/c + v doesn't work?
    – peterh
    Commented Mar 22, 2019 at 5:19
  • 1
    @peterh zathura currently supports only mouse region selection (there no support for text selection via keyboard). When a region is selected the copy operation it triggered immediately (See github.com/pwmt/zathura/commit/…) Commented Mar 23, 2019 at 8:22

3 Answers 3

68

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

6
  • 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-clipboard clipboard
    
    in zathura's config file at /etc/config/zathurarc or ~/.config/zathura/zathurarc just as @peterh said. The selection will then be copied to the clipboard that can be accessed by Ctrl+V.
-1

As @peterh said in the comment on the OP's question, When you select the text region with mouse it will be copied to your clipboard automatically

1
  • It seems to work sometimes, but it is absolutely not a given. Putting the mentioned line in the config file is the only way to ensure the behavior.
    – Atralb
    Commented Jun 17, 2020 at 1:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .