dunst icon indicating copy to clipboard operation
dunst copied to clipboard

Select and copy text

Open var314 opened this issue 4 years ago • 5 comments

Hi, is it possible to select text in notification by mouse and copy/paste it? #246 is marked as solved by #530, which would suggest it is possible. But it does not work for me. I tried with mouse_left_click = none and with its default close_current. I also tried force_xwayland = true.

I am aware of #753, which would allow to copy whole text. Still for me selecting to copy only the interesting part would be nice.

Installation info

  • Version: 1.7.1 (2021-11-01)
  • Install type: package
  • Distro and version: Arch Linux
  • Graphical environment: Sway/Wayland

var314 avatar Nov 29 '21 22:11 var314

Yeah it would be interesting. I don't know how doable it would be, since we're not using any kind of GUI toolkit. This feature may be more suitable to other notification daemons.

fwsmit avatar Nov 29 '21 22:11 fwsmit

@fwsmit Are you aware of any other daemon that has this capability? A work around I may consider is a simple script that opens the notification in a nvim buffer to allow selecting+copying.

joshpetit avatar Jun 10 '23 02:06 joshpetit

No, I'm not aware of any other daemon that can do this. Your workaround seems feasible.

fwsmit avatar Jun 12 '23 11:06 fwsmit

Copying the whole summary is easy (xclip in the script) but for specific part of text there is no way to select them

bynect avatar Feb 21 '24 12:02 bynect