clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 4a85fd767cd09cca72a53bba8b2e176ccb8c7d00
Author: Chris Down <chris@chrisdown.name>
Date:   Wed,  5 Feb 2014 16:57:11 +0800

Add clipmenu daemon

Diffstat:
Aclipmenud | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -0,0 +1,15 @@ +#!/bin/bash + +selection=${1-clipboard} +cache_dir=/tmp/clipmenu/ + +mkdir -p "$cache_dir" + +while sleep 1; do + data=$(xsel --"$selection"; printf x) + data=${data%x} + md5=$(md5sum <<< "$data") + md5=${md5%% *} + + cat > "$cache_dir/$md5" <<< "$data" +done