显示 HN:Clyp – Linux 剪贴板管理器
Show HN: Clyp – Clipboard Manager for Linux

原始链接: https://github.com/murat-cileli/clyp

Clyp 是一款为 Linux 设计的现代、快速且简单的剪贴板管理器,使用 Go 和 GTK4 构建。它提供了一个简洁、键盘为中心的界面来管理复制的文本和图像(最多 3 个),并提供预览功能。Clyp 兼容 Wayland 和 X11,采用优化的 SQLite 后端,能够高效处理 10,000 多条记录。 主要功能包括自动剪贴板监控、可搜索的历史记录(通过 Ctrl+F 访问)以及使用键盘(Enter/Delete)快速复制/删除项目。数据会以时间戳、内容类型检测和重复数据删除的方式持久存储在 `~/.local/share/bio.murat.clyp/clyp.db` 中。 Clyp 的架构将一个最小的剪贴板观察器(无头 GTK 应用程序)与 GUI 分开,并通过 UNIX 套接字进行通信。该项目是开源的,可在 GitHub 上找到,未来计划开发导入/导出功能和数据库加密。

## Clyp:一款新的 Linux 剪贴板管理器 – Hacker News 摘要 一款新的 Linux 剪贴板管理器,**Clyp** (github.com/murat-cileli),最近在 Hacker News 上分享,引发了关于 Linux 与 Windows 剪贴板管理的讨论。许多用户怀念 Windows 的 Super+V 功能,用于访问剪贴板历史记录。 对话中提到了几个现有的 Linux 解决方案:KDE 内置的管理器,**Ditto**,**Clipman** (XFCE),**Gnome 剪贴板历史记录** 扩展,**CopyQ**,**greenclip**,**cliphist** 和 **wl-clipboard** (用于 Wayland)。用户分享配置以复制 Super+V 的体验。 一个关键问题是 Wayland 兼容性,一些用户报告由于剪贴板访问限制而出现问题。安全性也被讨论,特别是关于存储在剪贴板中的敏感信息(如密码),并提出了自动清除或单次粘贴选项的建议。 许多用户赞扬了跨平台解决方案,如 CopyQ。讨论还涉及对一个在会话和环境中工作的统一剪贴板守护进程的需求,以及对类似于 macOS 的 `pbcopy` 和 `pbpaste` 的 CLI 支持的需求。
相关文章

原文

Modern, fast, simple clipboard manager for Linux.

  • Native application written in Go and GTK4.
  • Modern, clean, simple interface with minimal distractions.
  • Keyboard centric - Navigate, search, copy and delete items with keyboard.
  • High performance - Optimized SQLite backend tested with 10,000+ records.
  • Supports text and image content (up to 3 images) with image previews.
  • Full Wayland support - Works natively on both Wayland and X11.

Or launch from your application menu.

Key Action
Ctrl+F Toggle search
Enter Copy selected item to clipboard
Delete Remove selected item
Escape Clear search / Close search bar
↑/↓ Navigate through clipboard history
  1. Automatic Clipboard Monitoring: Clyp automatically captures text and images copied to your clipboard
  2. Browse History: Use the main window to browse through your clipboard history
  3. Search: Press Ctrl+F to search through your clipboard content
  4. Quick Copy: Select any item and press Enter to copy it back to your clipboard
  5. Delete Items: Select unwanted items and press Delete to remove them

The watcher is a minimal headless Gtk application. It monitors the clipboard and notifies the GUI of database changes via a UNIX socket.

  • Language: Go 1.25.0
  • GUI Framework: GTK4 via gotk4 bindings
  • Database: SQLite3 for persistent storage
  • Platform: Linux (Wayland/X11)

Clipboard data is stored in ~/.local/share/bio.murat.clyp/clyp.db using SQLite3. The database includes:

  • Automatic timestamps for each clipboard entry
  • Content type detection (text/image)
  • Duplicate prevention
  • Efficient indexing for fast searches

Clyp follows XDG Base Directory specifications:

  • Data Directory: ~/.local/share/bio.murat.clyp/
  • Database File: ~/.local/share/bio.murat.clyp/clyp.db
git clone https://github.com/murat-cileli/clyp.git
cd clyp
go mod download
go build .
  • github.com/diamondburned/gotk4/pkg - GTK4 bindings for Go
  • github.com/mattn/go-sqlite3 - SQLite3 driver for Go
├── app.go          # Main application logic and UI setup
├── clipboard.go    # Clipboard monitoring and operations
├── database.go     # SQLite database operations
├── main.go         # Application entry point
├── resources/      # UI definitions and CSS styles
├── data/           # Desktop files and metadata
└── vendor/         # Vendored dependencies
  • Add import/export.
  • Add database encryption.
联系我们 contact @ memedata.com