This repository contains a plugin for anyrun and cliphist that allows users to select / delete clipboard items and wipe history.
After the plugin correctly configured, you can
Ctrl + C: Copy text or image to clipboard, it will be stored in cliphistSuper + V: Open anyrun clipboard manager, select items, or wipe historyCtrl + V: Paste the selected item
Install anyrun from AUR.
Install extra/cliphist from Pacman
sudo pacman -S cliphistBuild this plugin, now the .so file is in target/release/libanyrun_cliphist.so
git clone https://github.com/aa11653/anyrun-cliphist-plugin/
cd anyrun-cliphist-plugin
cargo build --releaseCopy Example configuration in config_example/* to ~/.config/anyrun_cliphist/*. And copy the compiled .so file to ~/.config/anyrun/plugins/
It is weird that the plugin will not be found when placed in custom config directory, therefore, we have to copy plugin to the original directory.
# Create config directory if not exists
mkdir -p ~/.config/anyrun_cliphist
# Copy the example config and style files
cp config_example/* ~/.config/anyrun_cliphist/
# Copy the plugin .so file to anyrun plugins directory
cp target/release/libanyrun_cliphist.so ~/.config/anyrun/plugins/Modify the style.css, config.ron and cliphist.ron files in ~/.config/anyrun_cliphist/ to your needs.
Add the following lines to your ~/.config/hypr/hyprland.conf file for watching clipboard changes and storing them in cliphist.
See Hyprland Wiki for more details about cliphist and hyprland integration.
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
Add the following lines to your ~/.config/hypr/hyprland.conf file to set up keybindings for the plugin:
bind = $mainMod, V, exec, anyrun --config-dir ~/.config/anyrun_cliphist
Note that if you use a older version of anyrun, the
show_result_immediatelywill not work well, see issue anyrun-org/anyrun#239
