A beautiful and efficient clipboard manager for Hyprland with image preview support using kitty, fzf, and cliphist.
- 📋 Clipboard History: Keep track of all your copied text and images
- 🖼️ Image Preview: View images directly in the terminal using kitty's icat
- 🎨 Syntax Highlighting: Text preview with syntax highlighting via bat
- ⚡ Fast & Fuzzy Search: Quickly find what you need with fzf
- ⌨️ Easy Access: Simple keybinding (ALT+V) to access your clipboard history
- 🪟 Floating Window: Clean, minimal floating interface
This clipboard manager requires the following tools:
kitty- Terminal emulator with image supportfzf- Fuzzy finder for quick searchingcliphist- Clipboard history manager for Waylandwl-clipboard- Wayland clipboard utilitieswtype- Wayland keyboard input emulatorbat- Syntax highlighting for text previewimagemagick- Image manipulation (for the convert command)
- Clone this repository:
git clone https://github.com/yourusername/oma-clipmanager.git
cd oma-clipmanager- Run the installation script:
chmod +x install.sh
./install.shThe script will:
- Install
yay(AUR helper) if not present - Install all required dependencies
- Copy the script to
~/.config/omarchy/bin/ - Configure Hyprland bindings and window rules (if files exist)
- Install dependencies:
yay -S kitty fzf cliphist wl-clipboard wtype bat imagemagick- Copy the script:
mkdir -p ~/.config/omarchy/bin
cp fzf-cliphist-preview.sh ~/.config/omarchy/bin/
chmod +x ~/.config/omarchy/bin/fzf-cliphist-preview.sh- Add window rules to your Hyprland config (
~/.config/hypr/windows.conforhyprland.conf):
windowrulev2 = size 20% 45%,class:(fzf-clip)
windowrulev2 = float,class:(fzf-clip)
- Enable clipboard history monitoring (add to
~/.config/hypr/autostart.confor your Hyprland config):
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store
- Reload Hyprland:
hyprctl reload- Copy some text or images to your clipboard
- Press
ALT+Vto open the clipboard manager - Use fuzzy search to find what you need
- Press
Enterto paste the selected item
- Text: Displays with syntax highlighting and line numbers
- Images: Renders directly in the terminal preview window
- Code: Automatically detects and highlights programming languages
You can change the keybinding by modifying the bind line in your Hyprland config:
bind = ALT, V, exec, sh -c '...' # Change ALT, V to your preferred keys
Adjust the clipboard manager window size:
windowrulev2 = size 20% 45%,class:(fzf-clip) # Modify width% height%
kitty --class fzf-clip -o font_size=10 # Change font_size value
- Ensure you're using kitty terminal
- Check if imagemagick is installed:
convert --version - Verify kitty's icat works:
kitty +kitten icat /path/to/image.png
- Make sure cliphist is running:
ps aux | grep cliphist - Verify wl-paste is monitoring clipboard:
exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store
- Reload Hyprland:
hyprctl reload - Check if binding is registered:
hyprctl binds | grep -i clip
MIT License - feel free to use and modify as needed!
Contributions are welcome! Feel free to:
- Report bugs
- Suggest new features
- Submit pull requests
Created for the Hyprland community. Special thanks to:
- cliphist - Clipboard history manager
- fzf - Fuzzy finder
- kitty - Terminal emulator
- bat - Syntax highlighter
Note: This tool is designed specifically for Wayland/Hyprland. It may not work on X11 or other window managers without modifications.