what to set set selection-clipboard if I am using wl-clipboard in sway
- User
what to set set selection-clipboard if I am using wl-clipboard in sway
- Assistant
In Sway, if you are using
wl-clipboardto manage clipboard interactions, you need to set the way your clipboard contents are handled with theselection-clipboard.To set the selection clipboard in Sway when using
wl-clipboard, you typically need to use thewl-copyandwl-pastecommands. However, Sway itself does not require specific settings for whatwl-clipboarddoes with selections since it automatically uses the Wayland clipboard manager.If you want to have specific keybindings in Sway to make use of the
wl-clipboardcommands, you can add the following lines in your Sway configuration file (~/.config/sway/config):bash# Copy to clipboard bindsym $mod+c exec --no-startup-id wl-copy # Paste from clipboard bindsym $mod+v exec --no-startup-id wl-paste - User
what to set set selection-clipboard value in zathurarc if I am using wl-clipboard in sway
- Assistant
If you're using Zathura in a Wayland environment with
wl-clipboard, you'll want to ensure that Zathura properly interacts with the clipboard by configuring theselection-clipboardsetting in yourzathurarcfile.In Zathura, the
selection-clipboardoption allows you to specify which clipboard to use when copying and pasting. Since you're usingwl-clipboardunder Wayland, you can set this option toclipboard.Here’s how you can configure your
~/.config/zathura/zathurarcfile:bashset selection-clipboard clipboardThis changes the behavior of Zathura to use the clipboard with the Wayland
wl-clipboardtools, meaning that when you copy from Zathura, it will go to the system clipboard that you can access withwl-pasteand elsewhere.After you make this change, be sure to restart Zathura for the change to take effect.
- User
~/Downloads > zathura CSsamplePaper.pdf warning: invalid marked content and clip nesting
- Assistant
The warning "invalid marked content and clip nesting" from Zathura indicates that there is an issue with the PDF file's structure, specifically related to annotations, marked content, or the way certain content elements are nested within the PDF document. While this is a warning and does not necessarily prevent you from opening or viewing the PDF, it can indicate potential problems with the PDF's rendering or functionality, such as copying and pasting content.