Closed StandingPadAnimations closed 8 months ago
I can't reproduce this on my machine at all (I'm running Hyprland also).
First thing that comes to mind is the desktop portal - do you have this installed?
If so, what version of wl-clipboard do you have (wl-copy --version
) and what's the output of the fzf
and cliphist decode
before being sent to the pipes?
Edit: if the output from cliphist decode
is working fine, then this is an issue with wl-copy
and not cliphist
I have xdg-desktop-portal-hyprland
:
$ pacman -Qi xdg-desktop-portal-hyprland
Name : xdg-desktop-portal-hyprland
Version : 1.3.1-3
Description : xdg-desktop-portal backend for hyprland
Architecture : x86_64
URL : https://github.com/hyprwm/xdg-desktop-portal-hyprland
Licenses : MIT
Groups : None
Provides : xdg-desktop-portal-impl
Depends On : gcc-libs glibc hyprlang libhyprlang.so=0-64 libinih pipewire qt6-base qt6-wayland sdbus-cpp util-linux-libs libuuid.so wlroots
xdg-desktop-portal
Optional Deps : grim: required for the screenshot portal to function [installed]
slurp: support for interactive mode for the screenshot portal [installed]
Required By : None
Optional For : xdg-desktop-portal
Conflicts With : None
Replaces : None
Installed Size : 500.23 KiB
Packager : Caleb Maclennan <alerque@archlinux.org>
Build Date : Sat 10 Feb 2024 01:10:57 AM CST
Install Date : Sat 17 Feb 2024 02:25:34 PM CST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
wl-clipboard
version:
$ wl-copy --version
wl-clipboard 2.2.1
Copyright (C) 2018-2023 Sergey Bugaev
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
fzf
and cliphist decode
both don't seem to have any issues:
$ cliphist list | fzf | cliphist decode
--type text/plain⏎
what is the output of
$ echo hello | wl-copy
$ wl-paste -l
$ echo hello | wl-copy
$ wl-paste -l
text/html
STRING
text/plain;charset=utf-8
TEXT
UTF8_STRING
text/plain
Actually wait, it might be a shell thing. I did the above in fish
, but when executed in Bash, the issue occurs:
$ echo hello | wl-copy
$ wl-paste -l
Mww
EDIT: no, it isn't shell related, as adding quotes around causes the issue in fish
$ echo "hello" | wl-copy
$ wl-paste -l
Ǧ>O'X```
that is very strange. doesn't happen for me with fish
do you have extra processes running which may be copying things to the clipboard?
maybe check with pgrep -a "paste|clip|wl|copy"
This is what pgrep -a "paste|clip|wl|copy"
on my system
$ pgrep -a "paste|clip|wl|copy"
518 [irq/157-iwlwifi:default_queue]
519 [irq/158-iwlwifi:queue_1]
520 [irq/159-iwlwifi:queue_2]
524 [irq/160-iwlwifi:queue_3]
525 [irq/161-iwlwifi:queue_4]
526 [irq/162-iwlwifi:queue_5]
527 [irq/163-iwlwifi:queue_6]
528 [irq/164-iwlwifi:queue_7]
529 [irq/165-iwlwifi:queue_8]
530 [irq/166-iwlwifi:queue_9]
533 [irq/167-iwlwifi:queue_10]
536 [irq/168-iwlwifi:queue_11]
537 [irq/169-iwlwifi:queue_12]
541 [irq/170-iwlwifi:exception]
491069 wl-paste --type text --watch cliphist store
491071 wl-paste --type image --watch cliphist store
Assuming all the iwlwifi
instances are related to networking, nothing seems out of the ordinary
Just as something else to try, what about with and without double quotes doing wl-copy hello
then pasting after
the quotes really shouldn't matter since the shell's lexer should stip them out before sending to any program. it seems to me though that this is an issue unrelated to cliphist
I've been having this issue for a while now where (when using the FZF snippet in the README) I can't paste what I copy from the history anywhere except the terminal.
Looking at the type of what's the type of the item copied using
wl-paste
, I always get a weird sequence of bytes that changes depending on the copied itemAt first I thought it was related to
wl-copy
being unable to tell the MIME type, butxdg-utils
is installed on my system. What's weirder is that if I use--type text/plain
or--type image/png
, copying works perfectly fine, but again, I havexdg-utils
on my system, so this should be automatic.In addition, I have the proper
exec
lines in my Hyprland config:WAYLAND_DEBUG
log when copying: