- [`copyq`](https://github.com/hluk/CopyQ) - Supports text, images, and various other formats. It offers searchable history, editing capabilities, and a scripting interface. You can also organize items into tabs and synchronize clipboards across different devices.
- [`wl-clip-persist`](https://github.com/Linus789/wl-clip-persist) - When copying something on Wayland, the copied data remains in the clipboard until the application that was copied from is closed; after that, the data disappears and can no longer be pasted.
To fix this problem, you can use `wl-clip-persist` which will preserve the data in the clipboard after the application is closed.
Start by adding the following line(s) to your `~/.config/hypr/hyprland.conf`
```ini
exec-once = wl-paste --watch clipvault store # Stores text, image and any other binary data
# exec-once = wl-paste --type text --watch clipvault store # Stores only text data
# exec-once = wl-paste --type image --watch clipvault store # Stores only image data
# exec-once = wl-paste --watch clipvault store --min-entry-length 2 --max-entries 200 --max-entry-age 2d # Store any data, but with additional parameters
```
Note that you can uncomment any of the commented out lines above based on your needs. Refer to the setup
section in the project's GitHub repository linked above for more information.
To bind `clipvault` to a hotkey and display it using a picker of your choice (e.g. `rofi`, `dmenu`, `wofi`, etc.),
you can add one of the below keybinds to your `hyprland.conf`:
{{<tabsitems="rofi,dmenu,wofi,fuzzel,tofi">}}
{{<tab>}}
```ini
bind = SUPER, V, exec, clipvault list | rofi -dmenu -display-columns 2 | clipvault get | wl-copy
```
{{</tab>}}
{{<tab>}}
```ini
bind = SUPER, V, exec, clipvault list | dmenu | clipvault get | wl-copy
Start by adding the following lines to your `~/.config/hypr/hyprland.conf`
```ini
exec-once = copyq --start-server
```
If the main window of `copyq` cannot close or hide properly, try to enable its
"Hide main window" option in the Layout configuration tab in the Preferences
dialog.
## wl-clip-persist
Add the following line to `hyprland.conf`.
No other changes are required. The basic wayland copy/paste mechanisms will now persist even when the source window is closed.
```ini
exec-once = wl-clip-persist --clipboard regular
```
Can also be applied to the primary selection (i.e. middle click to paste selection) too, but this is not recommended because the primary selection [has unintended side-effects for some GTK applications.](https://github.com/Linus789/wl-clip-persist#primary-selection-mode-breaks-the-selection-system-3)