All Projects → cdown → Clipmenu

cdown / Clipmenu

Licence: other
Clipboard management using dmenu

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Clipmenu

Clipboard Copy
Lightweight copy to clipboard for the web
Stars: ✭ 443 (-30.13%)
Mutual labels:  clipboard
Clipy
Clipboard extension app for macOS.
Stars: ✭ 5,574 (+779.18%)
Mutual labels:  clipboard
Try
Dead simple CLI tool to try Python packages - It's never been easier! 📦
Stars: ✭ 588 (-7.26%)
Mutual labels:  simple
Qview
Practical and minimal image viewer
Stars: ✭ 460 (-27.44%)
Mutual labels:  simple
Hacker
❤️ A simple theme for Hexo
Stars: ✭ 501 (-20.98%)
Mutual labels:  simple
Hugo Paper
🥛 A simple, clean, flexible Hugo theme
Stars: ✭ 538 (-15.14%)
Mutual labels:  simple
Clipper
✂️ Clipboard access for local and remote tmux sessions
Stars: ✭ 439 (-30.76%)
Mutual labels:  clipboard
Pbgopy
Copy and paste between devices
Stars: ✭ 612 (-3.47%)
Mutual labels:  clipboard
Vim For Server
.vimrc, simple configures for server, without plugins.
Stars: ✭ 524 (-17.35%)
Mutual labels:  simple
Bayesianoptimization
A Python implementation of global optimization with gaussian processes.
Stars: ✭ 5,611 (+785.02%)
Mutual labels:  simple
Gpaste
Clipboard management system
Stars: ✭ 465 (-26.66%)
Mutual labels:  clipboard
Onequick.ahk Legacy
windows快捷键工具(屏幕边缘操作, 剪贴板增强). Autohotkey tool (screen border operation, clipboard manager).
Stars: ✭ 471 (-25.71%)
Mutual labels:  clipboard
Tui.chart
🍞📊 Beautiful chart for data visualization.
Stars: ✭ 5,041 (+695.11%)
Mutual labels:  simple
Hexo Theme Yilia Plus
一个简洁优雅的hexo主题 A simple and elegant theme for hexo.
Stars: ✭ 462 (-27.13%)
Mutual labels:  simple
Datatable
A simple, modern and interactive datatable library for the web
Stars: ✭ 587 (-7.41%)
Mutual labels:  simple
Ftxui
💻 C++ Functional Terminal User Interface. ❤️
Stars: ✭ 433 (-31.7%)
Mutual labels:  simple
Dsvpn
A Dead Simple VPN.
Stars: ✭ 4,894 (+671.92%)
Mutual labels:  simple
Pasteex
📋 Paste As File 把剪贴板的内容直接粘贴为文件
Stars: ✭ 634 (+0%)
Mutual labels:  clipboard
Inlineattachment
Easily paste and upload files/images in plain textareas
Stars: ✭ 597 (-5.84%)
Mutual labels:  clipboard
Webpack Starter Basic
A simple webpack starter project for your basic modern web development needs.
Stars: ✭ 552 (-12.93%)
Mutual labels:  simple

Tests

clipmenu is a simple clipboard manager using dmenu (or rofi with CM_LAUNCHER=rofi) and xsel.

Demo

Demo

Usage

clipmenud

Start clipmenud, then run clipmenu to select something to put on the clipboard. For systemd users, a user service called clipmenud is packaged as part of the project.

For those using a systemd unit and not using a desktop environment which does it automatically, you must import $DISPLAY so that clipmenud knows which X server to use. For example, in your ~/.xinitrc do this prior to launching clipmenud:

systemctl --user import-environment DISPLAY

clipmenu

You may wish to bind a shortcut in your window manager to launch clipmenu.

All args passed to clipmenu are transparently dispatched to dmenu. That is, if you usually call dmenu with args to set colours and other properties, you can invoke clipmenu in exactly the same way to get the same effect, like so:

clipmenu -i -fn Terminus:size=8 -nb '#002b36' -nf '#839496' -sb '#073642' -sf '#93a1a1'

For a full list of environment variables that clipmenud can take, please see clipmenud --help.

Features

The behavior of clipmenud can be customized through environment variables. Despite being only <300 lines, clipmenu has many useful features, including:

  • Customising the maximum number of clips stored (default 1000)
  • Disabling clip collection temporarily with clipctl disable, reenabling with clipctl enable
  • Not storing clipboard changes from certain applications, like password managers
  • Taking direct ownership of the clipboard
  • ...and much more.

Check clipmenud --help to view all possible environment variables and what they do. If you manage clipmenud with systemd, you can override the defaults by using systemctl --user edit clipmenud to generate an override file.

Supported launchers

Any dmenu-compliant application will work, but here are CM_LAUNCHER configurations that are known to work:

Installation

Several distributions, including Arch and Nix, provide clipmenu as an official package called clipmenu.

Manual installation

If your distribution doesn't provide a package, you can manually install using make install (or better yet, create a package for your distribution!). You will need xsel and clipnotify installed, and also dmenu unless you plan to use a different launcher.

How does it work?

clipmenud is less than 300 lines, and clipmenu is less than 100, so hopefully it should be fairly self-explanatory. However, at the most basic level:

clipmenud

  1. clipmenud uses clipnotify to wait for new clipboard events.
  2. If clipmenud detects changes to the clipboard contents, it writes them out to the cache directory and an index using a hash as the filename.

clipmenu

  1. clipmenu reads the index to find all available clips.
  2. dmenu is executed to allow the user to select a clip.
  3. After selection, the clip is put onto the PRIMARY and CLIPBOARD X selections.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].