cliphist
cliphist copied to clipboard
After cliphist selection of one character, ctrl+v is wrong even though wl-paste gives the correct output
The Problem
$ cliphist wipe
$ wl-copy a
$ wl-copy aa
$ cliphist list | rofi -dmenu | cliphist decode | wl-copy && wl-paste
a
$ # Output of ctrl+shift+v is '8;6u' (wrong) instead of 'a'
$ # Doing ctrl+v in a browser returns nothing (wrong) instead of 'a'
$ cliphist list | rofi -dmenu | cliphist decode | wl-copy && wl-paste
aa
$ # Output of ctrl+shift+ v is 'aa' (correct)
$ # Doing ctrl+v in a browser returns 'aa' (correct)
System Information
I'm using Fedora Sway Spin:
$ dnf list wl-clipboard
Updating and loading repositories:
Repositories loaded.
Installed packages (available for reinstall, available for upgrade)
wl-clipboard.x86_64 2.2.1^git20251124.e808203-2.fc44 fd6afd52f6a94c888514cdc4ebeea0b2
$ dnf list cliphist
Updating and loading repositories:
Repositories loaded.
Installed packages (available for reinstall, available for upgrade)
cliphist.x86_64 0.7.0-1.fc44 fedora
$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="44 (Sway)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=44
VERSION_CODENAME=""
PRETTY_NAME="Fedora Linux 44 (Sway)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:44"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f44/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://gitlab.com/fedora/sigs/sway/SIG/-/issues"
REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=44
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=44
SUPPORT_END=2027-05-19
VARIANT="Sway"
VARIANT_ID=sway
$ fastfetch
.',;::::;,'. rabbit@furnace
.';:cccccccccccc:;,. --------------
.;cccccccccccccccccccccc;. OS: Fedora Linux 44 (Sway) x86_64
.:cccccccccccccccccccccccccc:. Host: Latitude 7410
.;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: Linux 7.0.9-202.fc44.x86_64
.:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 47 mins
.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Packages: 1584 (rpm), 8 (flatpak)
,cccccccccccccc;MMM.;cc;;WW:;cccccccc, Shell: bash 5.3.9
:cccccccccccccc;MMM.;cccccccccccccccc: Display (LGD065C): 1920x1080 @ 1.4x in 14", 60 Hz [Built-in]
:ccccccc;oxOOOo;MMM000k.;cccccccccccc: WM: Sway 1.11 (Wayland)
cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; Cursor: Adwaita
ccccc;XMO';cccc;MMM.;cccccccccccccccc' Terminal: ghostty 1.3.1
ccccc;MMo;ccccc;MMW.;ccccccccccccccc; Terminal Font: JetBrainsMono Nerd Font (12pt)
ccccc;0MNc.ccc.xMMd;ccccccccccccccc; CPU: Intel(R) Core(TM) i7-10610U (8) @ 4.90 GHz
cccccc;dNMWXXXWM0:;cccccccccccccc:, GPU: Intel UHD Graphics @ 1.15 GHz [Integrated]
cccccccc;.:odl:.;cccccccccccccc:,. Memory: 3.22 GiB / 15.28 GiB (21%)
ccccccccccccccccccccccccccccc:'. Swap: 0 B / 8.00 GiB (0%)
:ccccccccccccccccccccccc:;,.. Disk (/): 38.46 GiB / 474.34 GiB (8%) - btrfs
':cccccccccccccccc::;,. Local IP (wlo1): 10.130.3.154/16
Battery (DELL HRGYV0A): 100% [AC Connected]
Locale: en_US.UTF-8
8;6u looks like a kitty keyboard protocol sequence, which ghostty supports. does it reproduce in a different terminal emulator?
could you also share:
$ cliphist list | head -1 | cliphist decode | xxd $ wl-paste | xxd