Replies: 2 comments
-
|
Are you saying this is something new in 0.40.1?
I cannot reproduce the middle click issue, with steps:
1) Run: kitty --config=NONE
2) Run ls in the kitty instance
3) Select some text with mouse
4) Middle click. Text is pasted as expected.
Tested on sway and hyprland
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
In my case middle click paste did not work because it was disabled in hyprland. Make sure you have: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Middle click paste, right-click exec, and Ctrl+Shift+V/C not working in Kitty 0.40.1 (Wayland, Hyprland, Ubuntu 25.05)
Description
I'm using Kitty 0.40.1 on Wayland (Hyprland, Ubuntu 25.05) and I'm experiencing multiple clipboard-related issues:
Middle click does not paste text, even when the text is explicitly copied (Ctrl+C) or selected with the mouse.
Right click does not execute mapped command when bound to:
ini
Копировать
Редактировать
map right click exec sh -c "~/context_menu.sh"
(It works fine in other terminals.)
If a non-English keyboard layout (e.g., ru) is active, Ctrl+Shift+V and Ctrl+Shift+C stop working:
Instead of pasting or copying, the terminal prints 84;6u.
Expected Behavior
Middle click should paste text from the primary clipboard or system clipboard.
Right click should correctly execute mapped shell commands.
Ctrl+Shift+V/C should work regardless of the active keyboard layout.
Steps to Reproduce
Open Kitty.
Run:
bash
Копировать
Редактировать
echo "test"
Select the text with the mouse.
Click middle button → nothing is pasted.
Add this to kitty.conf:
ini
Копировать
Редактировать
map right click exec sh -c "~/context_menu.sh"
Restart Kitty.
Press right click → nothing happens.
Switch to a non-English keyboard layout (e.g., ru).
Try pasting (Ctrl+Shift+V) or copying (Ctrl+Shift+C).
Instead of pasting text, the terminal prints:
Копировать
Редактировать
84;6u
In the English (en) layout, everything works fine.
System Information
Kitty version: 0.40.1
OS: Ubuntu 25.05
Wayland Compositor: Hyprland
Clipboard method: wl-copy, wl-paste
Relevant configuration (kitty.conf):
ini
Копировать
Редактировать
select_to_clipboard = yes
write-primary = enabled
map ctrl+c copy_to_clipboard
map ctrl+v paste_from_clipboard
Possible Causes
Middle click might not correctly interact with the Wayland primary clipboard.
exec sh -c might be blocked when executed via a right-click binding.
Kitty does not recognize Ctrl+Shift+V/C in non-English layouts, possibly due to different key codes per language.
Questions
Has anyone else encountered similar clipboard issues on Wayland?
How can copy/paste be configured to work across all keyboard layouts?
Is this a Kitty bug, or could it be a Wayland/Hyprland clipboard management issue?
Additional Debugging
To gather more logs, I ran Kitty with debug mode:
bash
Копировать
Редактировать
kitty -o debug=True
This is the output when trying to paste with middle click or Ctrl+Shift+V:
Копировать
Редактировать
84;6u
If more logs are needed, let me know what to capture.
Any insights or fixes would be greatly appreciated! 🙌
Beta Was this translation helpful? Give feedback.
All reactions