29

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

I'm using Zathura with the poppler PDF plugin.

42

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

| improve this answer | |
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-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.
| improve this answer | |
-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

| improve this answer | |
  • 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 Jun 17 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.