2023-02-10 17:07:46 +01:00
|
|
|
_Starting method:_ manual (`exec-once`)
|
|
|
|
|
|
|
|
Clipboard Managers are useful tools that allows one to manage their copied items, be-it texts or images.
|
|
|
|
|
|
|
|
Some common ones used are `copyq`, `clipman` and `cliphist`.
|
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
`clipman` - Utilizes Wayland with `wl-clipboard` support and stores text only [Github](https://github.com/yory8/clipman)
|
2023-02-10 17:07:46 +01:00
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
`cliphist` - Utilizes Wayland with `wl-clipboard` and can store both images and text [Github](https://github.com/sentriz/cliphist)
|
2023-02-10 17:07:46 +01:00
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
## cliphist
|
2023-02-10 17:07:46 +01:00
|
|
|
|
|
|
|
Start by adding the following lines to your `~/.config/hypr/hyprland.conf`
|
|
|
|
|
|
|
|
```ini
|
|
|
|
exec-once = wl-paste --type text --watch cliphist store #Stores only text data
|
|
|
|
|
|
|
|
exec-once = wl-paste --type image --watch cliphist store #Stores only image data
|
|
|
|
```
|
|
|
|
Do note that any of the above lines can be disabled based on your needs
|
|
|
|
|
|
|
|
To bind `cliphist` to a hotkey and display it under `rofi` or `dmenu`, again head over to `~/.config/hypr/hyprland.conf`
|
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
# For `rofi` users
|
2023-02-10 17:07:46 +01:00
|
|
|
```ini
|
|
|
|
bind = SUPER, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy
|
|
|
|
```
|
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
# For `dmenu` users
|
2023-02-10 17:07:46 +01:00
|
|
|
```ini
|
|
|
|
bind = SUPER, V, exec, cliphist list | dmenu | cliphist decode | wl-copy
|
|
|
|
```
|
|
|
|
The binds mention above correspond to SUPER+V to access the clipboard history
|
|
|
|
|
|
|
|
For further info, please refer to the repository mentioned above
|
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
## clipman
|
2023-02-10 17:07:46 +01:00
|
|
|
|
|
|
|
Start by adding the following line to your `~/.config/hypr/hyprland.conf`
|
|
|
|
|
|
|
|
```ini
|
|
|
|
exec-once = wl-paste -t text --watch clipman store --no-persist
|
|
|
|
```
|
|
|
|
If you wish to use it as a primary clipboard manager, use this instead
|
|
|
|
|
|
|
|
```ini
|
|
|
|
exec-once = wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json"
|
|
|
|
```
|
|
|
|
And also make sure to create a file named `clipman-primary.json` in `~/.local/share/clipman-primary.json`
|
|
|
|
|
|
|
|
Now bind the `clipman` like this:
|
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
# For `rofi` users
|
2023-02-10 17:07:46 +01:00
|
|
|
```ini
|
|
|
|
bind = SUPER, V, clipman pick -t wofi
|
|
|
|
```
|
|
|
|
|
2023-02-12 20:22:04 +01:00
|
|
|
# For `dmenu` users
|
2023-02-10 17:07:46 +01:00
|
|
|
```ini
|
|
|
|
bind = SUPER, V, clipman pick -t dmenu
|
|
|
|
```
|
|
|
|
|
|
|
|
So on and so forth. For further information, please refer to the repository mentioned above
|
|
|
|
|
|
|
|
|
|
|
|
|