sentriz / cliphist

wayland clipboard manager with support for multimedia
GNU General Public License v3.0
719 stars 22 forks source link

How to configure cliphist to save in history the selected text with mouse? #92

Closed jetm closed 7 months ago

jetm commented 7 months ago

Start using Hyprland and coming from KDE. In KDE there is Klipper as a clipboard manager; it allows you to copy in the clipboard history any text after being selected with the mouse. It's a nice feature because it saves pressing the Ctrl+C keys. This kind of behavior can be configured in Kitty, but I have been unable to make it work outside of the terminal. I have tried:

exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
exec-once = wl-clip-persist --clipboard both

I can confirm the previous settings only copy the text when it's is selected with the keyboard. It doesn't work copy the text when is selected with the mouse.

I am using cliphist v0.5.0 in Arch Linux and Hyprland v0.37.0.

sentriz commented 7 months ago

can you try wl-paste --primary --type text --watch X