Show HN:ClipCapsule – 一款适用于Linux的剪贴板管理器(使用Go和Wails构建)
Show HN: ClipCapsule – A Clipboard Manager for Linux (Built with Go and Wails)

原始链接: https://github.com/Victor-Evogor/clipcapsule

ClipCapsule是一款基于键盘的Linux剪贴板管理器,使用Go语言和WailsJS构建,旨在通过键盘快捷键(CTRL + SHIFT + 1-9)快速切换剪贴板来提高效率。它维护一个存储在嵌入式数据库中的本地剪贴板历史记录,并在选择项目时自动重新排序,将选择的项目置顶,以便使用CTRL + V立即粘贴。 目前仍在开发中,快捷键需要GUI保持打开状态才能运行,但计划添加后台守护进程以实现无缝操作。安装需要克隆仓库,按照Wails的构建说明进行操作,并使用提升的权限运行或授予用户对键盘输入设备的访问权限。 主要功能包括:键盘优先的工作流程、剪贴板历史记录、动态重新排序和仅本地数据存储。欢迎通过PR和问题报告贡献代码,该项目采用MIT许可证。

开发者 victorevogor 发布了 ClipCapsule,一款面向 Linux 系统的、基于键盘的剪贴板管理器。它使用 Go 和 WailsJS 构建,旨在提供快速、原生的使用体验。ClipCapsule 允许用户使用 CTRL + SHIFT + 1-9 键来调取和粘贴之前的剪贴板内容,并本地保存复制项的历史记录。用户还可以将选定的项目移动到堆栈顶部以便立即粘贴。该工具强调隐私性,不使用云存储或遥测功能。目前,它需要 root 权限才能捕获键盘输入,但计划中会加入守护进程模式来取消此要求。该项目已在 GitHub 开源 (github.com/Victor-Evogor/clipcapsule),开发者正在寻求反馈和贡献。屏幕截图和演示 GIF 即将推出。

原文

ClipCapsule is a minimalist clipboard manager for Linux, built with Go and WailsJS. It supercharges your productivity by allowing you to manage and switch clipboard entries using only keyboard shortcuts—no mouse or GUI required.

⚠️ This is a work-in-progress project. Currently, the GUI must be open for shortcuts to work, but we're actively working on a background daemon to make the app run seamlessly without launching the interface.


  • 🚀 Keyboard-first Workflow: Switch clipboard items instantly with CTRL + SHIFT + 1~9.
  • 📜 Clipboard History: Automatically saves your recent copies in an embedded database.
  • 🔄 Dynamic Reordering: Selecting an item with a shortcut moves it to the top of the stack.
  • 🔐 Local-Only: Your data stays on your machine, no cloud syncing or telemetry.

When you copy items, the database stores them like this:

text pos
item1text 1
item2text 2
item3text 3
item4text 4
item5text 5
... ...
  • The item at pos = 1 is the active clipboard item (what gets pasted on CTRL + V).
  • Pressing CTRL + SHIFT + 3:
    • Moves item3text to position 1.
    • Reorders the rest accordingly.

git clone  https://github.com/Victor-Evogor/clipcapsule.git
cd clipcapsule

Follow instructions from the Wails documentation.

You'll need to build with elevated privileges to allow the app to listen for global key events:

🛑 Alternatively, give your user access to the keyboard input device path (e.g. /dev/input/eventX) by adding appropriate udev rules or group permissions.

Example (for testing):

sudo chmod a+r /dev/input/eventX

(Replace /dev/input/eventX with your actual keyboard event device.)

⚠️ A proper fix for permissions will be added soon. For now, elevated privileges or manual access setup is required.


⌨️ Keyboard Shortcuts

Shortcut Action
CTRL + V Paste current top clipboard entry
CTRL + SHIFT + 1-9 Move selected item to the top of the stack

  • Frontend: Wails + JS/TS (see runtime/)
  • Backend: Go (see go/main/)
  • Clipboard access and keyboard interception handled natively



  • You need to run the app as sudo or manually allow access to keyboard input devices.
  • No daemon yet — GUI must be open for shortcuts to work.

PRs and issues are welcome! If you have ideas or find bugs, open an issue or submit a patch.


MIT License — see LICENSE file for details.

联系我们 contact @ memedata.com