Reputation: 1
I have Arch Linux Hyprland. Can’t copy paste things from Google Chrome to VSC. Any ideas? I feel like I’ve tried everything…
I tried xclip, xsel, updating the system, rebooting. It only doesn’t work when I copy paste from Chrome specifically. I need to use it because of dev tools.
Upvotes: 0
Views: 816
Reputation: 1
The issue occurs when using Flatpak versions of software, as they run in a sandbox and prevent clipboard sharing between Flatpak and non-Flatpak applications. You can solve this by using a clipboard manager to sync clipboard data.
Here are some options:
Clipman – Lightweight clipboard manager.
CopyQ – Feature-rich with clipboard history and editing.
Diodon – Simple manager for GNOME and Unity.
XClip – Command-line clipboard tool for advanced users.
Install one of these tools to manage clipboard contents across sandboxed and non-sandboxed applications.
Upvotes: 0
Reputation: 1
I use copyq:
sudo pacman -S copyq xclip
run copyq&
(i think there's even a way to have it run at login)
if you want a UI to choose from multiple copied items and manipulate the clipboard you could run:
copyq | copyq toggle &
Now you have a clipboard and you can use the middle mouse in the terminal to paste the contents.
Note that arch comes with vim-minimal
so inside vim you won't be able to use the clipboard. Just install gvim
instead (it will ask to remove the vim-minimal, which is ok) and this installs a terminal vim as well, this time having the clipboard capabilities (press "*p or middle mouse in insert mode to paste).
Unfortunately I don't know how to paste various copyq items into vim, it only works in terminal. I suppose the vim clipboard register works somewhat differently.
Upvotes: 0