nwg-piotr / nwg-shell

Installer & meta-package for the nwg-shell project: a GTK3-based shell for sway and Hyprland Wayland compositors
Other
824 stars 14 forks source link

[Feature Request] Add a clipboard manager #247

Closed kuba3351 closed 8 months ago

kuba3351 commented 8 months ago

Hello

I think nwg-shell should have a clipboard manager. This tool increases speed and productivity by collecting an history of the items copied to clipboard and enables to search and paste these items in any time. KDE Plasma have this tool by default. I know that I can install it manually, but I think it should be fine to have it by default like we have notification center. Nwg-shell can be integrated with an existing tool or we can have a one written for nwg-shell.

aposteeltje-bwg commented 8 months ago

You can install 'mako' , a wlroots based clipboard manager.

Snippet of code to put in your hyprland.conf:

exec-once = mako exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store

You can then call/view clipboard history with 'wofi' (if installed) by keybinding like this: bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy # Call Clipboard-History and show using wofi

I find it ok, not having a 'build in' clipboard manager by default, and have to install one manually......

See example screenshot below: swappy-20240104_204422

nwg-piotr commented 8 months ago

Looks like a good idea. I'll check what I can do about it.

aposteeltje-bwg commented 8 months ago

I've tested the above, and i noticed that if you have a open floating window, and you call clip history., it also switches the floating window into tiling mode.

Don't know if that's wanted behaviour., and i can't seem to find out why it's doing that.

nwg-piotr commented 8 months ago

I've tested the above, and i noticed that if you have a open floating window, and you call clip history., it also switches the floating window into tiling mode.

We won't use wofi/rofi/dmenu. We'll open our own window on gtk-layer-shell.

nwg-piotr commented 8 months ago

First working version:

image

nwg-piotr commented 8 months ago

Done: https://github.com/nwg-piotr/nwg-clipman