Simple bash script that uses wl-clipboard and sqlite to remember wayland clipboard history.
Usage: ./wl-clipboard-history OPTION [ARG]
-t Track clipboard changes
-l [NUMBER] Print last NUMBER of clipboard entries (defaults to 10 entries)
-p [INDEX] Print clipboard entry at INDEX (defaults to the last entry)
To use with sway add the following to your configuration:
exec wl-clipboard-manager -t
There's also a fzf wrapper for selecting the contents with a TUI.
It's also possible to ignore tracking the clipboard for a specific window class.
For example, to ignore tracking the clipboard for KeePassXC
add the following line to ~/.config/wl-clipboard-history/ignore
:
org.keepassxc.KeePassXC
- Add support to delete entries from the history (eg. secrets)